‎2009 Jul 16 6:59 PM
Hello Forums,
I am working on a customer exit that is called by a function module and I would like to have a condition in my include that states
if program_name = SAPLV56K .
do logic in here.
Endif.
is it possible to determine the program name?
thanks
‎2009 Jul 16 7:01 PM
‎2009 Jul 16 7:08 PM
‎2009 Jul 16 7:38 PM
Hi,
Do following step,
1 declare global Variable of type sy-repid. eg data g_repid like sy-repid.
2 assign program name to variable at Initialization stmt.
INITIALIZATION
g_repid = sy-repid.
3 Use this variable.
other wise use sy-cprog.
Difference between sy-repid and sy-cprog
Sy-repid --- It contains the name of current program.
Sy-cprog---Contains the name of calling program.
Thanks & Regards,
ShreeMohan
‎2009 Jul 16 8:35 PM
apart from all the above correct answers, if u want to see it, u can find it in debugging mode or WHERE USED LIST
thanq