05-20-2010 1:25 PM
Hi,
I need to update the ZSMR condition in header level of sales order.
Formula: ZSMR = (Net price - Net sales Cost) / Net price
Here the challenge is to find the Net price of the header level in sales order. We can not take the value from VBAK as the sales order has not saved yet. It should be in some structure. I checked in KOMK. It does not contain. KOMP-NETWR contains net price of all the line items.
If KOMP-KPOSN is 000010, 000020.. it means its is line items.
One thought : if KOMP-KPOSN is all zeros.... will this be header level ? can we access the condition records of header level ?
but which structure fields contains the net price of header level ?
05-20-2010 2:48 PM