2008 Nov 05 5:24 AM
hi
i want to add heading of each column into internal table and i am using alv progarming
please help me for that
hi
i want to add heading of each column into internal table and i am using alv progarming
please help me for that
2008 Nov 05 5:27 AM
HI,
below is some example
DATA ls_fcat type lvc_s_fcat .
ls_fcat-fieldname = 'CARRID' .
ls_fcat-inttype = 'C' .
ls_fcat-outputlen = '3' .
ls_fcat-coltext = 'Carrier ID' .
ls_fcat-seltext = 'Carrier ID' .
APPEND ls_fcat to pt_fieldcat .
CLEAR ls_fcat .
ls_fcat-fieldname = 'CONNID' .
ls_fcat-ref_table = 'SFLIGHT' .
ls_fcat-ref_table = 'CONNID' .
ls_fcat-outputlen = '3' .
ls_fcat-coltext = 'Connection ID' .
ls_fcat-seltext = 'Connection ID' .
APPEND ls_fcat to pt_fieldcat .
hope u get.
Amresh.
2008 Nov 05 5:32 AM
hi ,
thanks for rply ,
acttully i want these heading shuld come in my internal table because when in am exporting my internal table into excel heading is not comming................
2008 Nov 05 5:44 AM
If u r exporting ur data from ALV , the headings which u r displaying through ALV fieldcat will come in your excel sheet.
Regards
Sathar
2008 Nov 05 5:45 AM
then u can append this heading in that internal table in the very intial stage before appending other values, it will come than in excel also.
-Amresh.
2008 Nov 05 5:28 AM
Hi,
In Alv, by using Field-catalog we can disply the headings to the columns.
2008 Nov 05 5:57 AM
Hi
first append the headings to the internl table, then append the actual values.
regards,
Ramya
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |