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: 

User-exit in VA01/VA02 to add order item and condition price

Former Member
0 Kudos

Hi experts,

I have an urgent requirement to add an order item and pricing for VA01/VA02 when certain logic are met. Do you know a user-exit in VA01/VA02 to add sales order item and condition price for an order?

I am currently using user-exit USEREXIT_SAVE_DOCUMENT_PREPARE but I can only add the required order item to xvbap but I also need to add a condition code and condition price for the added item (in xkomv). Your response are very much appreciated.

Thanks in advance!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Leo,

Check out few more exits:

Exit Name Description

SDTRM001 Reschedule schedule lines without a new ATP check

V45A0001 Determine alternative materials for product selection

V45A0002 Predefine sold-to party in sales document

V45A0003 Collector for customer function modulpool MV45A

V45A0004 Copy packing proposal

V45E0001 Update the purchase order from the sales order

V45E0002 Data transfer in procurement elements (PRreq., assembly)

V45L0001 SD component supplier processing (customer enhancements)

V45P0001 SD customer function for cross-company code sales

V45S0001 Update sales document from configuration

V45S0003 MRP-relevance for incomplete configuration

V45S0004 Effectivity type in sales order

V45W0001 SD Service Management: Forward Contract Data to Item

V46H0001 SD Customer functions for resource-related billing

V60F0001 SD Billing plan (customer enhancement) diff. to billing plan

SDAPO001 Activating Sourcing Subitem Quantity Propagation

Reward points if this helps.

Manish

6 REPLIES 6

Former Member
0 Kudos

Have a look at below link. it gives details of all user exits releted to VA01/VA02.

http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Former Member
0 Kudos

Hi Leo,

Check out few more exits:

Exit Name Description

SDTRM001 Reschedule schedule lines without a new ATP check

V45A0001 Determine alternative materials for product selection

V45A0002 Predefine sold-to party in sales document

V45A0003 Collector for customer function modulpool MV45A

V45A0004 Copy packing proposal

V45E0001 Update the purchase order from the sales order

V45E0002 Data transfer in procurement elements (PRreq., assembly)

V45L0001 SD component supplier processing (customer enhancements)

V45P0001 SD customer function for cross-company code sales

V45S0001 Update sales document from configuration

V45S0003 MRP-relevance for incomplete configuration

V45S0004 Effectivity type in sales order

V45W0001 SD Service Management: Forward Contract Data to Item

V46H0001 SD Customer functions for resource-related billing

V60F0001 SD Billing plan (customer enhancement) diff. to billing plan

SDAPO001 Activating Sourcing Subitem Quantity Propagation

Reward points if this helps.

Manish

Former Member
0 Kudos

Hello,

I think you are using perfect user eixt

USEREXIT_SAVE_DOCUMENT_PREPARE what you have to is...

check your logic in the user exit

and add new item in XVBAP (item number,material,Qty).

xvbap-matnr = '10000'.

xvbap-posnr = '00010'.

xvbap-kwmeng = '111'.

.

.

Append xvbap.

same way pricing also.

xkomp and xkomv tables.

*******Poorna*****

0 Kudos

Hi,

Do I also need to update xkomp? I am trying to insert the condition in xkomv only. But whe I save, the condition code and price I inserted in xkomv does not reflect in the order when I save.

So for example,

xkomv-mandt = '170'.

xkomv-knumv = '0000000700'.

xkomv-kposn = '20'. "this is the item number that I "just added in xvbap.

.

.

APPEND xkomv.

I am manually inserting in the debugging mode the new condition in xkomv, but nothing happens when I save. Did I miss something?

Thanks,

Leo

Former Member
0 Kudos

Hello,

Yes if you want add Pricing Conditions via user eixt you need to do as i explain in previous thread.

Let us know if u have any problems in that

*******Poorna********

MariusStoica
Active Participant
0 Kudos

Hi Leo,

Do you remember how you achieved this?

Thanks,
Marius