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

problem in alv

former_member189410
Participant
0 Likes
816

Hi,

can anyone letme know how can we create two headers in ALV

thnx in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
796

You can not have 2 headers for regular ALV Grid.

6 REPLIES 6
Read only

Former Member
0 Likes
797

You can not have 2 headers for regular ALV Grid.

Read only

Former Member
0 Likes
796

Hi,

Try this in the LISTHEADER

FORM Z_LISTHEADER USING P_I_LISTHEADER TYPE SLIS_T_LISTHEADER.

DATA: L_LISTHEADER TYPE SLIS_LISTHEADER.

REFRESH P_I_LISTHEADER.

CLEAR L_LISTHEADER.

L_LISTHEADER-TYP = 'H'.

L_LISTHEADER-INFO = TEXT-001.

APPEND L_LISTHEADER TO P_I_LISTHEADER.

CLEAR L_LISTHEADER.

L_LISTHEADER-TYP = 'H'.

L_LISTHEADER-INFO = TEXT-002.

APPEND L_LISTHEADER TO P_I_LISTHEADER.

and write the header texts in the text-001 and text-002 by double clicking

Try with all these.

Check this link:

http://abap4.tripod.com/download/alvstub.txt

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_endlist.htm

Regards,

Priyanka.

Read only

Former Member
0 Likes
796

hi,

in blocked alv it's possible.

reward points if helpful,

regards,

seshu.

Read only

Former Member
0 Likes
796

HI ,

check the below threads,

Reward points if it is helpful..

Regards,

Omkar.

Read only

Former Member
0 Likes
796

HI,

YOU CANOT HAVE TEO HEDERS IN ALV TOP OF PAGE CAN BE USED ONLY ONCE IN THE EVENTS

Read only

Former Member
0 Likes
796

Hi nishu

u can have three headers in the following way.

********begin of code*************

FORM build_header .

CLEAR wa_header.

wa_header-typ = 'H'.

DATA:WA_TEMP2(60) TYPE C.

CONCATENATE 'PROJECT:' WA_POST1 INTO WA_TEMP2.

wa_header-info = WA_TEMP2.

APPEND wa_header TO i_header.

**********end of code*************

in this code i have given the hader type as "H"

u can have two more headers of type "S" and "A".

define them and use them in ur code.

Reward if useful.