SAP RS_TEXTLOG_MASTER_LANGUAGE Function Module for Standard dialog in case original language is different









RS_TEXTLOG_MASTER_LANGUAGE is a standard rs textlog master 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 Standard dialog in case original language is different 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 rs textlog master language FM, simply by entering the name RS_TEXTLOG_MASTER_LANGUAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function RS_TEXTLOG_MASTER_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 'RS_TEXTLOG_MASTER_LANGUAGE'"Standard dialog in case original language is different
EXPORTING
* LANGUAGE_UPD_EXIT = ' ' "Original languange conversion module
MASTER_LANGUAGE = "Parameter not used!
OPERATION = "
TRANSPORT_KEY = "
* SUPPRESS_LANGUAGE_DIALOG = ' ' "Supress dialog
* REQUEST_LANGUAGE = ' ' "Request language
* EXTEND = "Customer enhancement
* OBJECT_ENQUEUE_EXIT = ' ' "
* OBJECT_DEQUEUE_EXIT = ' ' "

IMPORTING
NEW_MASTER_LANGUAGE = "Original language
MODIFICATION_LANGUAGE = "Display/modification language

EXCEPTIONS
CANCELED = 1 PERMISSION_FAILURE = 2 REQUEST_LANGUAGE_DENIED = 3
.



IMPORTING Parameters details for RS_TEXTLOG_MASTER_LANGUAGE

LANGUAGE_UPD_EXIT - Original languange conversion module

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

MASTER_LANGUAGE - Parameter not used!

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

OPERATION -

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

TRANSPORT_KEY -

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

SUPPRESS_LANGUAGE_DIALOG - Supress dialog

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

REQUEST_LANGUAGE - Request language

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

EXTEND - Customer enhancement

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

OBJECT_ENQUEUE_EXIT -

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

OBJECT_DEQUEUE_EXIT -

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

EXPORTING Parameters details for RS_TEXTLOG_MASTER_LANGUAGE

NEW_MASTER_LANGUAGE - Original language

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

MODIFICATION_LANGUAGE - Display/modification language

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

EXCEPTIONS details

CANCELED - User termination

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

PERMISSION_FAILURE - No authorization

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

REQUEST_LANGUAGE_DENIED - Unpermitted request language

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

Copy and paste ABAP code example for RS_TEXTLOG_MASTER_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_canceled  TYPE STRING, "   
lv_language_upd_exit  TYPE TFDIR-FUNCNAME, "   SPACE
lv_new_master_language  TYPE SY-LANGU, "   
lv_master_language  TYPE SY-LANGU, "   
lv_permission_failure  TYPE SY, "   
lv_modification_language  TYPE SY-LANGU, "   
lv_operation  TYPE SY, "   
lv_request_language_denied  TYPE SY, "   
lv_transport_key  TYPE TRKEY, "   
lv_suppress_language_dialog  TYPE TRKEY, "   SPACE
lv_request_language  TYPE T002-SPRAS, "   SPACE
lv_extend  TYPE C, "   
lv_object_enqueue_exit  TYPE TFDIR-FUNCNAME, "   SPACE
lv_object_dequeue_exit  TYPE TFDIR-FUNCNAME. "   SPACE

  CALL FUNCTION 'RS_TEXTLOG_MASTER_LANGUAGE'  "Standard dialog in case original language is different
    EXPORTING
         LANGUAGE_UPD_EXIT = lv_language_upd_exit
         MASTER_LANGUAGE = lv_master_language
         OPERATION = lv_operation
         TRANSPORT_KEY = lv_transport_key
         SUPPRESS_LANGUAGE_DIALOG = lv_suppress_language_dialog
         REQUEST_LANGUAGE = lv_request_language
         EXTEND = lv_extend
         OBJECT_ENQUEUE_EXIT = lv_object_enqueue_exit
         OBJECT_DEQUEUE_EXIT = lv_object_dequeue_exit
    IMPORTING
         NEW_MASTER_LANGUAGE = lv_new_master_language
         MODIFICATION_LANGUAGE = lv_modification_language
    EXCEPTIONS
        CANCELED = 1
        PERMISSION_FAILURE = 2
        REQUEST_LANGUAGE_DENIED = 3
. " RS_TEXTLOG_MASTER_LANGUAGE




ABAP code using 7.40 inline data declarations to call FM RS_TEXTLOG_MASTER_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 FUNCNAME FROM TFDIR INTO @DATA(ld_language_upd_exit).
DATA(ld_language_upd_exit) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_new_master_language).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_master_language).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_modification_language).
 
 
 
 
DATA(ld_suppress_language_dialog) = ' '.
 
"SELECT single SPRAS FROM T002 INTO @DATA(ld_request_language).
DATA(ld_request_language) = ' '.
 
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_object_enqueue_exit).
DATA(ld_object_enqueue_exit) = ' '.
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_object_dequeue_exit).
DATA(ld_object_dequeue_exit) = ' '.
 


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!