2006 Sep 20 3:07 PM
Hi all,
I have a module pool which could be called from some other program. Is there any system variable that helps in knowing the transaction where it is started from???
The sy-repid and sy-tcode only helps in knowing the current transaction, but i want to know where it started from or where it is called from?
Thanks,
madhu
Hi all,
I have a module pool which could be called from some other program. Is there any system variable that helps in knowing the transaction where it is started from???
The sy-repid and sy-tcode only helps in knowing the current transaction, but i want to know where it started from or where it is called from?
Thanks,
madhu
2006 Sep 20 3:11 PM
Hi
<b>SY-CPROG</b> - ABAP program, caller in external procedures
Regards,
Raj
2006 Sep 20 3:11 PM
Check sy-CPROG ABAP program, caller in external procedures.
If it doesn't work, then use set parameter and get parameter statement to mimic the same.
Regards,
Ravi
2006 Sep 20 3:11 PM
Hi
U should transfer the name of calling program in ABAP MEMORY by IMPORT/EXPORT PARAMETERS stataments
Max
2006 Sep 20 3:11 PM
Check the <u><b>sy-cprog</b></u> field it gives the calling pgm name.
Message was edited by: Anurag Bankley
2006 Sep 20 4:22 PM
you can try out like this.
in the program(your Module pool program ) display/change screen,
choose WHERE USED LIST button and select PROGRAMS on the coming screen-> here you will get the list of programs using this module pool program.
Regards
srikanth
2006 Sep 20 4:58 PM
2006 Sep 20 5:01 PM
Hi,
use import export parameters to know
histrory of transaction calls
export to memory id 'ZTCODE' field sy-tcode
import from memory id 'ZTCODE' field sy-tcode
regards
Amole
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |