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: 

Change the Condition value in Header of invoice

Former Member
0 Kudos
707

Hi All,

I need to restrict the Condition value in header of the invoice.

There is a Z item condition defined and it will calculate the 10 Percent of the original condition.

I had written a routine to restrict to 50, but if there are multiple items then it will get added in header so i want to restrict it to 50.

Kindly help me in sorting out the issue.

Thanks.

3 REPLIES 3

former_member188827
Active Contributor
0 Kudos
269

Are you using VOFM routine for this? Trying clearing the variable before passing your value. Can you share your code?

Regards

Mehwish

0 Kudos
269

HI Mehwish,

I need to restrict / change the Condition value in Header of the invoice Can we write a routine to

Change the condition value??. I have written routine to change the value in item not in header.

Are any Exit available to Change the value?.

Ex.

Header - Condition value = 100 ( I want to change it to 50).

Item - 1. - Condition value = 50(Written a Routinein VOFM).

Item - 2. - Condition Value = 50(Written a Routinein VOFM).

Thanks.

Former Member
0 Kudos
269

Hi,

Debug and find that is your routine called for the header condition where field XKOMV-KHERK = 'D' and that the value you are changing is actually passed to the correct variable after the routine has been executed.

Hope this helps.