Hi All,
My requirement is to create material document for gain/loss posting during partial confirmation (Status 5) of the shipment using O4H1.
Currently I have called the following in the exit EXIT_SAPMOIGS_007:
PERFORM d_check_balance(SAPMOIGS) using lv_flag.
PERFORM d_gain_loss(SAPMOIGS).
This creates the material document for gain loss posting. But the material document takes into consideration all the deliveries in the shipment even if they are not confirmed and the material document contains items with 957 Movement type posting for the deliveries which were not confirmed.
Can anyone please let me know how to create the material document with the deliveries which are selected in O4H1 only.
Thanks in advance.
Regards,
Souvik