SAP TERM_DISPLAY_LIST Function Module for TERM_DISPLAY_LIST









TERM_DISPLAY_LIST is a standard term display list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TERM_DISPLAY_LIST 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 term display list FM, simply by entering the name TERM_DISPLAY_LIST into the relevant SAP transaction such as SE37 or SE38.

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



Function TERM_DISPLAY_LIST 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 'TERM_DISPLAY_LIST'"TERM_DISPLAY_LIST
EXPORTING
* START_ROW = 5 "
* SYSTEM_ID = SY-SYSID "
* READONLY = '' "
* PROJECT_ID = "
* START_COL = 5 "
* SOURCE_LANGU = SY-LANGU "
* TARGET_LANGU = 'E' "
* INCLUDE_FCODES = "
* USER_SETTINGS = "User-Specific Settings in SAPterm
* LIST_BILINGUAL = ' ' "
* SET_STATUS = ' ' "
* REFRESH_FILTER = 'X' "Flag (X or blank)

IMPORTING
ENTRY = "
P_OK_CODE = "

CHANGING
* SY_LILLI = "
* SY_CUROW = "

TABLES
ENTRIES = "

EXCEPTIONS
USER_CANCELLED = 1 NO_ENTRY_FOUND = 2
.



IMPORTING Parameters details for TERM_DISPLAY_LIST

START_ROW -

Data type: SY-CUROW
Default: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)

SYSTEM_ID -

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

READONLY -

Data type:
Default: ''
Optional: No
Call by Reference: Yes

PROJECT_ID -

Data type: STERM_PRJ_HEAD-PROJECT_KEY
Optional: Yes
Call by Reference: Yes

START_COL -

Data type: SY-CUCOL
Default: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)

SOURCE_LANGU -

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

TARGET_LANGU -

Data type: SY-LANGU
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

INCLUDE_FCODES -

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

USER_SETTINGS - User-Specific Settings in SAPterm

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

LIST_BILINGUAL -

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

SET_STATUS -

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

REFRESH_FILTER - Flag (X or blank)

Data type: AS4FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for TERM_DISPLAY_LIST

ENTRY -

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

P_OK_CODE -

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

CHANGING Parameters details for TERM_DISPLAY_LIST

SY_LILLI -

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

SY_CUROW -

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

TABLES Parameters details for TERM_DISPLAY_LIST

ENTRIES -

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

EXCEPTIONS details

USER_CANCELLED -

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

NO_ENTRY_FOUND -

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

Copy and paste ABAP code example for TERM_DISPLAY_LIST 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_entry  TYPE STERM_TERM, "   
lt_entries  TYPE STANDARD TABLE OF STERM_TERM, "   
lv_sy_lilli  TYPE SY-LILLI, "   
lv_start_row  TYPE SY-CUROW, "   5
lv_user_cancelled  TYPE SY, "   
lv_system_id  TYPE SY-SYSID, "   SY-SYSID
lv_readonly  TYPE SY, "   ''
lv_project_id  TYPE STERM_PRJ_HEAD-PROJECT_KEY, "   
lv_sy_curow  TYPE SY-CUROW, "   
lv_p_ok_code  TYPE RSNEWLENG-FCODE, "   
lv_start_col  TYPE SY-CUCOL, "   5
lv_no_entry_found  TYPE SY, "   
lv_source_langu  TYPE SY-LANGU, "   SY-LANGU
lv_target_langu  TYPE SY-LANGU, "   'E'
lv_include_fcodes  TYPE TERMS_FCODE, "   
lv_user_settings  TYPE STERM_USER, "   
lv_list_bilingual  TYPE STERM_USER, "   ' '
lv_set_status  TYPE STERM_USER, "   ' '
lv_refresh_filter  TYPE AS4FLAG. "   'X'

  CALL FUNCTION 'TERM_DISPLAY_LIST'  "TERM_DISPLAY_LIST
    EXPORTING
         START_ROW = lv_start_row
         SYSTEM_ID = lv_system_id
         READONLY = lv_readonly
         PROJECT_ID = lv_project_id
         START_COL = lv_start_col
         SOURCE_LANGU = lv_source_langu
         TARGET_LANGU = lv_target_langu
         INCLUDE_FCODES = lv_include_fcodes
         USER_SETTINGS = lv_user_settings
         LIST_BILINGUAL = lv_list_bilingual
         SET_STATUS = lv_set_status
         REFRESH_FILTER = lv_refresh_filter
    IMPORTING
         ENTRY = lv_entry
         P_OK_CODE = lv_p_ok_code
    CHANGING
         SY_LILLI = lv_sy_lilli
         SY_CUROW = lv_sy_curow
    TABLES
         ENTRIES = lt_entries
    EXCEPTIONS
        USER_CANCELLED = 1
        NO_ENTRY_FOUND = 2
. " TERM_DISPLAY_LIST




ABAP code using 7.40 inline data declarations to call FM TERM_DISPLAY_LIST

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 LILLI FROM SY INTO @DATA(ld_sy_lilli).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_start_row).
DATA(ld_start_row) = 5.
 
 
"SELECT single SYSID FROM SY INTO @DATA(ld_system_id).
DATA(ld_system_id) = SY-SYSID.
 
DATA(ld_readonly) = ''.
 
"SELECT single PROJECT_KEY FROM STERM_PRJ_HEAD INTO @DATA(ld_project_id).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_sy_curow).
 
"SELECT single FCODE FROM RSNEWLENG INTO @DATA(ld_p_ok_code).
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_start_col).
DATA(ld_start_col) = 5.
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_source_langu).
DATA(ld_source_langu) = SY-LANGU.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_target_langu).
DATA(ld_target_langu) = 'E'.
 
 
 
DATA(ld_list_bilingual) = ' '.
 
DATA(ld_set_status) = ' '.
 
DATA(ld_refresh_filter) = 'X'.
 


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!