I have been assigned to make a modification to USEREXIT_SAVE_DOCUMENT (MV50AFZ1). The purpose is get RFC_CALL_TRANSACTION...
to do GR ref. PO on another R/3 system when Goods Issue has been completed on the vendor system. Thing is, both Save and Post-GI buttons come to this exit. How can we determine which one is coming from the Post-GI trigger?
It is quite a common occurence that a userexit gets called in multiple circumstances. Find a flag somewhere that specifies the calling event. This could be a value in a field, or even a supplied parameter. In your case, I'd check which field is used to trap the okcode from the screen. If it contains SICH then save was pressed. If it contains DLWA_T then Post Goods Issue was pressed.
Dig Deeper on SAP Basis administration and NetWeaver administration
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header. Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order. Continue Reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.