09-03-2008 10:57 AM
a Z program is created in which a BDC runs for cancelling of Inspection lot based on a logic.
Cancellation can also be done manually by standard SAP transaction and to avoid this error messages are written inside the user exit.
But due to these messages, the BDC is also returning error. So, i need to identify the calling program or the driver program in the user exit so that i shall skip the messages when Z program runs.
And hence cancellation can only be then possible through Z program.
SY-BINPT tells me that it is run through batch input.
But i am not able to fetch the calling program or TCODE name.
PLZ HELP!
09-03-2008 7:36 PM
Reading your query, it sounds that the user exit does not have all the parameters of the main program.
Only certain objects are visible within the user exit in comparison to your main program. If possible try to use import / export commands to set flags. Export a variable in your z-program and import the variable within your user exit.
09-03-2008 7:36 PM
Reading your query, it sounds that the user exit does not have all the parameters of the main program.
Only certain objects are visible within the user exit in comparison to your main program. If possible try to use import / export commands to set flags. Export a variable in your z-program and import the variable within your user exit.