SAP LXE_T002_CHECK_LANGUAGE Function Module for LXE_T002_CHECK_LANGUAGE
LXE_T002_CHECK_LANGUAGE is a standard lxe t002 check 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 LXE_T002_CHECK_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 check language FM, simply by entering the name LXE_T002_CHECK_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:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LXE_T002_CHECK_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_CHECK_LANGUAGE'"LXE_T002_CHECK_LANGUAGE.
EXPORTING
* LANGUAGE = "ISO Language ID
* R3_LANG = "Language Key
* CHECK_CP = '' "Single-Character Flag
IMPORTING
TEXT = "Language Version
O_R3_LANG = "Language Key
O_LANGUAGE = "ISO Language ID
IS_R3_LANG = "Single-Character Flag
DEV_LANG = "ISO Language ID
LASPEZ = "
EXCEPTIONS
LANGUAGE_NOT_IN_CP = 1 UNKNOWN = 2
IMPORTING Parameters details for LXE_T002_CHECK_LANGUAGE
LANGUAGE - ISO Language ID
Data type: LXEISOLANGOptional: Yes
Call by Reference: No ( called with pass by value option)
R3_LANG - Language Key
Data type: SPRASOptional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_CP - Single-Character Flag
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LXE_T002_CHECK_LANGUAGE
TEXT - Language Version
Data type: LXE_T002T-SPTXTOptional: No
Call by Reference: No ( called with pass by value option)
O_R3_LANG - Language Key
Data type: T002-SPRASOptional: No
Call by Reference: No ( called with pass by value option)
O_LANGUAGE - ISO Language ID
Data type: LXEISOLANGOptional: No
Call by Reference: No ( called with pass by value option)
IS_R3_LANG - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
DEV_LANG - ISO Language ID
Data type: LXEISOLANGOptional: No
Call by Reference: No ( called with pass by value option)
LASPEZ -
Data type: LASPEZOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
LANGUAGE_NOT_IN_CP -
Data type:Optional: No
Call by Reference: Yes
UNKNOWN -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LXE_T002_CHECK_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_text | TYPE LXE_T002T-SPTXT, " | |||
| lv_language | TYPE LXEISOLANG, " | |||
| lv_language_not_in_cp | TYPE LXEISOLANG, " | |||
| lv_r3_lang | TYPE SPRAS, " | |||
| lv_unknown | TYPE SPRAS, " | |||
| lv_o_r3_lang | TYPE T002-SPRAS, " | |||
| lv_check_cp | TYPE CHAR1, " '' | |||
| lv_o_language | TYPE LXEISOLANG, " | |||
| lv_is_r3_lang | TYPE CHAR1, " | |||
| lv_dev_lang | TYPE LXEISOLANG, " | |||
| lv_laspez | TYPE LASPEZ. " |
|   CALL FUNCTION 'LXE_T002_CHECK_LANGUAGE' "LXE_T002_CHECK_LANGUAGE |
| EXPORTING | ||
| LANGUAGE | = lv_language | |
| R3_LANG | = lv_r3_lang | |
| CHECK_CP | = lv_check_cp | |
| IMPORTING | ||
| TEXT | = lv_text | |
| O_R3_LANG | = lv_o_r3_lang | |
| O_LANGUAGE | = lv_o_language | |
| IS_R3_LANG | = lv_is_r3_lang | |
| DEV_LANG | = lv_dev_lang | |
| LASPEZ | = lv_laspez | |
| EXCEPTIONS | ||
| LANGUAGE_NOT_IN_CP = 1 | ||
| UNKNOWN = 2 | ||
| . " LXE_T002_CHECK_LANGUAGE | ||
ABAP code using 7.40 inline data declarations to call FM LXE_T002_CHECK_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.| "SELECT single SPTXT FROM LXE_T002T INTO @DATA(ld_text). | ||||
| "SELECT single SPRAS FROM T002 INTO @DATA(ld_o_r3_lang). | ||||
| DATA(ld_check_cp) | = ''. | |||
Search for further information about these or an SAP related objects