Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Bye-Pass User Exit ?

Former Member
0 Likes
397

Hello All,

I'm creating a Scheduling Agreement thru a BDC Programatically.

While creation of the Scheduling Agreement a User Exit is there .

Now I want to bye-pass the User exit when the Scheduling Agreement is created thru my Program.

Can anyone tell me how to do that ?

What I'm thinking is I want to set a parameter globally in the SAP memory and assign a value to it in my program.

and in the User exit I'll chk that value and if the value is set then I'll process the User exit by putting a if-endif block for the existing code of the User Exit .

BUt I'm not knowing how to implement this !!!

Any help is appreciated .

Regards,

Deepu.K

Hello All,

I'm creating a Scheduling Agreement thru a BDC Programatically.

While creation of the Scheduling Agreement a User Exit is there .

Now I want to bye-pass the User exit when the Scheduling Agreement is created thru my Program.

Can anyone tell me how to do that ?

What I'm thinking is I want to set a parameter globally in the SAP memory and assign a value to it in my program.

and in the User exit I'll chk that value and if the value is set then I'll process the User exit by putting a if-endif block for the existing code of the User Exit .

BUt I'm not knowing how to implement this !!!

Any help is appreciated .

Regards,

Deepu.K

1 REPLY 1
Read only

Former Member
0 Likes
369

Hi Deepu,

Check system variable SY-BINPT = 'X'. and SY-CPROG = <your program name> in the first line of your user exit.

SY-BINPT

SY-BINPT is set to X during processing of batch input folders and in ABAP programs called with CALL TRANSACTION USING. Otherwise it is empty.

OPTIONS FROM in the CALL TRANSACTION USINGstatement can set SY-BINPT to empty for the whole program execution, as well as at the end of the BDC data.

SY-CPROG

In externally called procedures, the name of the calling program, otherwise the name of the current program. If an externally called procedure calls another external procedure, SY-CPROG keeps the name of the first main program and is not given the name of the main program of the further caller.

Hope it helps...

Lokesh