‎2014 Nov 19 9:08 AM
Hello All,
Is there any way by which we can get the module name, i.e. are we currently in PAI module or PBO in program execution, means is there any system variable which gets dynamically updated or can we get through any FM call. Urgent help would be greatly acknowledged.
With regards.
‎2014 Nov 19 9:22 AM
Hi
If you want to see in the debugging you can find abap stack, screen stack in tools.
regards
laxman
‎2014 Nov 19 9:32 AM
‎2014 Nov 19 10:02 AM
hi
check thi sFM SYSTEM_CALLSTACK
in this you wil get ABAP STACK.
logic:::
data: t_evnt TYPE ABAP_CALLSTACK.
CALL FUNCTION 'SYSTEM_CALLSTACK'
* EXPORTING
* MAX_LEVEL = 0
IMPORTING
CALLSTACK = t_evnt
* ET_CALLSTACK =
in t_evnt structure you wil have thae details.
‎2014 Nov 19 9:25 AM
Hi Harsh,
You check it this in debugging. In debugging the desktop 2 (New debugger) will give you in which module your control is at .
With regards
Arun VS
‎2014 Nov 19 9:42 AM
Hi,
There is a function module that can give you the information but I think that it only gives programs and function modules. It is often used in user exits.
Maybe look for a class in the RTTS classes (runtime type services).
‎2014 Nov 19 9:49 AM
Hi,
Not possible in SYST. SY-CPROG only gives you the module pool.
‎2014 Nov 19 12:03 PM
Hi Jain,
In debug mode i can find the Modulename in 'ABDBG-LEVENT'..
For more info. put a break-point at where you want the module name & find the corresponding variable which gives you the exact name..
Let me know if you have any concerns ..
Regards,
Raghu
‎2014 Nov 19 12:16 PM
I think the function SYSTEM_CALLSTACK gives you the information you are looking for