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

Common report name for all Function modules??

naveen_inuganti2
Active Contributor
0 Likes
2,025

Hi.....

If we check the value of the SY_CPROG in the sourse code of the any function module we can get

RS_TESTFRAME_CALL as value.

From SE38, if we excute this report we can get one selection screen-> there we can give the FM name and we can excute it.

But, What is the purpose of this report...why SAP build this report?

In which senario we can utilize the SY-CPROG value with FM??

Thanks,

Naveen.I

7 REPLIES 7
Read only

ThomasZloch
Active Contributor
0 Likes
1,723

RS_TESTFRAME_CALL should only appear in SY-CPROG when the function module is executed for test purposes from within SE37.

If the function module is called from another program, that program name will be in SY-CPROG.

Thomas

Read only

0 Likes
1,723

Hi Thomas...

> that program name will be in SY-CPROG.

Sorry i didn't get you.... plz come again....

Thanks,

Naveen.I

Read only

0 Likes
1,723

I'm happy to dedicate my 1000th post to you.

At runtime within a function module, SY-CPROG contains the name of the program that has called the function module. This can be RS_TESTFRAME_CALL if the function module was called by hitting F8 in SE37, or it can be any other program name, depending on the program that has called the function module.

Greetings

Thomas

Read only

0 Likes
1,723

Thanks,

Naveen Inuganti.

Read only

0 Likes
1,723

I have a question related to this thread, i understand that if we use SE37 to execute the function module we get the SY-CPROG as RS_TESTFRAME_CALL, what about when the function module executed by a remote system, like Siebel calling a function module in SAP, what would be the SY-CPROG value, please share your knowledge.

Read only

0 Likes
1,723

Any thoughts on my question above.

Read only

0 Likes
1,723

Hi Soma,

I posted this question when I am working with remote system(Dot Net), to debugg the function module.

So you can get same , even for seibel system..

If you need any other assistance you can reach out here, with you rrequirement.

I will try to answer it.

Remeber , I tried with Function group(which we can find at attributes tab of function module), while debugging with External Debugger.

Thanks,

Naveen Inuganti.