‎2008 Aug 01 12:11 PM
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
‎2008 Aug 01 12:42 PM
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
‎2008 Aug 01 12:56 PM
Hi Thomas...
> that program name will be in SY-CPROG.
Sorry i didn't get you.... plz come again....
Thanks,
Naveen.I
‎2008 Aug 01 1:07 PM
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
‎2008 Aug 04 7:00 AM
‎2009 Jun 17 9:09 AM
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.
‎2009 Jun 29 12:37 PM
‎2009 Jun 29 1:50 PM
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.