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

Multiple Header Line In HIERSEQ ALV

Former Member
0 Likes
821

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
Read only

Former Member
0 Likes
773

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
Read only

Former Member
0 Likes
773

Any suggestions Please.

Read only

0 Likes
773

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

Read only

Former Member
0 Likes
774

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

Read only

0 Likes
773

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