2009 Sep 16 12:31 AM
Hi,
I need to find the field name of internal table programmtically. Is it possible to find the field name of internal. I need to write the internal table on application server along with header information.
Regards
2009 Sep 16 6:50 AM
hi ,
BUKU_GET_FIELD_NAMES function module will help you.
Thanks
hi ,
BUKU_GET_FIELD_NAMES function module will help you.
Thanks
2009 Sep 16 6:50 AM
hi ,
BUKU_GET_FIELD_NAMES function module will help you.
Thanks
2009 Sep 16 9:22 AM
Hi Aamir
If you want to write internal table in application server then use loop at internal table and inside use open dataset , Transfer and finally close dataset . in this way you can write your header as well as detail list in application server in a specified path.
Hope this will help You !!
2009 Sep 16 9:47 AM
type-pools abap.
data: wa_itab like line ot itab. "work area for your table
data: r_struct type ref to cl_abap_structdescr.
data: it_components type abap_component_tab.
read itab into wa_itab index 1. "read any line first
r_struct ?= cl_abap_typedescr=>describe_by_data( wa_itab ). "describe this line
it_components = r_struct->get_components( ). "here you have all field names
Regards
Marcin
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |