Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

521 Reverse movement type...........

Former Member
0 Likes
939

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

2 REPLIES 2
Read only

Former Member
0 Likes
652

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

Read only

Former Member
0 Likes
652

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