cancel
Showing results for 
Search instead for 
Did you mean: 

Update Reason for rejection while creating sales order(VA01) in USEREXIT_SAVE_DOCUMENT

former_member267445
Participant
0 Kudos

Hello Gurus,

I am working Sales Order user exit. I need to update the Reason for Rejection at the time sales order save not at the time of save document prepare exit.

The requirement is, when ever we create a sales order then GTS system will send the results to ECC with some Statuses called Embargo, Blocked... etc. So based on that status I need to update the reason for rejection. As far I know we can update the reason for rejction from save document prepare exit.

former_member267445
Participant
0 Kudos

Hi Gurus,

Any suggestions?

JL23
Active Contributor

you should use better tags to get your answer, the tag you have chosen is to discuss the architecture of a system: https://help.sap.com/saphelp_nw74/helpdata/de/f9/e2350eca7f4a109eb0a7bc63135e27/frameset.htm

You can find the list of primary tags here: http://sapassets.edgesuite.net/tools/SAP-Community-Tags.xlsx

read also https://blogs.sap.com/2016/11/06/guten-tag-good-day-to-the-world-of-tags/

Matt_Fraser
Active Contributor
0 Kudos

This has been answered many times before:

Google -> "sales order user exit rejection reason site:sap.com" -> 1020 results.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Murali,

You can also use User Exit "USEREXIT_SAVE_DOCUMENT" in MV45AFZZ for assigning reason for Rejection at sales order line item (using loop at xvbap) by using certain conditions. Thanks

former_member267445
Participant
0 Kudos

Thank you for response Dilip. I have tried in Userexit save_document but reason for rejection is not getting update. Any workaround please.

Thanks and Regards,

Murali

VenuAnumayam
Participant
0 Kudos

Please search SDN and you will definitely find the answers.

Code your logic in user exit FORM userexit_save_document_prepare in MV45AFZZ.