SAP RETRIEVAL_MULTIPLE_TEXTS Function Module for









RETRIEVAL_MULTIPLE_TEXTS is a standard retrieval multiple texts 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 retrieval multiple texts FM, simply by entering the name RETRIEVAL_MULTIPLE_TEXTS into the relevant SAP transaction such as SE37 or SE38.

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



Function RETRIEVAL_MULTIPLE_TEXTS 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 'RETRIEVAL_MULTIPLE_TEXTS'"
EXPORTING
* OBJECT = 'TEXT' "
* NAME = ' ' "
* ID = 'ST' "
* LANGUAGE = SY-LANGU "
* E_RESTRICT = 100 "
* SHORT_SELECTION = ' ' "
* SINGLE_SELECTION_ONLY = ' ' "
* FIXED_OBJECT = ' ' "

TABLES
SELECTIONS = "
* DISABLED_FCODES = "SAPscript: Text Header

EXCEPTIONS
CANCELLED = 1 RETRIEVAL_ERROR = 2 INVALID_ID = 3 INVALID_LANGUAGE = 4
.



IMPORTING Parameters details for RETRIEVAL_MULTIPLE_TEXTS

OBJECT -

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

NAME -

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

ID -

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

LANGUAGE -

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

E_RESTRICT -

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

SHORT_SELECTION -

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

SINGLE_SELECTION_ONLY -

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

FIXED_OBJECT -

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

TABLES Parameters details for RETRIEVAL_MULTIPLE_TEXTS

SELECTIONS -

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

DISABLED_FCODES - SAPscript: Text Header

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

EXCEPTIONS details

CANCELLED -

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

RETRIEVAL_ERROR -

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

INVALID_ID -

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

INVALID_LANGUAGE -

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

Copy and paste ABAP code example for RETRIEVAL_MULTIPLE_TEXTS 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_object  TYPE THEAD-TDOBJECT, "   'TEXT'
lv_cancelled  TYPE THEAD, "   
lt_selections  TYPE STANDARD TABLE OF THEAD, "   
lv_name  TYPE THEAD-TDNAME, "   SPACE
lt_disabled_fcodes  TYPE STANDARD TABLE OF RSMPE_EXTB, "   
lv_retrieval_error  TYPE RSMPE_EXTB, "   
lv_id  TYPE THEAD-TDID, "   'ST'
lv_invalid_id  TYPE THEAD, "   
lv_language  TYPE THEAD-TDSPRAS, "   SY-LANGU
lv_invalid_language  TYPE THEAD, "   
lv_e_restrict  TYPE THEAD, "   100
lv_short_selection  TYPE THEAD, "   SPACE
lv_single_selection_only  TYPE THEAD, "   SPACE
lv_fixed_object  TYPE THEAD. "   SPACE

  CALL FUNCTION 'RETRIEVAL_MULTIPLE_TEXTS'  "
    EXPORTING
         OBJECT = lv_object
         NAME = lv_name
         ID = lv_id
         LANGUAGE = lv_language
         E_RESTRICT = lv_e_restrict
         SHORT_SELECTION = lv_short_selection
         SINGLE_SELECTION_ONLY = lv_single_selection_only
         FIXED_OBJECT = lv_fixed_object
    TABLES
         SELECTIONS = lt_selections
         DISABLED_FCODES = lt_disabled_fcodes
    EXCEPTIONS
        CANCELLED = 1
        RETRIEVAL_ERROR = 2
        INVALID_ID = 3
        INVALID_LANGUAGE = 4
. " RETRIEVAL_MULTIPLE_TEXTS




ABAP code using 7.40 inline data declarations to call FM RETRIEVAL_MULTIPLE_TEXTS

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 TDOBJECT FROM THEAD INTO @DATA(ld_object).
DATA(ld_object) = 'TEXT'.
 
 
 
"SELECT single TDNAME FROM THEAD INTO @DATA(ld_name).
DATA(ld_name) = ' '.
 
 
 
"SELECT single TDID FROM THEAD INTO @DATA(ld_id).
DATA(ld_id) = 'ST'.
 
 
"SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
DATA(ld_e_restrict) = 100.
 
DATA(ld_short_selection) = ' '.
 
DATA(ld_single_selection_only) = ' '.
 
DATA(ld_fixed_object) = ' '.
 


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!