cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic update of Header condition

Former Member
0 Kudos

Hi

We have a requirement in which we want to update the header condition automatically instead of manually.

The details:

We create the sales order with reference to another document. During this we use the user exit MV45afzb, to get the

Value (say X) to a temporary memory ID.

The requirement is that we need to udpate the value X automatically as the header conditon ZDOW. I can do it manually.

But I want the system to do it automatically while creating the sales order.

We tried to create a new Alt Cond. b value. This did not work.

On debug we noticed that when we enter a condition type manually zdow, KONV gets filled for KPOSN=00000 and KSCHL=ZDOW.

Please let us know how to fill the KBETR (rate) of ZDOW condition type automatically from the Memory ID before saving the sales order.

Supreeth

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The answer was in the exit MV45afzb itself.

We just had to update the KBETR for condition type ZDOW in xkomv structure for 1 of the line items of the sales order..

This automatically updates the header condition and because the alt cond base value routine in the pricing procedure is 2, this splits the header conditon which we update above proportinately by value.

Supreeth