Application Development 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: 

How to find unit wise total of Quantity in from mb5b ?

0 Kudos

My Requirement is submitting mb5b and then find the total of Opening, Receipt, Issue and Closing according to the unit as

Please suggest the approach, As I have submit MB5B and transfer all the data in an internal table, but how to classify it according to the unit. above in image and find the total of it.

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

Loop at the extracted internal table and convert quantity to PC with FM MATERIAL_CONVERT_QUANTITY (*) and weight to KG with UNIT_CONVERSION_SIMPLE.

(*) Handle the case where PC uom is not handled for current material.