SAP LXE_T002_SELECT_LANGUAGE Function Module for Select language
LXE_T002_SELECT_LANGUAGE is a standard lxe t002 select language SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select language 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 lxe t002 select language FM, simply by entering the name LXE_T002_SELECT_LANGUAGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: LXE_T002
Program Name: SAPLLXE_T002
Main Program: SAPLLXE_T002
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LXE_T002_SELECT_LANGUAGE 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 'LXE_T002_SELECT_LANGUAGE'"Select language.
EXPORTING
* FLAG_PLUS = '' "Single-Character Flag
* TITLE = '' "
* START_X = '1' "
* START_Y = '1' "
* END_X = '1' "
* END_Y = '1' "
* BASIS_ONLY = '' "
* FLAG_STAR = '' "Single-Character Flag
* R3_LANG_ONLY = '' "Single-Character Flag
* TRANS_ONLY = '' "
* ACTIVE_ONLY = '' "
* DYNPPROG = '' "ABAP Program: Current Main Program
* DYNPNR = '' "ABAP Program: Number of Current Screen
* DYNPFIELD = '' "Field Name
* DYNPFIELD_X = '' "Field Name
IMPORTING
LANGUAGE = "ISO Language ID
R3_LANG = "Language Key
TEXT = "
TABLES
* BASIS_LANGS = "
EXCEPTIONS
PARAMETER_ERROR = 1 NO_VALUES_FOUND = 2 NO_SELECTION = 3
IMPORTING Parameters details for LXE_T002_SELECT_LANGUAGE
FLAG_PLUS - Single-Character Flag
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE -
Data type: CDefault: ''
Optional: Yes
Call by Reference: Yes
START_X -
Data type: IDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
START_Y -
Data type: IDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
END_X -
Data type: IDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
END_Y -
Data type: IDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BASIS_ONLY -
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLAG_STAR - Single-Character Flag
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
R3_LANG_ONLY - Single-Character Flag
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRANS_ONLY -
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVE_ONLY -
Data type: LXEBOOLDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPPROG - ABAP Program: Current Main Program
Data type: SYREPIDDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPNR - ABAP Program: Number of Current Screen
Data type: SY-DYNNRDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPFIELD - Field Name
Data type: HELP_INFO-DYNPROFLDDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPFIELD_X - Field Name
Data type: HELP_INFO-DYNPROFLDDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LXE_T002_SELECT_LANGUAGE
LANGUAGE - ISO Language ID
Data type: LXEISOLANGOptional: No
Call by Reference: No ( called with pass by value option)
R3_LANG - Language Key
Data type: SPRASOptional: No
Call by Reference: No ( called with pass by value option)
TEXT -
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LXE_T002_SELECT_LANGUAGE
BASIS_LANGS -
Data type: LXE_T002Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_VALUES_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_SELECTION -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LXE_T002_SELECT_LANGUAGE 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_language | TYPE LXEISOLANG, " | |||
| lv_flag_plus | TYPE CHAR1, " '' | |||
| lt_basis_langs | TYPE STANDARD TABLE OF LXE_T002, " | |||
| lv_parameter_error | TYPE LXE_T002, " | |||
| lv_title | TYPE C, " '' | |||
| lv_start_x | TYPE I, " '1' | |||
| lv_start_y | TYPE I, " '1' | |||
| lv_end_x | TYPE I, " '1' | |||
| lv_end_y | TYPE I, " '1' | |||
| lv_basis_only | TYPE CHAR1, " '' | |||
| lv_r3_lang | TYPE SPRAS, " | |||
| lv_flag_star | TYPE CHAR1, " '' | |||
| lv_no_values_found | TYPE CHAR1, " | |||
| lv_text | TYPE STRING, " | |||
| lv_no_selection | TYPE STRING, " | |||
| lv_r3_lang_only | TYPE CHAR1, " '' | |||
| lv_trans_only | TYPE CHAR1, " '' | |||
| lv_active_only | TYPE LXEBOOL, " '' | |||
| lv_dynpprog | TYPE SYREPID, " '' | |||
| lv_dynpnr | TYPE SY-DYNNR, " '' | |||
| lv_dynpfield | TYPE HELP_INFO-DYNPROFLD, " '' | |||
| lv_dynpfield_x | TYPE HELP_INFO-DYNPROFLD. " '' |
|   CALL FUNCTION 'LXE_T002_SELECT_LANGUAGE' "Select language |
| EXPORTING | ||
| FLAG_PLUS | = lv_flag_plus | |
| TITLE | = lv_title | |
| START_X | = lv_start_x | |
| START_Y | = lv_start_y | |
| END_X | = lv_end_x | |
| END_Y | = lv_end_y | |
| BASIS_ONLY | = lv_basis_only | |
| FLAG_STAR | = lv_flag_star | |
| R3_LANG_ONLY | = lv_r3_lang_only | |
| TRANS_ONLY | = lv_trans_only | |
| ACTIVE_ONLY | = lv_active_only | |
| DYNPPROG | = lv_dynpprog | |
| DYNPNR | = lv_dynpnr | |
| DYNPFIELD | = lv_dynpfield | |
| DYNPFIELD_X | = lv_dynpfield_x | |
| IMPORTING | ||
| LANGUAGE | = lv_language | |
| R3_LANG | = lv_r3_lang | |
| TEXT | = lv_text | |
| TABLES | ||
| BASIS_LANGS | = lt_basis_langs | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| NO_VALUES_FOUND = 2 | ||
| NO_SELECTION = 3 | ||
| . " LXE_T002_SELECT_LANGUAGE | ||
ABAP code using 7.40 inline data declarations to call FM LXE_T002_SELECT_LANGUAGE
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_flag_plus) | = ''. | |||
| DATA(ld_title) | = ''. | |||
| DATA(ld_start_x) | = '1'. | |||
| DATA(ld_start_y) | = '1'. | |||
| DATA(ld_end_x) | = '1'. | |||
| DATA(ld_end_y) | = '1'. | |||
| DATA(ld_basis_only) | = ''. | |||
| DATA(ld_flag_star) | = ''. | |||
| DATA(ld_r3_lang_only) | = ''. | |||
| DATA(ld_trans_only) | = ''. | |||
| DATA(ld_active_only) | = ''. | |||
| DATA(ld_dynpprog) | = ''. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_dynpnr). | ||||
| DATA(ld_dynpnr) | = ''. | |||
| "SELECT single DYNPROFLD FROM HELP_INFO INTO @DATA(ld_dynpfield). | ||||
| DATA(ld_dynpfield) | = ''. | |||
| "SELECT single DYNPROFLD FROM HELP_INFO INTO @DATA(ld_dynpfield_x). | ||||
| DATA(ld_dynpfield_x) | = ''. | |||
Search for further information about these or an SAP related objects