Application Development and Automation 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: 
Read only

how to add condition type in header VA01 by using Abap code?

bastinvinoth
Contributor
0 Kudos
1,894

Hi all,

I want to add one condition type in sales order VA01 Header.

For Example ZIHC cond.type is available for Header area.

normally how we are proceeding means, we have to go condition tab and press insert button and added that condition and value.

but i need to be add those things through program.

any user exit is available for these? also anyone provide sample code for adding condition type in header using enhancements.

Regards,

Bastin.G

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Kudos
1,039

First, did you read the good old User Exits In  Sales Document Processing ?

Regards,

Raymond

Read only

0 Kudos
1,039

Yes Raymond  thanks for the reply,

Read it already,and found some of the exits like USEREXIT_PRICING_PREPARE_TKOMK.

now i want to add my condition type there with the values in header area.

Any Sample code for that?

Read only

0 Kudos
1,039

Anyone Help me to get solution ?

Read only

0 Kudos
1,039

Hi,

You can get the values of the header from XVBAK YVBAK structure and use them in the user exit which you have mentioned.

Regards,

Ravi.

Read only

0 Kudos
1,039

Hi Ravi,

if i add those corresponding values in XKOMV structure also,

its appending in XKOMV structure but values are not stored and didnt get output

Regards,

Bastin.G

Read only

eduardo_hinojosa
Active Contributor
0 Kudos
1,039

Hi Bastin,

Try with requirements (VOFM subroutines) in your pricing procedure. Do the proper settings for the condition in V/06 (header condition, and so on), and create your own VOFM subroutine and manage if it works or not. Set this VOFM requirement in your pricing procedure (V/08). For further information, please, see these notes

SAP Note 156230 - Requirements: What is permitted, what is not?

SAP Note 327220 - VOFM function and its objects

I hope this helps you

Regards

Eduardo

Message was edited by: Eduardo Hinojosa

Read only

Former Member
0 Kudos
1,039

Hi Bastin,

I now have the same requirement. Did you found a way to insert the header condition in the sales order?

Kind regards,