SAP CMSC_ACG_EVENT_DTITL Function Module for Event DTITL: Set the title of the screen to the transaction text
CMSC_ACG_EVENT_DTITL is a standard cmsc acg event dtitl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Event DTITL: Set the title of the screen to the transaction text 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 cmsc acg event dtitl FM, simply by entering the name CMSC_ACG_EVENT_DTITL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMS_UI_ACG_BDT_CL
Program Name: SAPLCMS_UI_ACG_BDT_CL
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CMSC_ACG_EVENT_DTITL 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 'CMSC_ACG_EVENT_DTITL'"Event DTITL: Set the title of the screen to the transaction text.
IMPORTING
E_XTOTAL = "Single-character flag
E_XCHANGED = "Single-character flag
CHANGING
* C_TITLE_TOTAL = "Text of title line
* C_TITLE_OBJAP = "Screen title (object-dependent section)
* C_TITLE_ACTVT = "Screen title: Activity-dependent part
* C_TITLE_SCREEN = "Screen title (screen-dependent section)
EXPORTING Parameters details for CMSC_ACG_EVENT_DTITL
E_XTOTAL - Single-character flag
Data type: BUS000FLDS-CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
E_XCHANGED - Single-character flag
Data type: BUS000FLDS-CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CMSC_ACG_EVENT_DTITL
C_TITLE_TOTAL - Text of title line
Data type: RSEU1-TIT_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
C_TITLE_OBJAP - Screen title (object-dependent section)
Data type: TBZ1T-OTITLOptional: Yes
Call by Reference: No ( called with pass by value option)
C_TITLE_ACTVT - Screen title: Activity-dependent part
Data type: BUS000FLDS-ACTIVITOptional: Yes
Call by Reference: No ( called with pass by value option)
C_TITLE_SCREEN - Screen title (screen-dependent section)
Data type: TBZ3B-DTITLOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CMSC_ACG_EVENT_DTITL 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_e_xtotal | TYPE BUS000FLDS-CHAR1, " | |||
| lv_c_title_total | TYPE RSEU1-TIT_TEXT, " | |||
| lv_e_xchanged | TYPE BUS000FLDS-CHAR1, " | |||
| lv_c_title_objap | TYPE TBZ1T-OTITL, " | |||
| lv_c_title_actvt | TYPE BUS000FLDS-ACTIVIT, " | |||
| lv_c_title_screen | TYPE TBZ3B-DTITL. " |
|   CALL FUNCTION 'CMSC_ACG_EVENT_DTITL' "Event DTITL: Set the title of the screen to the transaction text |
| IMPORTING | ||
| E_XTOTAL | = lv_e_xtotal | |
| E_XCHANGED | = lv_e_xchanged | |
| CHANGING | ||
| C_TITLE_TOTAL | = lv_c_title_total | |
| C_TITLE_OBJAP | = lv_c_title_objap | |
| C_TITLE_ACTVT | = lv_c_title_actvt | |
| C_TITLE_SCREEN | = lv_c_title_screen | |
| . " CMSC_ACG_EVENT_DTITL | ||
ABAP code using 7.40 inline data declarations to call FM CMSC_ACG_EVENT_DTITL
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 CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_xtotal). | ||||
| "SELECT single TIT_TEXT FROM RSEU1 INTO @DATA(ld_c_title_total). | ||||
| "SELECT single CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_xchanged). | ||||
| "SELECT single OTITL FROM TBZ1T INTO @DATA(ld_c_title_objap). | ||||
| "SELECT single ACTIVIT FROM BUS000FLDS INTO @DATA(ld_c_title_actvt). | ||||
| "SELECT single DTITL FROM TBZ3B INTO @DATA(ld_c_title_screen). | ||||
Search for further information about these or an SAP related objects