Updating SD sales and distribution documents in SIS, in cash management and forecast, in profitability analysis, to the profit center, to the project revenues, and so on, does not work.
Cause and prerequisitesThe customer has included additional INTEGER fields in SD tables (LIPS, VBRP, and so on). This moves key terms.
SolutionDefinitions which are used for accessing the SD tables must be adapted in reports LMCS1TOP, LMCS5TOP and LMCS6TOP.
Example: VBRP was modified: The following definition must be adapted in report LMCS6TOP:
...
DATA: BEGIN OF XMCVBRP_KEY,
SUPKZ LIKE RMCS1-SUPKZ,
* jetzt neu das Feld FUELL, n zwischen 1 und 7
FUELL(n) TYPE X VALUE 0, <----- must be inserted
MANDT LIKE VBRP-MANDT,
VBELN LIKE VBRP-VBELN,
END OF XMCVBRP_KEY.
The length of field FUELL must be found by debugging:
In routine MCINF_UPDATE_ALL in report LMCS6F10, you have to set a breakpoint when accessing internal table XMCVBRP with XMCVCBRP_KEY. On debugging, the length of n is given by the number of # characters in table XMCVBRP:
...
* VBRP Fakturaposition
MOVE XMCVBRK-SUPKZ TO XMCVBRP_KEY-SUPKZ.
MOVE XMCVBRK-MANDT TO XMCVBRP_KEY-MANDT.
MOVE XMCVBRK-VBELN TO XMCVBRP_KEY-VBELN.
READ TABLE XMCVBRP WITH KEY XMCVBRP_KEY BINARY SEARCH. <----
IF SY-SUBRC EQ 0.
...
No comments:
Post a Comment