‎2005 Dec 06 7:51 PM
Hi,
How to get the values for the "order quantity" from the field RV45A-KWMENG. I tried to extract from VBAP-KWMENG but of no avail. Is there any FM to fetch the values from quantity contracts?
I appreciate your response.
Thanks in advance.
‎2005 Dec 07 2:25 AM
Hi!
Do you try to get cumulative quantity of all reference orders for contract? If so then use select:
SELECT SINGLE SUM( rfmng )
INTO rfmng_val
FROM vbfa
WHERE vbelv = contract_vbeln
AND posnv = contract_posnr
AND vbtyp_n = 'C'.
rfmng_val is cumulative quantity in base unit of measure.
Then just convert it into corresponding contract sales unit of measure.
Regards,
Maxim.
‎2005 Dec 07 2:25 AM
Hi!
Do you try to get cumulative quantity of all reference orders for contract? If so then use select:
SELECT SINGLE SUM( rfmng )
INTO rfmng_val
FROM vbfa
WHERE vbelv = contract_vbeln
AND posnv = contract_posnr
AND vbtyp_n = 'C'.
rfmng_val is cumulative quantity in base unit of measure.
Then just convert it into corresponding contract sales unit of measure.
Regards,
Maxim.
‎2005 Dec 12 9:56 PM
Hi Maxim Polonevich,
Thank you so much. This time too it worked well.
With regards,
Shiva