2009 Sep 01 7:26 AM
Hi All Expert.
Please guide me hw to put internal table field at report header in ALV.
this is my field catalog.
wa_fieldcat-row_pos = 1.
wa_fieldcat-col_pos = 1.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'VBELN'.
wa_fieldcat-seltext_m = 'SalesOrderNo'.
wa_fieldcat-outputlen = '10'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.Also i wnt to total 4 field at header level and other is detail level.
Please guide me hw to do.
thnks
Bhavesh
2009 Sep 01 7:50 AM
Hi,
Can you be more specific with your requirment.
It is not clear.
Do you need to display a mutilevel ALV.
In that case use FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.
Check the program BCALV_TEST_HIERSEQ_LIST for more details.
Regards,
Ankur Parab
Hi All Expert.
Please guide me hw to put internal table field at report header in ALV.
this is my field catalog.
wa_fieldcat-row_pos = 1.
wa_fieldcat-col_pos = 1.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'VBELN'.
wa_fieldcat-seltext_m = 'SalesOrderNo'.
wa_fieldcat-outputlen = '10'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.Also i wnt to total 4 field at header level and other is detail level.
Please guide me hw to do.
thnks
Bhavesh
2009 Sep 01 7:50 AM
Hi,
Can you be more specific with your requirment.
It is not clear.
Do you need to display a mutilevel ALV.
In that case use FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.
Check the program BCALV_TEST_HIERSEQ_LIST for more details.
Regards,
Ankur Parab
2009 Sep 01 8:21 AM
Thnks For Reply
I wnt to Put Some Filed on Header of the report. like Document no.Date etc. and other field is in detail level.
thnks
Bhavesh
2009 Sep 01 8:23 AM
this is a forum to help,, not to spoon feed and to write code for you.. Sorry.
2009 Sep 01 8:26 AM
Hi
FM REUSE_ALV_COMMENTARY_WRITE will solve your issue.
IT_LIST_COMMENTARY is the internal table you can pass to that FM.
IT_LIST_COMMENTARY -info = 'Doc Number'
IT_LIST_COMMENTARY -Typ = 'S'.
append IT_LIST_COMMENTARY '.
IT_LIST_COMMENTARY -info = 'Doc Date'
IT_LIST_COMMENTARY -Typ = 'S'.
append IT_LIST_COMMENTARY '.
You can assign dynamic values to IT_LIST_COMMENTARY -info too.
Hope this helps
Rgds,
Sripal
2009 Sep 01 7:57 AM
Look at this excellent post in [WIKI about ALV|https://wiki.sdn.sap.com/wiki/display/ABAP/ALV]
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |