2005 Dec 19 11:32 AM
Hi Group,
Is there any function module which displays the columns of the internal table. I guess there is one cos when we debug any program and select the "Tables" button while debugging and enter an internal table and then do a "Find" the pop up which comes up shows the internal table columns. As this functionality is in the debugger which I cannot debug hence was wondering if some one has come across any such function module. Thanks in advance.
Regards,
Ankur Bhandari
2005 Dec 19 11:39 AM
Hi,
try that:
DATA:
my_data TYPE bsik,
descr_ref TYPE REF TO cl_abap_structdescr.
descr_ref ?= cl_abap_typedescr=>describe_by_data( my_data ).
LOOP AT descr_ref->components ASSIGNING <comp_wa>.
...
Andreas
Hi,
try that:
DATA:
my_data TYPE bsik,
descr_ref TYPE REF TO cl_abap_structdescr.
descr_ref ?= cl_abap_typedescr=>describe_by_data( my_data ).
LOOP AT descr_ref->components ASSIGNING <comp_wa>.
...
Andreas
2005 Dec 19 11:37 AM
Hi Ankur,
1. GET_COMPONENT_LIST
Use the above FM.
It works fantastic.
Regards,
Amit M.
2005 Dec 19 11:39 AM
Hi again,
1. In the above FM
Pass Program as SY-REPID (U cann pass other prg name also)
in FieldName Pass the name of the internal table
eg. 'ITAB'
2. This FM will give u the details of the
internal table.
The u can display the COMPONENTS table
using ALV or anyother method u like.
Regards,
Amit M.
2005 Dec 19 11:39 AM
Hi,
try that:
DATA:
my_data TYPE bsik,
descr_ref TYPE REF TO cl_abap_structdescr.
descr_ref ?= cl_abap_typedescr=>describe_by_data( my_data ).
LOOP AT descr_ref->components ASSIGNING <comp_wa>.
...
Andreas
2005 Dec 19 11:42 AM
Hi,
Try with HRHAP_NUMBER_OF_DISP_COLS_GET
Thanks
Eswar
2005 Dec 19 12:11 PM
Thanks, But can some one tell me which is the function module which the abap debugger uses to display the internal table columns while debugging.
Ankur Bhandari
2005 Dec 19 12:12 PM
Hi again,
1. I am not sure, but the abap debugger
uses system C functions
(and not a normal function module)
for such purpose.
Please award points to helpful answers.
Regards,
Amit M.
2005 Dec 19 12:36 PM
I would like to know whether it is a function module or a c function, If C function then what it is? Cos this is exactly what I am trying to achieve, I tried understanding the ABAP debugger program SAPMSSY3 screeb no 142 , couldn't see where is the coding done when we press the button find it has the Status as "TAAB" but couldn't see the code. Any help will be appreciated.
Ankur Bhandari
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |