SAP CUTC_SET_MSGX_TXT Function Module for
CUTC_SET_MSGX_TXT is a standard cutc set msgx txt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 cutc set msgx txt FM, simply by entering the name CUTC_SET_MSGX_TXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CUTC
Program Name: SAPLCUTC
Main Program: SAPLCUTC
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CUTC_SET_MSGX_TXT 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 'CUTC_SET_MSGX_TXT'".
EXPORTING
LANGU = "Message language
AREA = "
MSGNR = "Message number
MODULE = "Scope of trace
OBJECT = "Individual trace objects
LEVEL = "Trace level
IMPORTING
HANDLE = "Int. number of trace message
TABLES
MSG_BLOCK = "
EXCEPTIONS
INTERNAL_ERROR = 1 MSG_NOT_FOUND = 2
IMPORTING Parameters details for CUTC_SET_MSGX_TXT
LANGU - Message language
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
AREA -
Data type: T100-ARBGBOptional: No
Call by Reference: No ( called with pass by value option)
MSGNR - Message number
Data type: T100-MSGNROptional: No
Call by Reference: No ( called with pass by value option)
MODULE - Scope of trace
Data type: RCUTC-MODULEOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT - Individual trace objects
Data type: PMST_KEYOptional: No
Call by Reference: No ( called with pass by value option)
LEVEL - Trace level
Data type: RCUTC-LEVELOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CUTC_SET_MSGX_TXT
HANDLE - Int. number of trace message
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CUTC_SET_MSGX_TXT
MSG_BLOCK -
Data type: RCUTCMSGBLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MSG_NOT_FOUND - Message not in T100
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CUTC_SET_MSGX_TXT 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_langu | TYPE SY-LANGU, " | |||
| lv_handle | TYPE SY-TABIX, " | |||
| lt_msg_block | TYPE STANDARD TABLE OF RCUTCMSGBL, " | |||
| lv_internal_error | TYPE RCUTCMSGBL, " | |||
| lv_area | TYPE T100-ARBGB, " | |||
| lv_msg_not_found | TYPE T100, " | |||
| lv_msgnr | TYPE T100-MSGNR, " | |||
| lv_module | TYPE RCUTC-MODULE, " | |||
| lv_object | TYPE PMST_KEY, " | |||
| lv_level | TYPE RCUTC-LEVEL. " |
|   CALL FUNCTION 'CUTC_SET_MSGX_TXT' " |
| EXPORTING | ||
| LANGU | = lv_langu | |
| AREA | = lv_area | |
| MSGNR | = lv_msgnr | |
| MODULE | = lv_module | |
| OBJECT | = lv_object | |
| LEVEL | = lv_level | |
| IMPORTING | ||
| HANDLE | = lv_handle | |
| TABLES | ||
| MSG_BLOCK | = lt_msg_block | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| MSG_NOT_FOUND = 2 | ||
| . " CUTC_SET_MSGX_TXT | ||
ABAP code using 7.40 inline data declarations to call FM CUTC_SET_MSGX_TXT
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 LANGU FROM SY INTO @DATA(ld_langu). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_handle). | ||||
| "SELECT single ARBGB FROM T100 INTO @DATA(ld_area). | ||||
| "SELECT single MSGNR FROM T100 INTO @DATA(ld_msgnr). | ||||
| "SELECT single MODULE FROM RCUTC INTO @DATA(ld_module). | ||||
| "SELECT single LEVEL FROM RCUTC INTO @DATA(ld_level). | ||||
Search for further information about these or an SAP related objects