SAP LINE_OUTPUT Function Module for









LINE_OUTPUT is a standard line output 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 output FM, simply by entering the name LINE_OUTPUT 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_OUTPUT 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_OUTPUT'"
EXPORTING
STEPL = "
* LAST_NAME = 'RSTXP-TDLAST' "
* TOTAL_NAME = 'RSTXP-TDTOTAL' "
* COMMLINE_NAME = 'RSTXP-TDCOMMLINE' "
* LINECOM_NAME = 'RSTXP-TDLINECOM' "
* MARK_NAME = 'RSTXP-TDMARK' "
* MARK1_NAME = 'RSTXP-TDMARK1' "
REMEMBER_I = "
EDIT_CONTROL = "
* EXTEND_MOD = "
* NAME_WOUT_NAME' ' = ' ' "
CONTENT_LINE = "
* COMMENT_IGNORE_FLAG = ' ' "
* CURSOR_I = "
LOOPC = "
CASE_MODE = "
CONTENT_DISPLAY = "
CONTENT_FILL = "
EDIT = "
* LINE_NAME = 'RSTXP-TDLINE' "
* FIRST_NAME = 'RSTXP-TDFIRST' "

CHANGING
DYNPRO_LINES = "
TDLINE = "ABAP Source Line
TDMARK = "Selection column in editor
TDMARK1 = "Selection column in editor
LINEINDEX_LINE = "
OUTPUT_LINE_INPUT = "
OUTPUT_LINE_INTENSIFIED = "
OUTPUT_LINE_SIZE = "
AFTER_LAST = "

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




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_OUTPUT

STEPL -

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

LAST_NAME -

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

TOTAL_NAME -

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

COMMLINE_NAME -

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

LINECOM_NAME -

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

MARK_NAME -

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

MARK1_NAME -

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

REMEMBER_I -

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)

EXTEND_MOD -

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

NAME_WOUT_NAMESPACE -

Data type:
Default: SPACE
Optional: Yes
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)

COMMENT_IGNORE_FLAG -

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

CURSOR_I -

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

LOOPC -

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

CASE_MODE -

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)

CONTENT_FILL -

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

EDIT -

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

LINE_NAME -

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

FIRST_NAME -

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

CHANGING Parameters details for LINE_OUTPUT

DYNPRO_LINES -

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)

TDMARK - Selection column in editor

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

TDMARK1 - Selection column in editor

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

LINEINDEX_LINE -

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

OUTPUT_LINE_INPUT -

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

OUTPUT_LINE_INTENSIFIED -

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

OUTPUT_LINE_SIZE -

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

AFTER_LAST -

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

TABLES Parameters details for LINE_OUTPUT

LINEINDEX -

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

STEP -

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

PAGE - ABAP Source Line

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

LINENUM -

Data type: EDLINENUM
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

