‎2015 Sep 11 7:31 AM
Hi Learners,
I'm using a F.M in a program, In the F.M i'm calling another program ZSAMPLE using 'Submit <programname> and returns'..when the control shifted to ZSAMPLE here I need to find out the main program name which is calling ZSAMPLE...
Is there any system variables I can use? I tried sy-calld it doesn't seem to be working... or any other way please let me know
Thanks in Advance,
Regards,
Nagendra
‎2015 Sep 11 8:06 AM
‎2015 Sep 11 8:04 AM
‎2015 Sep 11 8:06 AM
‎2015 Sep 11 8:16 AM
‎2015 Sep 11 8:08 AM
Hi,
Also
Get calling program name | SCN
Do a google using search operators:
site:scn.sap.com calling program
Regards.
‎2015 Sep 11 8:20 AM
From online available help, you could find this information, you have to find a memory shared with the calling program and called program.
Hint: look for "Memory Structures of an ABAP Program" in online help (or your course support) or use Eitan's solution. But why did you use a report and did not code in the FM itself ?
Regards,
Raymond
‎2015 Sep 11 8:23 AM
Hello Nagendra,
You can use Set parameter and get parameter. You may create a custom Parameter ID for your purpose.
Set the parameters in the Function module. And get it in the program ZSAMPLE.
I have used this and it worked. If you need more details let me know.
Regards
‎2015 Sep 11 8:34 AM
Hi satish,
Thank you for your reply I used Import and Export it worked,
Regards