2013 Aug 02 4:06 PM
Hi, I have a question:
I would like to know if there is any function (or method) that returns the name of the enhancement (if the code is inside one) of the calling code.
You know if there is anything?
Thank you so much!
Carlos.
2013 Aug 02 6:50 PM
Hi,
Try this..You can use the function module SYSTEM_CALLSTACK..
ENHANCEMENT 1 ZTEST_ENH. "active version
data: callstack type ABAP_CALLSTACK,
s_callstack type line of ABAP_CALLSTACK.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
CALLSTACK = callstack.
read table callstack into s_callstack index 1.
write: / s_callstack-include.
*
ENDENHANCEMENT.
Hi,
Try this..You can use the function module SYSTEM_CALLSTACK..
ENHANCEMENT 1 ZTEST_ENH. "active version
data: callstack type ABAP_CALLSTACK,
s_callstack type line of ABAP_CALLSTACK.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
CALLSTACK = callstack.
read table callstack into s_callstack index 1.
write: / s_callstack-include.
*
ENDENHANCEMENT.
2013 Aug 02 6:50 PM
Hi,
Try this..You can use the function module SYSTEM_CALLSTACK..
ENHANCEMENT 1 ZTEST_ENH. "active version
data: callstack type ABAP_CALLSTACK,
s_callstack type line of ABAP_CALLSTACK.
CALL FUNCTION 'SYSTEM_CALLSTACK'
IMPORTING
CALLSTACK = callstack.
read table callstack into s_callstack index 1.
write: / s_callstack-include.
*
ENDENHANCEMENT.
2013 Aug 05 11:53 AM
It works perfectly!!!
But the enhancement, is contained in a Composite Enhancement.
How can I know the Composite Enhancementthat contains it?
Thank you so much!
Carlos.
2013 Aug 05 5:22 PM
Hi,
Query to the table..ENHCOMPCHILDENH..give the enhancement name in the column CHILDENH..you will get the composite enhancement from the column ENHCOMPOSITE..
Thanks
Naren
2013 Aug 06 7:41 AM
2013 Sep 02 10:25 AM
I have a little problem:
I tried to implement the proposal (Fm ABAP_CALLSTACK ) .
On an enhancement of a post-exit method of WebDynpro, but does not return the enhancement name , returns _pst_00o2tgn7mg1vxx8rf2bfi31zo .
Is there a table that relates this with the name of the enhancement?
Thank you so much!
Carlos.
2013 Sep 04 4:19 PM
I auto-answer my question
Applying the method cl_enh_utilities_xstring => get_data actually providing as input the DATA field ENHHEADER table, get the translation of _PST_ .... the name of the enhancement.
Thank you so much!
Carlos.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |