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: 

regarding the summation of Quantity

Former Member
0 Kudos

Hi,

can any body give me code for this

For each material (RESB-MATNR) AND order number (RESB-AUFNR) retrieved above (i.e AUFK-AUFNR),

If requirement quantity UoM (RESB-MEINS) is not same as material master base UoM (MARA-MEINS), convert the requirement quantity to the value based on material master base UoM. The conversion factor should be based on international conversion in SAP (example KG <> G) or conversion factor in MARM table. Then get the summation of the requirement quantity by each material (RESB-MATNR). Keep as <var_total_req1>.

1 REPLY 1

Former Member
0 Kudos

Hi

Use the fun module

MD_CONVERT_MATERIAL_UNIT to convert the Material unit

<b>Reward points for useful Answers</b>

Regards

Anji