SAP LINE_LAYOUT_DISPLAY Function Module for Line structure fast entry: display of the variants









LINE_LAYOUT_DISPLAY is a standard line layout display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Line structure fast entry: display of the variants processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for line layout display FM, simply by entering the name LINE_LAYOUT_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: F034
Program Name: SAPLF034
Main Program: SAPLF034
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LINE_LAYOUT_DISPLAY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'LINE_LAYOUT_DISPLAY'"Line structure fast entry: display of the variants
EXPORTING
I_ANWND = "Application
* I_BUVAR = ' ' "Screen variant
* I_IFTWO = ' ' "Switching in the background, if only two variants
* I_MODUS = '1' "Processing mode (see documentation)
I_PROGN = "Program
I_VARNR = "Variant
* I_SHIFT = ' ' "

IMPORTING
E_ANZRO = "Number of lines of the selected variant
E_COUNT = "Number of Variants
E_DYNNR = "Screen number
E_LTEXT = "Name of the selected variant
E_VARNR = "Selected Variant

TABLES
* T_FIELDS = "Fields of the Variant

EXCEPTIONS
INVALID_CALL = 1 INVALID_VARIANT = 2 NOTHING_DEFINED = 3 NOTHING_SELECTED = 4 FIRST_LAYOUT_REACHED = 5 LAST_LAYOUT_REACHED = 6
.



IMPORTING Parameters details for LINE_LAYOUT_DISPLAY

I_ANWND - Application

Data type: T021D-ANWND
Optional: No
Call by Reference: No ( called with pass by value option)

I_BUVAR - Screen variant

Data type: T021H-BUVAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IFTWO - Switching in the background, if only two variants

Data type: T021H-BUVAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MODUS - Processing mode (see documentation)

Data type: T021H-BUVAR
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROGN - Program

Data type: T021D-PROGN
Optional: No
Call by Reference: No ( called with pass by value option)

I_VARNR - Variant

Data type: T021D-VARNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_SHIFT -

Data type: T021H-BUVAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for LINE_LAYOUT_DISPLAY

E_ANZRO - Number of lines of the selected variant

Data type: T021F-ANZRO
Optional: No
Call by Reference: No ( called with pass by value option)

E_COUNT - Number of Variants

Data type: SY-TFILL
Optional: No
Call by Reference: No ( called with pass by value option)

E_DYNNR - Screen number

Data type: T021D-DYNNR
Optional: No
Call by Reference: No ( called with pass by value option)

E_LTEXT - Name of the selected variant

Data type: T021G-LTEXT
Optional: No
Call by Reference: No ( called with pass by value option)

E_VARNR - Selected Variant

Data type: T021D-VARNR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for LINE_LAYOUT_DISPLAY

T_FIELDS - Fields of the Variant

Data type: T021I
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_CALL - Invalid Call

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_VARIANT - Invalid Variant

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOTHING_DEFINED - No active variants defined

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOTHING_SELECTED - No variant chosen

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FIRST_LAYOUT_REACHED - First variant reached

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LAST_LAYOUT_REACHED - Final variant reached

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for LINE_LAYOUT_DISPLAY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_e_anzro  TYPE T021F-ANZRO, "   
lv_i_anwnd  TYPE T021D-ANWND, "   
lt_t_fields  TYPE STANDARD TABLE OF T021I, "   
lv_invalid_call  TYPE T021I, "   
lv_e_count  TYPE SY-TFILL, "   
lv_i_buvar  TYPE T021H-BUVAR, "   ' '
lv_invalid_variant  TYPE T021H, "   
lv_e_dynnr  TYPE T021D-DYNNR, "   
lv_i_iftwo  TYPE T021H-BUVAR, "   ' '
lv_nothing_defined  TYPE T021H, "   
lv_e_ltext  TYPE T021G-LTEXT, "   
lv_i_modus  TYPE T021H-BUVAR, "   '1'
lv_nothing_selected  TYPE T021H, "   
lv_e_varnr  TYPE T021D-VARNR, "   
lv_i_progn  TYPE T021D-PROGN, "   
lv_first_layout_reached  TYPE T021D, "   
lv_i_varnr  TYPE T021D-VARNR, "   
lv_last_layout_reached  TYPE T021D, "   
lv_i_shift  TYPE T021H-BUVAR. "   ' '

  CALL FUNCTION 'LINE_LAYOUT_DISPLAY'  "Line structure fast entry: display of the variants
    EXPORTING
         I_ANWND = lv_i_anwnd
         I_BUVAR = lv_i_buvar
         I_IFTWO = lv_i_iftwo
         I_MODUS = lv_i_modus
         I_PROGN = lv_i_progn
         I_VARNR = lv_i_varnr
         I_SHIFT = lv_i_shift
    IMPORTING
         E_ANZRO = lv_e_anzro
         E_COUNT = lv_e_count
         E_DYNNR = lv_e_dynnr
         E_LTEXT = lv_e_ltext
         E_VARNR = lv_e_varnr
    TABLES
         T_FIELDS = lt_t_fields
    EXCEPTIONS
        INVALID_CALL = 1
        INVALID_VARIANT = 2
        NOTHING_DEFINED = 3
        NOTHING_SELECTED = 4
        FIRST_LAYOUT_REACHED = 5
        LAST_LAYOUT_REACHED = 6
. " LINE_LAYOUT_DISPLAY




ABAP code using 7.40 inline data declarations to call FM LINE_LAYOUT_DISPLAY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single ANZRO FROM T021F INTO @DATA(ld_e_anzro).
 
"SELECT single ANWND FROM T021D INTO @DATA(ld_i_anwnd).
 
 
 
"SELECT single TFILL FROM SY INTO @DATA(ld_e_count).
 
"SELECT single BUVAR FROM T021H INTO @DATA(ld_i_buvar).
DATA(ld_i_buvar) = ' '.
 
 
"SELECT single DYNNR FROM T021D INTO @DATA(ld_e_dynnr).
 
"SELECT single BUVAR FROM T021H INTO @DATA(ld_i_iftwo).
DATA(ld_i_iftwo) = ' '.
 
 
"SELECT single LTEXT FROM T021G INTO @DATA(ld_e_ltext).
 
"SELECT single BUVAR FROM T021H INTO @DATA(ld_i_modus).
DATA(ld_i_modus) = '1'.
 
 
"SELECT single VARNR FROM T021D INTO @DATA(ld_e_varnr).
 
"SELECT single PROGN FROM T021D INTO @DATA(ld_i_progn).
 
 
"SELECT single VARNR FROM T021D INTO @DATA(ld_i_varnr).
 
 
"SELECT single BUVAR FROM T021H INTO @DATA(ld_i_shift).
DATA(ld_i_shift) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!