Skip to Content
0
Former Member
May 20, 2010 at 12:25 PM

Pricing routine - ZSMR condition header level calculation - SALES

124 Views

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 ?