You are on page 1of 14

The main purpose of a list is to display data with minimum programming effort.

LIST Features:

Multilingual capability Texts and Headers appear in the logon language of the user
Formatted Output amounts according to their currency, lengths according to their units of measurement

Each list can have 1 List Header and 4 list COLUMN HEADERS Menu path:

Initial Creation: System->List->List Heading


Regular Maintenance: SE38->Goto->Text Elements->List Headings

Syntax Note: in the alternate syntax for is the text of the text symbol in the original language of the program

How are they Triggered? When a user double clicks on the line of the list

How is the trigger identified in the program?


When a user double clicks a line on the list, the AT LINE-SELECTION event is triggered The code under this event is then executed

SAP supports up to 20 list levels How do we identify different lists in our program?

SY-LSIND This system fields holds the value of the current list level
Basic List: 0, first detailed list:1 and so on The value of the SY-LSIND field should be used to control the processing in the AT LINE-SELECTION block (by means of a CASE statement or IF statement) A WRITE statement should always be executed at each list level

We can pass parameters between the various lists using the HIDE statement Syntax: HIDE f OR HIDE f1, f2, , fn.

f the fields to be passed


You dont need to use a WRITE statement before using the HIDE statement but then you need to use the HIDE statement inside a LOOP..ENDLOOP to buffer the parameters You can pass FLAT Structures or individual fields in the HIDE statement. You CANNOT pass COMPLEX STRUCTURES in a HIDE statement

Assumptions for this example: Carrid and connid fields are already passed using HIDE statement and this is the how the code looks in the AT LINE-SELECTION Event

You might also like