cancel
Showing results for 
Search instead for 
Did you mean: 

Change item text while saving Sales order

former_member1360394
Participant
0 Kudos

Hello Everyone,

I checked the community before posting here. I wanna change the Item text in MV45AFZZ before the sales order is saved. I checked the form userexit_save_document and the XTHEAD table is filled. Now I wanna change the existing item text and then save it, can you please help me out here. I think this can be done through Update task but not able to get the flow. Thank you.

Regards,

Vinod

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member1716
Active Contributor
0 Kudos

No You don't want to make the changes in UPDATE task, you just write your logic in this EXIT (userexit_save_document) and your code will automatically get triggered when saved.

Regards

GK817
Active Contributor
0 Kudos

Hello,

I assume you are trying to update field VBAP-ARKTX.

In exit, XVBAP will come as a table which will have all the line items. You can pass the changed texts in table XVBAP, no need to pass in update FM. Framework will take care of LUW.

Regards

GK