Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multilevel ALV

Former Member
0 Likes
1,220

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
937

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

5 REPLIES 5
Read only

Former Member
0 Likes
938

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

Read only

0 Likes
937

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

Read only

0 Likes
937

this is a forum to help,, not to spoon feed and to write code for you.. Sorry.

Read only

0 Likes
937

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

Read only

former_member156446
Active Contributor
0 Likes
937

Look at this excellent post in [WIKI about ALV|https://wiki.sdn.sap.com/wiki/display/ABAP/ALV]