2008 Mar 06 3:16 PM
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
2008 Mar 06 3:27 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |