Application Development 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: 

Multiple Header Line In HIERSEQ ALV

Former Member
0 Kudos
121

Hi Experts,

Please guide me how to get miltile Header lines in the HIERSEQ Alv , My requirment it develop a genledger for customers in which the Address of customer should be in 3 or four lines then followed by its balances. Please suggest me ...

Regards,

Prakash

1 ACCEPTED SOLUTION

Former Member
0 Kudos
73

Hi,

You need to pass the Row number to the filed catlog in order to display multiple header lines.

For example,

wl_fieldcat-row_pos = 1. " This field will be displayed in first row

wl_fieldcat-col_pos = 1.

wl_fieldcat-fieldname = 'VBELN'.

wl_fieldcat-tabname = 'T_VBAK'.

wl_fieldcat-outputlen = 20.

Append wl_fieldcat to t_fieldcat.

wl_fieldcat-row_pos = 2. " This field will be displayed in Second row

wl_fieldcat-col_pos = 1.

wl_fieldcat-fieldname = 'VBELN'.

wl_fieldcat-tabname = 'T_VBAK'.

wl_fieldcat-outputlen = 20.

Append wl_fieldcat to t_fieldcat.

Regards,

Rajneesh

4 REPLIES 4

Former Member
0 Kudos
73

Any suggestions Please.

0 Kudos
73

Hi Prakash,

Try This.

wa_fcat-row_pos = 1.

wa_fcat-col_pos = 1.

wa_fcat-fieldname = 'VBELN'.

wa_fcat-tabname = 'ITAB'.

wa_fcat-outputlen = 10.

Append wa_fcat to t_fcat.

CLEAR wa_fcat.

wa_fcat-row_pos = 2.

wa_fcat-col_pos = 1.

wa_fcat-fieldname = 'VBELN'.

wa_fcat-tabname = 'ITAB'.

wa_fcat-outputlen = 10.

Append wa_fcat to t_fcat.

CLEAR wa_fcat.

Regards,

Vijay

Former Member
0 Kudos
74

Hi,

You need to pass the Row number to the filed catlog in order to display multiple header lines.

For example,

wl_fieldcat-row_pos = 1. " This field will be displayed in first row

wl_fieldcat-col_pos = 1.

wl_fieldcat-fieldname = 'VBELN'.

wl_fieldcat-tabname = 'T_VBAK'.

wl_fieldcat-outputlen = 20.

Append wl_fieldcat to t_fieldcat.

wl_fieldcat-row_pos = 2. " This field will be displayed in Second row

wl_fieldcat-col_pos = 1.

wl_fieldcat-fieldname = 'VBELN'.

wl_fieldcat-tabname = 'T_VBAK'.

wl_fieldcat-outputlen = 20.

Append wl_fieldcat to t_fieldcat.

Regards,

Rajneesh

0 Kudos
73

Hi Rajneesh,

I got The multiple line of the internal table which I have used as header table but its but its header is also repetated several times is there any way to make the upper header not to be displayed.

Regards,

Prakash