SAP TERM_GET_REQUEST_LIST Function Module for









TERM_GET_REQUEST_LIST is a standard term get request list 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 term get request list FM, simply by entering the name TERM_GET_REQUEST_LIST into the relevant SAP transaction such as SE37 or SE38.

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



Function TERM_GET_REQUEST_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_GET_REQUEST_LIST'"
EXPORTING
* LANGUAGE = SY-LANGU "SAP R/3 System, Current Language
* SEARCH_TERM = "SAPterm Text Field
* FROM_DAT = "Date and Time, Current (Application Server) Date
* MIN_OCCURENCE = "

TABLES
HITLIST = "Log of Unsuccessful Search Queries in SAPterm

EXCEPTIONS
NO_ENTRY_FOUND = 1 LANGU_MISING = 2
.



IMPORTING Parameters details for TERM_GET_REQUEST_LIST

LANGUAGE - SAP R/3 System, Current Language

Data type: SYLANGU
Default: SY-LANGU
Optional: No
Call by Reference: Yes

SEARCH_TERM - SAPterm Text Field

Data type: STERM_TEXT-TEXT
Optional: Yes
Call by Reference: Yes

FROM_DAT - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

MIN_OCCURENCE -

Data type: I
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for TERM_GET_REQUEST_LIST

HITLIST - Log of Unsuccessful Search Queries in SAPterm

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

EXCEPTIONS details

NO_ENTRY_FOUND -

Data type:
Optional: No
Call by Reference: Yes

LANGU_MISING -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TERM_GET_REQUEST_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:
lt_hitlist  TYPE STANDARD TABLE OF STERM_RQST, "   
lv_language  TYPE SYLANGU, "   SY-LANGU
lv_no_entry_found  TYPE SYLANGU, "   
lv_search_term  TYPE STERM_TEXT-TEXT, "   
lv_langu_mising  TYPE STERM_TEXT, "   
lv_from_dat  TYPE SY-DATUM, "   
lv_min_occurence  TYPE I. "   

  CALL FUNCTION 'TERM_GET_REQUEST_LIST'  "
    EXPORTING
         LANGUAGE = lv_language
         SEARCH_TERM = lv_search_term
         FROM_DAT = lv_from_dat
         MIN_OCCURENCE = lv_min_occurence
    TABLES
         HITLIST = lt_hitlist
    EXCEPTIONS
        NO_ENTRY_FOUND = 1
        LANGU_MISING = 2
. " TERM_GET_REQUEST_LIST




ABAP code using 7.40 inline data declarations to call FM TERM_GET_REQUEST_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.

 
DATA(ld_language) = SY-LANGU.
 
 
"SELECT single TEXT FROM STERM_TEXT INTO @DATA(ld_search_term).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_from_dat).
 
 


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!