Copy and paste ABAP code example for LINE_OUTPUT 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_stepl  TYPE SY-STEPL, "   
lt_lineindex  TYPE STANDARD TABLE OF EDLINEINDX, "   
lv_dynpro_lines  TYPE SY-INDEX, "   
lv_last_name  TYPE SY, "   'RSTXP-TDLAST'
lv_total_name  TYPE SY, "   'RSTXP-TDTOTAL'
lv_commline_name  TYPE SY, "   'RSTXP-TDCOMMLINE'
lv_linecom_name  TYPE SY, "   'RSTXP-TDLINECOM'
lv_mark_name  TYPE SY, "   'RSTXP-TDMARK'
lv_mark1_name  TYPE SY, "   'RSTXP-TDMARK1'
lv_remember_i  TYPE SY, "   
lv_edit_control  TYPE SY, "   
lv_extend_mod  TYPE SY, "   
lv_name_wout_namespace  TYPE SY, "   SPACE
lt_step  TYPE STANDARD TABLE OF EDSTEP, "   
lv_tdline  TYPE RSLINE, "   
lv_content_line  TYPE RSLINE, "   
lv_comment_ignore_flag  TYPE RSLINE, "   SPACE
lv_cursor_i  TYPE RSLINE, "   
lt_page  TYPE STANDARD TABLE OF RSWSOURCET, "   
lv_loopc  TYPE SY-LOOPC, "   
lv_tdmark  TYPE RSTXP-TDMARK, "   
lt_linenum  TYPE STANDARD TABLE OF EDLINENUM, "   
lv_tdmark1  TYPE RSTXP-TDMARK1, "   
lv_case_mode  TYPE RSTXP, "   
lt_content  TYPE STANDARD TABLE OF RSWSOURCET, "   
lv_lineindex_line  TYPE RSWSOURCET, "   
lv_content_display  TYPE SY-INDEX, "   
lt_content_c  TYPE STANDARD TABLE OF RSWSOURCET, "   
lv_content_fill  TYPE SY-INDEX, "   
lv_output_line_input  TYPE SY, "   
lv_edit  TYPE S38E, "   
lv_output_line_intensified  TYPE S38E, "   
lv_line_name  TYPE S38E, "   'RSTXP-TDLINE'
lv_output_line_size  TYPE S38E, "   
lv_after_last  TYPE S38E, "   
lv_first_name  TYPE S38E. "   'RSTXP-TDFIRST'

  CALL FUNCTION 'LINE_OUTPUT'  "
    EXPORTING
         STEPL = lv_stepl
         LAST_NAME = lv_last_name
         TOTAL_NAME = lv_total_name
         COMMLINE_NAME = lv_commline_name
         LINECOM_NAME = lv_linecom_name
         MARK_NAME = lv_mark_name
         MARK1_NAME = lv_mark1_name
         REMEMBER_I = lv_remember_i
         EDIT_CONTROL = lv_edit_control
         EXTEND_MOD = lv_extend_mod
         NAME_WOUT_NAMESPACE = lv_name_wout_namespace
         CONTENT_LINE = lv_content_line
         COMMENT_IGNORE_FLAG = lv_comment_ignore_flag
         CURSOR_I = lv_cursor_i
         LOOPC = lv_loopc
         CASE_MODE = lv_case_mode
         CONTENT_DISPLAY = lv_content_display
         CONTENT_FILL = lv_content_fill
         EDIT = lv_edit
         LINE_NAME = lv_line_name
         FIRST_NAME = lv_first_name
    CHANGING
         DYNPRO_LINES = lv_dynpro_lines
         TDLINE = lv_tdline
         TDMARK = lv_tdmark
         TDMARK1 = lv_tdmark1
         LINEINDEX_LINE = lv_lineindex_line
         OUTPUT_LINE_INPUT = lv_output_line_input
         OUTPUT_LINE_INTENSIFIED = lv_output_line_intensified
         OUTPUT_LINE_SIZE = lv_output_line_size
         AFTER_LAST = lv_after_last
    TABLES
         LINEINDEX = lt_lineindex
         STEP = lt_step
         PAGE = lt_page
         LINENUM = lt_linenum
         CONTENT = lt_content
         CONTENT_C = lt_content_c
. " LINE_OUTPUT




ABAP code using 7.40 inline data declarations to call FM LINE_OUTPUT

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_dynpro_lines).
 
DATA(ld_last_name) = 'RSTXP-TDLAST'.
 
DATA(ld_total_name) = 'RSTXP-TDTOTAL'.
 
DATA(ld_commline_name) = 'RSTXP-TDCOMMLINE'.
 
DATA(ld_linecom_name) = 'RSTXP-TDLINECOM'.
 
DATA(ld_mark_name) = 'RSTXP-TDMARK'.
 
DATA(ld_mark1_name) = 'RSTXP-TDMARK1'.
 
 
 
 
DATA(ld_name_wout_namespace) = ' '.
 
 
 
 
DATA(ld_comment_ignore_flag) = ' '.
 
 
 
"SELECT single LOOPC FROM SY INTO @DATA(ld_loopc).
 
"SELECT single TDMARK FROM RSTXP INTO @DATA(ld_tdmark).
 
 
"SELECT single TDMARK1 FROM RSTXP INTO @DATA(ld_tdmark1).
 
 
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_content_display).
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_content_fill).
 
 
 
 
DATA(ld_line_name) = 'RSTXP-TDLINE'.
 
 
 
DATA(ld_first_name) = 'RSTXP-TDFIRST'.
 


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!