Skip to Content
avatar image
Former Member

To Fetch BDC Calling Program Name in user Exit

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!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2008 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded