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: 

ALV Report

Former Member
0 Kudos
85

Hi,

Can anyone help me out by telling me what this the function of this piece of code:

TYPES: BEGIN OF SLIS_LISTHEADER,

TYP(1) TYPE C, " H = Header, S = Selection, A = Action

KEY(20) TYPE C,

INFO TYPE SLIS_ENTRY,

END OF SLIS_LISTHEADER.

Actually i was going thru a doc. of ALV Report. Just could not find out what the above code means & what it does.

Thanx,

Mohit.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
54

Hi Mohit,

for displaying the header like TOP OF PAGE, in alv we use slis_listheader

this slis consist of three fields

1: <b>Type</b> - > where we need to pass whether it is to be printed as header(bold) or selection text - normal font and A - Action - like any simply logic to get the header information.

2: <b>key</b> -> it can be used when u select type as Selection - S and pass the key information

3) <b>info</b> -> it the actuall text u pass there .

<b>Reward pts if answered ur question. :)</b>

Regards

Sathish

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
54

This is a TYPES statement for the ALV list heading. There is most likely a DATA statement which uses this TYPE. This is probably used to setup the heading which is written for the Top-of-Page event within the ALV output.

data: ilisthead type table of SLIS_LISTHEADER.

Regards,

Rich Heilman

Former Member
0 Kudos
55

Hi Mohit,

for displaying the header like TOP OF PAGE, in alv we use slis_listheader

this slis consist of three fields

1: <b>Type</b> - > where we need to pass whether it is to be printed as header(bold) or selection text - normal font and A - Action - like any simply logic to get the header information.

2: <b>key</b> -> it can be used when u select type as Selection - S and pass the key information

3) <b>info</b> -> it the actuall text u pass there .

<b>Reward pts if answered ur question. :)</b>

Regards

Sathish