16.2.11

SAP Note 22511 - MMIM: Missing lock for customer indep. requirements

Symptom:

If the customer order (e.g. customer independent requirements being processed with transaction MD82) to which a production order is assigned is blocked during backflushing, the reservation is updated anyway. Furthermore, the component is assigned the status "Withdrawal failed". As a result, these components are also listed for error handling.

Cause and prerequisites

Missing block in customer order before the "Post" event.

Solution
Please note !!!
Field XMBWL, which is listed in the program code, was new defined with correction P22K004144, which is described in note 17862.

Please make the changes indicated below:
Include MM07MFK0
----------------
FORM KONTIERUNG_PRUEFEN.
CLEAR COBL.
COBL-BLDAT = MKPF-BLDAT.
...
IF ( MSEG-SOBKZ = E OR MSEG-UMSOK = E ) AND
( T158-VGART = VGART-WF OR DM07M-FAUSW+12(1) = MINUS ).
MSEG-KDAUF = KDAUF.
MSEG-KDPOS = KDPOS.
MSEG-KDEIN = KDEIN.
ENDIF.
IF NOT XMBWL IS INITIAL AND NOT MSEG-KDAUF IS INITIAL <-new
* nächste Zeile gilt für Release 2.2 *
AND ( T158-VGART = VGART-WR OR T158-VGART = VGART-WS ). <-new
* nächste Zeile gilt für Release 3.0 *
AND ( T158-VGART = VGART_WR OR T158-VGART = VGART_WS ). <-new
CALL FUNCTION 'ENQUEUE_EVVBAKE' <-new
EXPORTING <-new
VBELN = MSEG-KDAUF <-new
EXCEPTIONS <-new
FOREIGN_LOCK = 2 <-new
SYSTEM_FAILURE = 3. <-new
CASE SY-SUBRC. <-new
WHEN 2. <-new
MESSAGE E042(V1) WITH MSEG-KDAUF <-new
RAISING DOCUMENT_BLOCKED. <-new
WHEN 3. <-new
MESSAGE A043(V1). <-new
ENDCASE. <-new
ENDIF. <-new
ENDFORM. <-new

No comments:

Post a Comment