‎2008 Jun 03 6:31 AM
Hi Experts,
I am making a report in which I extracted 521 Movement type from mkpf and mseg table. I want to subtract 522 reverse movement type for a mblnr feild.
I canot find matching feild from which i can subtract 522 reverse qty.
Pl. help.
Yusuf
‎2008 Jun 03 6:37 AM
Hai,
loop at t_mseg.
IF t_mseg-bwart = '521'.
lv_quanty = lv_quanty + t_mseg-menge.
elseif t_mseg-bwart = '522'.
lv_qtyrev = lv_qtyrev + t_mseg-menge.
ENDIF.
endloop.
lv_qty = lv_quanty - lv_qtyrev.
lv_qty is actual quantity.
Thanks,
Durai.V
‎2008 Jun 03 6:54 AM
Hi,
In the reference document number field u will get the source document number in reference to which u created this document. some times u will get the order number in reference to which the documents get created using that u have to track the changes
Reward if find useful