SAP LINE_INPUT Function Module for









LINE_INPUT is a standard line input SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 input FM, simply by entering the name LINE_INPUT into the relevant SAP transaction such as SE37 or SE38.

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



Function LINE_INPUT 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_INPUT'"
EXPORTING
STEPL = "
LINECOM_CONTENT_DISPLAY = "
CONTENT_LINE = "
EDIT_CONTROL = "
IN_LINENUMBER_FIELD = "
EXTEND_MOD = "

CHANGING
EDIT = "
CHANGED_MAX_LINE_NEU_C = "
CHANGED_MIN_LINE_NEU_C = "
CHANGED_MAX_LINE_ALT_C = "
CHANGED_MIN_LINE_ALT_C = "
UNDO_EXPORTED = "
S_MODIFIED = "
CONTENT_DISPLAY = "
TDLINE = "ABAP Source Line
FLAG_AUTO_SCROLL = "
CHANGED_MAX_LINE_NEU = "
CHANGED_MIN_LINE_NEU = "
CHANGED_MAX_LINE_ALT = "
CHANGED_MIN_LINE_ALT = "

TABLES
STEP = "
CONTENT = "ABAP Source Line
CONTENT_C = "ABAP Source Line
LINEINDEX = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLLOCAL_EDT1_001 User Exit for Editor (Dynamic Pattern)
EXIT_SAPLLOCAL_EDT1_002 User's Own Function Code in ABAP Editor

IMPORTING Parameters details for LINE_INPUT

STEPL -

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

LINECOM_CONTENT_DISPLAY -

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

CONTENT_LINE -

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

EDIT_CONTROL -

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

IN_LINENUMBER_FIELD -

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

EXTEND_MOD -

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

CHANGING Parameters details for LINE_INPUT

EDIT -

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

CHANGED_MAX_LINE_NEU_C -

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

CHANGED_MIN_LINE_NEU_C -

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

CHANGED_MAX_LINE_ALT_C -

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

CHANGED_MIN_LINE_ALT_C -

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

UNDO_EXPORTED -

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

S_MODIFIED -

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

CONTENT_DISPLAY -

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

TDLINE - ABAP Source Line

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

FLAG_AUTO_SCROLL -

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

CHANGED_MAX_LINE_NEU -

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

CHANGED_MIN_LINE_NEU -

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

CHANGED_MAX_LINE_ALT -

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

CHANGED_MIN_LINE_ALT -

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

TABLES Parameters details for LINE_INPUT

STEP -

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

CONTENT - ABAP Source Line

Data type: RSWSOURCET
Optional: No
Call by Reference: Yes

CONTENT_C - ABAP Source Line

Data type: RSWSOURCET
Optional: No
Call by Reference: Yes

LINEINDEX -

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

Copy and paste ABAP code example for LINE_INPUT 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_edit  TYPE S38E, "   
lt_step  TYPE STANDARD TABLE OF EDSTEP, "   
lv_stepl  TYPE SY-STEPL, "   
lv_changed_max_line_neu_c  TYPE SY-INDEX, "   
lv_changed_min_line_neu_c  TYPE SY-INDEX, "   
lv_changed_max_line_alt_c  TYPE SY-INDEX, "   
lv_changed_min_line_alt_c  TYPE SY-INDEX, "   
lv_undo_exported  TYPE SY, "   
lt_content  TYPE STANDARD TABLE OF RSWSOURCET, "   
lv_s_modified  TYPE RSWSOURCET, "   
lv_linecom_content_display  TYPE SY-INDEX, "   
lt_content_c  TYPE STANDARD TABLE OF RSWSOURCET, "   
lv_content_line  TYPE RSWSOURCET, "   
lv_content_display  TYPE SY-INDEX, "   
lv_tdline  TYPE RSLINE, "   
lt_lineindex  TYPE STANDARD TABLE OF EDLINEINDX, "   
lv_edit_control  TYPE EDLINEINDX, "   
lv_flag_auto_scroll  TYPE EDLINEINDX, "   
lv_in_linenumber_field  TYPE EDLINEINDX, "   
lv_extend_mod  TYPE EDLINEINDX, "   
lv_changed_max_line_neu  TYPE SY-INDEX, "   
lv_changed_min_line_neu  TYPE SY-INDEX, "   
lv_changed_max_line_alt  TYPE SY-INDEX, "   
lv_changed_min_line_alt  TYPE SY-INDEX. "   

  CALL FUNCTION 'LINE_INPUT'  "
    EXPORTING
         STEPL = lv_stepl
         LINECOM_CONTENT_DISPLAY = lv_linecom_content_display
         CONTENT_LINE = lv_content_line
         EDIT_CONTROL = lv_edit_control
         IN_LINENUMBER_FIELD = lv_in_linenumber_field
         EXTEND_MOD = lv_extend_mod
    CHANGING
         EDIT = lv_edit
         CHANGED_MAX_LINE_NEU_C = lv_changed_max_line_neu_c
         CHANGED_MIN_LINE_NEU_C = lv_changed_min_line_neu_c
         CHANGED_MAX_LINE_ALT_C = lv_changed_max_line_alt_c
         CHANGED_MIN_LINE_ALT_C = lv_changed_min_line_alt_c
         UNDO_EXPORTED = lv_undo_exported
         S_MODIFIED = lv_s_modified
         CONTENT_DISPLAY = lv_content_display
         TDLINE = lv_tdline
         FLAG_AUTO_SCROLL = lv_flag_auto_scroll
         CHANGED_MAX_LINE_NEU = lv_changed_max_line_neu
         CHANGED_MIN_LINE_NEU = lv_changed_min_line_neu
         CHANGED_MAX_LINE_ALT = lv_changed_max_line_alt
         CHANGED_MIN_LINE_ALT = lv_changed_min_line_alt
    TABLES
         STEP = lt_step
         CONTENT = lt_content
         CONTENT_C = lt_content_c
         LINEINDEX = lt_lineindex
. " LINE_INPUT




ABAP code using 7.40 inline data declarations to call FM LINE_INPUT

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 STEPL FROM SY INTO @DATA(ld_stepl).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_max_line_neu_c).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_min_line_neu_c).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_max_line_alt_c).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_min_line_alt_c).
 
 
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_linecom_content_display).
 
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_content_display).
 
 
 
 
 
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_max_line_neu).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_min_line_neu).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_max_line_alt).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_changed_min_line_alt).
 


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!