Hi,
My requirement is to modify the Posting date of Goods Issue Reversal in EWM that is sent to ECC system. Both GI and GI Reversal are done using the transaction /SCWM/PRDO.
SAP has provided the BAdI /SCWM/EX_ERP_MAPOUT_OD_CHANGE (Method MAPOUT) to modify the data being sent to ECC system. Strangely, the BAdI does not trigger during GI reversal of an Outbound Delivery.
During reversal of GI for an Outbound Delivery, EWM system remotely calls the ECC Function Module BAPI_OUTB_DELIVERY_CHANGE. This RFC call happens in method SEND_BAPI of class /SCWM/CL_MAPOUT_OD_CHANGE. Before this Function Module is called, method CREATE_BAPI of the same class is called, where the BAdI /SCWM/CL_MAPOUT_OD_CHANGE is called at last. But, due to the logic between lines # 143 and 154, this BAdI does not trigger.
For GI Reversal, the ELSEIF condition is true, and due to the RETURN statement in line # 153, no subsequent lines of code in this method are processed.
Has anyone faced a similar issue? How can I override this restriction? Any help is appreciated.
Thanks in advance,
S.
Message was edited by: S S updated correct BAdI name