SAP Function Modules

SELECTION_TEXTS_GET SAP Function module







SELECTION_TEXTS_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SELECTION_TEXTS_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: WVK0
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SELECTION_TEXTS_GET - SELECTION TEXTS GET





CALL FUNCTION 'SELECTION_TEXTS_GET' "
* EXPORTING
*   pi_ekorg =                  " calp-ekorg    Purchasing Organization
*   px_ekorg_alt =              " calp-ekorg
*   pi_lifnr =                  " calp-lifnr    Vendor
*   px_lifnr_alt =              " calp-lifnr
*   pi_ltsnr =                  " calp-ltsnr    Vendor Subrange
*   px_ltsnr_alt =              " calp-ltsnr
*   pi_matkl =                  " calp-matkl    Material Group
*   px_matkl_alt =              " calp-matkl
*   pi_saiso =                  " mara-saiso    Season
*   px_saiso_alt =              " mara-saiso
  IMPORTING
    pe_ekorgt =                 "
    pe_lifnrt =                 "
    pe_ltsnrt =                 "
    pe_matklt =                 "
    pe_saisot =                 "
    .  "  SELECTION_TEXTS_GET

ABAP code example for Function Module SELECTION_TEXTS_GET





The ABAP code below is a full code listing to execute function module SELECTION_TEXTS_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_pe_ekorgt  TYPE STRING ,
ld_pe_lifnrt  TYPE STRING ,
ld_pe_ltsnrt  TYPE STRING ,
ld_pe_matklt  TYPE STRING ,
ld_pe_saisot  TYPE STRING .


DATA(ld_pi_ekorg) = some text here

DATA(ld_px_ekorg_alt) = some text here

DATA(ld_pi_lifnr) = some text here

DATA(ld_px_lifnr_alt) = some text here

DATA(ld_pi_ltsnr) = some text here

DATA(ld_px_ltsnr_alt) = some text here

DATA(ld_pi_matkl) = some text here

DATA(ld_px_matkl_alt) = some text here

SELECT single SAISO
FROM MARA
INTO @DATA(ld_pi_saiso).


SELECT single SAISO
FROM MARA
INTO @DATA(ld_px_saiso_alt).
. CALL FUNCTION 'SELECTION_TEXTS_GET' * EXPORTING * pi_ekorg = ld_pi_ekorg * px_ekorg_alt = ld_px_ekorg_alt * pi_lifnr = ld_pi_lifnr * px_lifnr_alt = ld_px_lifnr_alt * pi_ltsnr = ld_pi_ltsnr * px_ltsnr_alt = ld_px_ltsnr_alt * pi_matkl = ld_pi_matkl * px_matkl_alt = ld_px_matkl_alt * pi_saiso = ld_pi_saiso * px_saiso_alt = ld_px_saiso_alt IMPORTING pe_ekorgt = ld_pe_ekorgt pe_lifnrt = ld_pe_lifnrt pe_ltsnrt = ld_pe_ltsnrt pe_matklt = ld_pe_matklt pe_saisot = ld_pe_saisot . " SELECTION_TEXTS_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pe_ekorgt  TYPE STRING ,
ld_pi_ekorg  TYPE CALP-EKORG ,
ld_pe_lifnrt  TYPE STRING ,
ld_px_ekorg_alt  TYPE CALP-EKORG ,
ld_pe_ltsnrt  TYPE STRING ,
ld_pi_lifnr  TYPE CALP-LIFNR ,
ld_pe_matklt  TYPE STRING ,
ld_px_lifnr_alt  TYPE CALP-LIFNR ,
ld_pe_saisot  TYPE STRING ,
ld_pi_ltsnr  TYPE CALP-LTSNR ,
ld_px_ltsnr_alt  TYPE CALP-LTSNR ,
ld_pi_matkl  TYPE CALP-MATKL ,
ld_px_matkl_alt  TYPE CALP-MATKL ,
ld_pi_saiso  TYPE MARA-SAISO ,
ld_px_saiso_alt  TYPE MARA-SAISO .


ld_pi_ekorg = some text here

ld_px_ekorg_alt = some text here

ld_pi_lifnr = some text here

ld_px_lifnr_alt = some text here

ld_pi_ltsnr = some text here

ld_px_ltsnr_alt = some text here

ld_pi_matkl = some text here

ld_px_matkl_alt = some text here

SELECT single SAISO
FROM MARA
INTO ld_pi_saiso.


SELECT single SAISO
FROM MARA
INTO ld_px_saiso_alt.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SELECTION_TEXTS_GET or its description.