Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing routine - ZSMR condition header level calculation - SALES

Former Member
0 Kudos

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 ?

1 REPLY 1

Former Member
0 Kudos

Moderator message - Cross post locked Rob