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

Function CACS_MAINTAIN_SETTINGS 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 'CACS_MAINTAIN_SETTINGS'"NOTRANSL: Customizing PFO.
EXPORTING
ID_OBJECT = "Maintenance Object
* IB_EXCLUDE_TERMINATE = ' ' "Do Not Offer 'Terminating'
* IB_TRANSPORT = ' ' "
* IB_TOGGLE_TITLE = ' ' "
* ID_CNTRL_CLASS = "Controller Class
ID_MODEL_CLASS = "
ID_TITLE = "Title
* IT_SUBSET = "Subset Rule
* IB_EXCLUDE_SAVE = ' ' "Do Not Offer 'Save'
* IB_EXCLUDE_NEW_OBJECT = ' ' "Do Not Offer 'New Object'
* IB_EXCLUDE_NEW_VERSION = ' ' "Do Not Offer 'New Version'
* IB_EXCLUDE_DELETE_OBJECT = ' ' "Do Not Offer 'Delete'
IMPORTING Parameters details for CACS_MAINTAIN_SETTINGS
ID_OBJECT - Maintenance Object
Data type: STRINGOptional: No
Call by Reference: Yes
IB_EXCLUDE_TERMINATE - Do Not Offer 'Terminating'
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_TRANSPORT -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_TOGGLE_TITLE -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
ID_CNTRL_CLASS - Controller Class
Data type: STRINGOptional: Yes
Call by Reference: Yes
ID_MODEL_CLASS -
Data type: STRINGOptional: No
Call by Reference: Yes
ID_TITLE - Title
Data type: STRINGOptional: No
Call by Reference: Yes
IT_SUBSET - Subset Rule
Data type: CL_CACS_MAINTAIN_TABLE_BASE=>MTY_T_SUBSETOptional: Yes
Call by Reference: Yes
IB_EXCLUDE_SAVE - Do Not Offer 'Save'
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_EXCLUDE_NEW_OBJECT - Do Not Offer 'New Object'
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_EXCLUDE_NEW_VERSION - Do Not Offer 'New Version'
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_EXCLUDE_DELETE_OBJECT - Do Not Offer 'Delete'
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CACS_MAINTAIN_SETTINGS 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_id_object | TYPE STRING, " | |||
| lv_ib_exclude_terminate | TYPE XFELD, " SPACE | |||
| lv_ib_transport | TYPE XFELD, " SPACE | |||
| lv_ib_toggle_title | TYPE XFELD, " SPACE | |||
| lv_id_cntrl_class | TYPE STRING, " | |||
| lv_id_model_class | TYPE STRING, " | |||
| lv_id_title | TYPE STRING, " | |||
| lv_it_subset | TYPE CL_CACS_MAINTAIN_TABLE_BASE=>MTY_T_SUBSET, " | |||
| lv_ib_exclude_save | TYPE XFELD, " SPACE | |||
| lv_ib_exclude_new_object | TYPE XFELD, " SPACE | |||
| lv_ib_exclude_new_version | TYPE XFELD, " SPACE | |||
| lv_ib_exclude_delete_object | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'CACS_MAINTAIN_SETTINGS' "NOTRANSL: Customizing PFO |
| EXPORTING | ||
| ID_OBJECT | = lv_id_object | |
| IB_EXCLUDE_TERMINATE | = lv_ib_exclude_terminate | |
| IB_TRANSPORT | = lv_ib_transport | |
| IB_TOGGLE_TITLE | = lv_ib_toggle_title | |
| ID_CNTRL_CLASS | = lv_id_cntrl_class | |
| ID_MODEL_CLASS | = lv_id_model_class | |
| ID_TITLE | = lv_id_title | |
| IT_SUBSET | = lv_it_subset | |
| IB_EXCLUDE_SAVE | = lv_ib_exclude_save | |
| IB_EXCLUDE_NEW_OBJECT | = lv_ib_exclude_new_object | |
| IB_EXCLUDE_NEW_VERSION | = lv_ib_exclude_new_version | |
| IB_EXCLUDE_DELETE_OBJECT | = lv_ib_exclude_delete_object | |
| . " CACS_MAINTAIN_SETTINGS | ||
ABAP code using 7.40 inline data declarations to call FM CACS_MAINTAIN_SETTINGS
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_ib_exclude_terminate) | = ' '. | |||
| DATA(ld_ib_transport) | = ' '. | |||
| DATA(ld_ib_toggle_title) | = ' '. | |||
| DATA(ld_ib_exclude_save) | = ' '. | |||
| DATA(ld_ib_exclude_new_object) | = ' '. | |||
| DATA(ld_ib_exclude_new_version) | = ' '. | |||
| DATA(ld_ib_exclude_delete_object) | = ' '. | |||
Search for further information about these or an SAP related objects