The SDRQCR21 requirements reorganization program always restored customer independent requirements entered with MD81/MD82 to the full amount, even when goods receipts had already been posted, and the requirements therefore deleted.
Cause and prerequisitesProgram error
SolutionError corrected in 3.0A.
The following advance correction is available:
Program SDRQCR21, Form SALES_REQ_GENERATE:
...
...
* Only one of the quantities is <> 0
DA_OMENG = XVBAPF-ERLMENGE + XVBAPF-ERLMENGE_L.
DA_VMENG = XVBAPF-ERLMENGE + XVBAPF-ERLMENGE_L.
>>>> Start of correction, please insert the following lines: <<<<<
* For Customerrequirements take the GI-Quantity.
IF VBAK-VBTYP CA VBTYP_PBED.
DA_OMENG = XVBAPF-RMENGE.
DA_VMENG = XVBAPF-RMENGE.
ENDIF.
>>>> End of correction. <<<<<<<<< < < <<<<< <<<<<<<<<<<<<<<<<<<<<<<<<<
LOOP AT XVBEP WHERE WMENG > 0 OR BMENG > 0.
IF DA_BEDAR IS INITIAL.
DA_BEDAR+0(2) = VBEP-BDART.
DA_BEDAR+2(1) = VBEP-PLART.
PERFORM T459K_SELECT USING DA_BEDAR
SY-SUBRC.
ENDIF.
No comments:
Post a Comment