SAP LINE_LAYOUT_INIT Function Module for Line structure fast entry: initialization (determination sample/refer









LINE_LAYOUT_INIT is a standard line layout init 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: initialization (determination sample/refer 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 init FM, simply by entering the name LINE_LAYOUT_INIT 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_INIT 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_INIT'"Line structure fast entry: initialization (determination sample/refer
EXPORTING
I_ANWND = "Application
I_ANZRO = "Number loop lines
I_BUVAR = "Screen variant
I_PROGN = "Program
I_TCODE = "Transaction (FAKP or other)

IMPORTING
E_CDYNP = "Customer-specific ref. screen for modificat.
E_MDYNP = "Sample screen
E_VDYNP = "Template Screen
E_WDYNP = "

TABLES
T_BUVTAB = "Internal table of the company code variants

EXCEPTIONS
ABNORMAL_TERMINATION = 1
.



IMPORTING Parameters details for LINE_LAYOUT_INIT

I_ANWND - Application

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

I_ANZRO - Number loop lines

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

I_BUVAR - Screen variant

Data type: T021H-BUVAR
Optional: No
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_TCODE - Transaction (FAKP or other)

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

EXPORTING Parameters details for LINE_LAYOUT_INIT

E_CDYNP - Customer-specific ref. screen for modificat.

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

E_MDYNP - Sample screen

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

E_VDYNP - Template Screen

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

E_WDYNP -

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

TABLES Parameters details for LINE_LAYOUT_INIT

T_BUVTAB - Internal table of the company code variants

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

EXCEPTIONS details

ABNORMAL_TERMINATION - Processing Terminated

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

Copy and paste ABAP code example for LINE_LAYOUT_INIT 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_cdynp  TYPE T021D-DYNNR, "   
lv_i_anwnd  TYPE T021D-ANWND, "   
lt_t_buvtab  TYPE STANDARD TABLE OF T021D, "   
lv_abnormal_termination  TYPE T021D, "   
lv_e_mdynp  TYPE T021D-DYNNR, "   
lv_i_anzro  TYPE T021F-ANZRO, "   
lv_e_vdynp  TYPE T021D-DYNNR, "   
lv_i_buvar  TYPE T021H-BUVAR, "   
lv_e_wdynp  TYPE T021D-DYNNR, "   
lv_i_progn  TYPE T021D-PROGN, "   
lv_i_tcode  TYPE T020-TCODE. "   

  CALL FUNCTION 'LINE_LAYOUT_INIT'  "Line structure fast entry: initialization (determination sample/refer
    EXPORTING
         I_ANWND = lv_i_anwnd
         I_ANZRO = lv_i_anzro
         I_BUVAR = lv_i_buvar
         I_PROGN = lv_i_progn
         I_TCODE = lv_i_tcode
    IMPORTING
         E_CDYNP = lv_e_cdynp
         E_MDYNP = lv_e_mdynp
         E_VDYNP = lv_e_vdynp
         E_WDYNP = lv_e_wdynp
    TABLES
         T_BUVTAB = lt_t_buvtab
    EXCEPTIONS
        ABNORMAL_TERMINATION = 1
. " LINE_LAYOUT_INIT




ABAP code using 7.40 inline data declarations to call FM LINE_LAYOUT_INIT

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 DYNNR FROM T021D INTO @DATA(ld_e_cdynp).
 
"SELECT single ANWND FROM T021D INTO @DATA(ld_i_anwnd).
 
 
 
"SELECT single DYNNR FROM T021D INTO @DATA(ld_e_mdynp).
 
"SELECT single ANZRO FROM T021F INTO @DATA(ld_i_anzro).
 
"SELECT single DYNNR FROM T021D INTO @DATA(ld_e_vdynp).
 
"SELECT single BUVAR FROM T021H INTO @DATA(ld_i_buvar).
 
"SELECT single DYNNR FROM T021D INTO @DATA(ld_e_wdynp).
 
"SELECT single PROGN FROM T021D INTO @DATA(ld_i_progn).
 
"SELECT single TCODE FROM T020 INTO @DATA(ld_i_tcode).
 


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!