08-22-2007 1:56 PM
For each line item on the sales order where the material has the same material pricing group (VBAP-KONDM = MVKE-KONDM) and the item category (VBAP-PSTYV) is relevant for pricing (TVAP where TVAP-PSTYV = VBAP-PSTYV and TVAP-PRSFD = X).
Add up the order quanity (VBAP-KWMENG) of all matching line items into total order quantity.
Get the contract line item for the material (VBAP where VBAP-VBELN = VBAP-VGBEL and VBAP-POSNR = VGPOS).
Calculate net agreed quanity from contract quanity (VBAP-UMVKN) less underdelivery tolerance percentage (VBAP-UNTTO).
The condition type has to be applied if the total order quantity is less than the net agreed quanity
08-22-2007 2:00 PM
ähhhm WHAT exactly do you want from us?
you might explain a bit more.
you work wont be done by just posting your requirements here and hoping someone will post the complete code to fulfill them.
people here dont have any problem in helping, especially if they were niceley asked, but if i do YOUR work, somehow i´d as well like YOUR payment
08-22-2007 2:06 PM