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

system variable holding the calling program..

Former Member
0 Likes
2,710

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

1 ACCEPTED SOLUTION
Read only

rosenberg_eitan
Active Contributor
0 Likes
1,618

Hi,

How about sending it as parameter ?

Regards.

7 REPLIES 7
Read only

Former Member
0 Likes
1,618

Any one?? please?

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,619

Hi,

How about sending it as parameter ?

Regards.

Read only

0 Likes
1,618

Hi,

you mean using export and import?

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,618

Hi,

Also

Get calling program name | SCN

Do a google using search operators:

site:scn.sap.com calling program


Regards.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,618

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

Read only

Former Member
0 Likes
1,618

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

Read only

0 Likes
1,618

Hi satish,

Thank you for your reply I used Import and Export it worked,

Regards