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: 

creating line item for a sales order in user exit

Former Member
0 Kudos

Hi

I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.

The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.

Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.

1 ACCEPTED SOLUTION

rmazzali
Active Contributor
0 Kudos

You have to set the creation flag UPDKZ to 'I'.

to correctly use the user exit refer to OSS note 0381348 Using user exit, customer exit, VOFM in SD.

pls reward if helpful

Roberto

3 REPLIES 3

rmazzali
Active Contributor
0 Kudos

You have to set the creation flag UPDKZ to 'I'.

to correctly use the user exit refer to OSS note 0381348 Using user exit, customer exit, VOFM in SD.

pls reward if helpful

Roberto

Former Member
0 Kudos

Hi Roberto,

Thanks a lot.My problem is solved.

Former Member
0 Kudos

can u please let me know how u r able to solve this one