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

Slis_t_listheader-typ

Former Member
0 Likes
3,268

Explain the purpose of all the possible values for slis_t_listheader-typ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,439

hi,

There are three types of slis_listheader-typ

1. Typ H is for displaying header data. Ex.

wa_list_header-typ = 'H'.

wa_list_header-info = 'Capgemini Mumbai'.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

output: Capgemini Mumbai

It displays data in normal font with bold and big character.

wherever you define this in a sequence of typ S and typ A, it always holds the top line in alv report list header area.

If two typ H are there than according to the triggering they get displayed in successive lines.

There is no use of list_header-key with typ H.

2. Typ S is for selection.

We use typ S to display text as well as its value in a single line. We can't display text and value in a single line by using typ H or typ A. Ex.

WA_list_header-typ = 'S'.

wa_list_header-KEY = 'Date::'.

wa_list_header-INFO = sy-datum.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

output: Date:: 20080525

( you can change the above showing date format by concatenate or any formatting options)

The key text displays in normal bold font and info value displays in normal font. These two have font size just half of the font size of typ H.For this reason we prefer only typ H to display header data in header area of alv report like company name, purpose of the report etc.

3. Typ A is for action.

WA_list_header-typ = 'A'.

concatenate 'typ' 'A' into wa_list_header-info separated by space.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

or

WA_list_header-typ = 'A'.

wa_list_header-info = 'typ A'.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

output: typ A

It displays data in normal italic font with font size same as font size of typ S.

wherever you define this, it always hold the bottom line in alv report list header area.

There is no use of list_header-key with this typ A.

so according to our requirement we chose typ.

1 REPLY 1
Read only

Former Member
0 Likes
1,440

hi,

There are three types of slis_listheader-typ

1. Typ H is for displaying header data. Ex.

wa_list_header-typ = 'H'.

wa_list_header-info = 'Capgemini Mumbai'.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

output: Capgemini Mumbai

It displays data in normal font with bold and big character.

wherever you define this in a sequence of typ S and typ A, it always holds the top line in alv report list header area.

If two typ H are there than according to the triggering they get displayed in successive lines.

There is no use of list_header-key with typ H.

2. Typ S is for selection.

We use typ S to display text as well as its value in a single line. We can't display text and value in a single line by using typ H or typ A. Ex.

WA_list_header-typ = 'S'.

wa_list_header-KEY = 'Date::'.

wa_list_header-INFO = sy-datum.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

output: Date:: 20080525

( you can change the above showing date format by concatenate or any formatting options)

The key text displays in normal bold font and info value displays in normal font. These two have font size just half of the font size of typ H.For this reason we prefer only typ H to display header data in header area of alv report like company name, purpose of the report etc.

3. Typ A is for action.

WA_list_header-typ = 'A'.

concatenate 'typ' 'A' into wa_list_header-info separated by space.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

or

WA_list_header-typ = 'A'.

wa_list_header-info = 'typ A'.

APPEND wa_list_header TO LIST_HEADER.

CLEAR WA_LIST_HEADER.

output: typ A

It displays data in normal italic font with font size same as font size of typ S.

wherever you define this, it always hold the bottom line in alv report list header area.

There is no use of list_header-key with this typ A.

so according to our requirement we chose typ.