23.2.11

SAP Note 23203 - MMIM: W M7084 GR for this item is only ...

Symptom:

If the GR material is subject to split valuation during actual data entry to a run schedule header, error E M048 may be issued: "GR for this item is only possible with valuation type".
This occurs when the GR item is not the first item that is generated in the material document.

Cause and prerequisites

Program error

Solution
Change Include program FM07MEM0:
--------------------------------
FORM MENGE_PRUEFEN.
CHECK T158-TRTYP = H.
...
IF AKTYP = H.
...
IF NOT MSEG-AUFNR IS INITIAL AND MSEG-KZBEW = F.
CALL FUNCTION 'MB_FILL_FAUP_ENQUEUE_TABLE'
EXPORTING
DM07M = DM07M

MSEG = MSEG
TABLES
XFAUP = XFAUP.
IF NOT DM07M-BWTTY IS INITIAL.
LOOP AT YMSEG WHERE AUFNR = MSEG-AUFNR
AND AUFPS = MSEG-AUFPS. <- delete
AND AUFPS = MSEG-AUFPS <- new
AND MATNR = MSEG-MATNR <- new
AND WERKS = MSEG-WERKS. <- new
IF NOT MSEG-BWTAR = YMSEG-BWTAR.
MESSAGE E084 WITH YMSEG-BWTAR.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
...
ENDFORM.

No comments:

Post a Comment