cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get the Sales Order Quantity placed against Contract

Former Member
0 Kudos

I have a Material Contract. I created SO against the contract and specified the material Quantity.

I can see the SO Quantity against the Contract in VA43 transaction at Item level.

Field name is KWMENG.

I expected this data to be present in table VBAP for the Contact number as VBELN.

But the Field KWMENG is empty in table VBAP.

Am I looking at the wrong Table?

Basically what I want to do is get the total Quantity placed against a contract for a particular Material in SO when SO is created wrt Contract.

Thanks and Regards,

Ashwin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashwin,

for the contract the field RV45A-KWMENG is calculated dynamically based on the quantities of the subsequent orders made.

In contrast to this for a sales order the field VBAP-KWMENG is the actual sales order quantity filled in the order. All this happens in SAPFV45P/ Include FV45PFAP_XVBAP_LESEN

  • Bei Kontrakten wird die Abrufmenge angezeigt (logic for sales order quantity determination within contract). IF VBAK-VBTYP CA VBTYP_KONT AND

TVAP-ETERL IS INITIAL.

IF VBAP-KZFME IS INITIAL.

RV45A-KWMENG = XVBAPF-ERLMENGE * QUAN_1 * VBAP-UMVKN / VBAP-UMVKZ.

ELSE.

RV45A-KWMENG = XVBAPF-ERLMENGEV * QUAN_1.

ENDIF.

IF RV45A-KWMENG LT 0.

RV45A-KWMENG = 0.

ENDIF.

ENDIF.

Hope it helps.