If a material for a reservation list (RM07RMAT) was generated using transaction MB1A (enter goods receipt), and all reservations were selected and taken over, then reservations that were not in the basic list were also taken over. Affects reservations for movement type 521, for example.
Cause and prerequisitesAll reservations were placed in an internal table and taken over in unfiltered form.
SolutionREPORT RM07RMAT MESSAGE-ID M7 NO STANDARD PAGE HEADING LINE-SIZE 126.
*---- Include-Reports -------------------------------------------------*
INCLUDE: MM07MABC,
RM07MSEL,
RM07MSQL,
.
.
.
*---------------------------------------------------------------------*
* FORM AUSGABE_YRSEG
*---------------------------------------------------------------------*
* Formroutine, die die selektierten Belegpositionen sortiert
* und aufbereitet ausgibt.
*---------------------------------------------------------------------*
FORM AUSGABE_YRSEG.
SORT YRSEG BY MATNR WERKS BDTER.
LOOP AT YRSEG.
IF NOT XCALL IS INITIAL AND NOT XCALL = A.
SELECT SINGLE * FROM T158B WHERE TCODE = SY-TCODE
AND BWART = YRSEG-BWART.
IF SY-SUBRC IS INITIAL.
PERFORM YRSEG_SCHREIBEN.
*---- New coding: please insert -------------------*
ELSE.
DELETE YRSEG. "Reservierungen nicht erlaubt.
*---- End of new coding ---------------------------*
ENDIF.
ELSE.
PERFORM YRSEG_SCHREIBEN.
ENDIF.
ENDLOOP.
PERFORM CLOSE_GRID.
ENDFORM.
No comments:
Post a Comment