SAP Function Modules

LXE_T002_SELECT_LANGUAGE_OLD SAP Function module







LXE_T002_SELECT_LANGUAGE_OLD 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 LXE_T002_SELECT_LANGUAGE_OLD into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM LXE_T002_SELECT_LANGUAGE_OLD - LXE T002 SELECT LANGUAGE OLD





CALL FUNCTION 'LXE_T002_SELECT_LANGUAGE_OLD' "
* EXPORTING
*   flag_plus = ''              " char1         Single-Character Flag
*   flag_star = ''              " char1         Single-Character Flag
*   r3_lang_only = ''           " char1         Single-Character Flag
*   dynpprog = ''               " syrepid       ABAP Program: Current Main Program
*   dynpnr = ''                 " sy-dynnr      ABAP Program: Number of Current Screen
*   dynpfield = ''              " help_info-dynprofld  Field Name
*   dynpfield_x = ''            " help_info-dynprofld  Field Name
  IMPORTING
    language =                  " lxeisolang    ISO Language ID
    r3_lang =                   " spras         Language Key
    text =                      " string
  EXCEPTIONS
    PARAMETER_ERROR = 1         "
    NO_VALUES_FOUND = 2         "
    NO_SELECTION = 3            "
    .  "  LXE_T002_SELECT_LANGUAGE_OLD

ABAP code example for Function Module LXE_T002_SELECT_LANGUAGE_OLD





The ABAP code below is a full code listing to execute function module LXE_T002_SELECT_LANGUAGE_OLD 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_language  TYPE LXEISOLANG ,
ld_r3_lang  TYPE SPRAS ,
ld_text  TYPE STRING .

DATA(ld_flag_plus) = 'Check type of data required'.
DATA(ld_flag_star) = 'Check type of data required'.
DATA(ld_r3_lang_only) = 'Check type of data required'.
DATA(ld_dynpprog) = 'some text here'.
DATA(ld_dynpnr) = 'some text here'.

DATA(ld_dynpfield) = some text here

DATA(ld_dynpfield_x) = some text here . CALL FUNCTION 'LXE_T002_SELECT_LANGUAGE_OLD' * EXPORTING * flag_plus = ld_flag_plus * flag_star = ld_flag_star * r3_lang_only = ld_r3_lang_only * dynpprog = ld_dynpprog * dynpnr = ld_dynpnr * dynpfield = ld_dynpfield * dynpfield_x = ld_dynpfield_x IMPORTING language = ld_language r3_lang = ld_r3_lang text = ld_text EXCEPTIONS PARAMETER_ERROR = 1 NO_VALUES_FOUND = 2 NO_SELECTION = 3 . " LXE_T002_SELECT_LANGUAGE_OLD
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_language  TYPE LXEISOLANG ,
ld_flag_plus  TYPE CHAR1 ,
ld_r3_lang  TYPE SPRAS ,
ld_flag_star  TYPE CHAR1 ,
ld_text  TYPE STRING ,
ld_r3_lang_only  TYPE CHAR1 ,
ld_dynpprog  TYPE SYREPID ,
ld_dynpnr  TYPE SY-DYNNR ,
ld_dynpfield  TYPE HELP_INFO-DYNPROFLD ,
ld_dynpfield_x  TYPE HELP_INFO-DYNPROFLD .

ld_flag_plus = 'some text here'.
ld_flag_star = 'some text here'.
ld_r3_lang_only = 'some text here'.
ld_dynpprog = 'some text here'.
ld_dynpnr = 'some text here'.

ld_dynpfield = some text here

ld_dynpfield_x = some text here

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 LXE_T002_SELECT_LANGUAGE_OLD or its description.