SAP CACS_SET_GET_DOM_APPL Function Module for NOTRANSL: Angabe von Applikationsdomäne und Applikation
CACS_SET_GET_DOM_APPL is a standard cacs set get dom appl 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: Angabe von Applikationsdomäne und Applikation 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 set get dom appl FM, simply by entering the name CACS_SET_GET_DOM_APPL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_APPLNEW
Program Name: SAPLCACS_APPLNEW
Main Program: SAPLCACS_APPLNEW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_SET_GET_DOM_APPL 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_SET_GET_DOM_APPL'"NOTRANSL: Angabe von Applikationsdomäne und Applikation.
EXPORTING
* IV_DOM = "
* IT_DOMAINS = "
* IV_APPL = "Application in Incentive and Sales Force Management
* IV_DOM_CHANGE = 'X' "
* IV_ADMIN = "
* IV_USE_POPUP = "
* IV_LIST_EXPANSIBLE = "
* IV_ALLOWED_LANGUAGE = SY-LANGU "Language Key of Current Text Environment
* IV_ALLOWED_MANDANT = SY-MANDT "Client ID of Current User
* IV_ALLOWED_SYSTEM = SY-SYSID "Name of the SAP System
IMPORTING
EV_DOM = "Application Domain (Functional Focus of Application)
EV_APPL = "Application in Incentive and Sales Force Management
ET_ALL_APPLDOMAIN_APPLS = "
EV_EXPAND_APPL_SELECTED = "
EV_ONLY_ONE = "
EXCEPTIONS
NO_DOMAIN_CHOOSEN = 1 NO_APPLICATION_CHOOSEN = 2 NO_ENTRY_FOUND = 3
IMPORTING Parameters details for CACS_SET_GET_DOM_APPL
IV_DOM -
Data type: CACSAPPLDOMAINOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_DOMAINS -
Data type: CACS_TT_APPLDOMAINOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_APPL - Application in Incentive and Sales Force Management
Data type: CACSAPPLOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DOM_CHANGE -
Data type: BOOLEAN_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_ADMIN -
Data type: BOOLEAN_FLGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_USE_POPUP -
Data type: BOOLEAN_FLGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LIST_EXPANSIBLE -
Data type: BOOLEAN_FLGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ALLOWED_LANGUAGE - Language Key of Current Text Environment
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_ALLOWED_MANDANT - Client ID of Current User
Data type: SYMANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_ALLOWED_SYSTEM - Name of the SAP System
Data type: SYSYSIDDefault: SY-SYSID
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CACS_SET_GET_DOM_APPL
EV_DOM - Application Domain (Functional Focus of Application)
Data type: CACSAPPLDOMAINOptional: No
Call by Reference: No ( called with pass by value option)
EV_APPL - Application in Incentive and Sales Force Management
Data type: CACSAPPLOptional: No
Call by Reference: No ( called with pass by value option)
ET_ALL_APPLDOMAIN_APPLS -
Data type: CACS_TT_ALL_APPLDOMAIN_APPLSOptional: No
Call by Reference: No ( called with pass by value option)
EV_EXPAND_APPL_SELECTED -
Data type: BOOLEAN_FLGOptional: No
Call by Reference: No ( called with pass by value option)
EV_ONLY_ONE -
Data type: BOOLEAN_FLGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DOMAIN_CHOOSEN -
Data type:Optional: No
Call by Reference: Yes
NO_APPLICATION_CHOOSEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS_SET_GET_DOM_APPL 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_ev_dom | TYPE CACSAPPLDOMAIN, " | |||
| lv_iv_dom | TYPE CACSAPPLDOMAIN, " | |||
| lv_no_domain_choosen | TYPE CACSAPPLDOMAIN, " | |||
| lv_it_domains | TYPE CACS_TT_APPLDOMAIN, " | |||
| lv_ev_appl | TYPE CACSAPPL, " | |||
| lv_iv_appl | TYPE CACSAPPL, " | |||
| lv_no_application_choosen | TYPE CACSAPPL, " | |||
| lv_iv_dom_change | TYPE BOOLEAN_FLG, " 'X' | |||
| lv_no_entry_found | TYPE BOOLEAN_FLG, " | |||
| lv_et_all_appldomain_appls | TYPE CACS_TT_ALL_APPLDOMAIN_APPLS, " | |||
| lv_iv_admin | TYPE BOOLEAN_FLG, " | |||
| lv_ev_expand_appl_selected | TYPE BOOLEAN_FLG, " | |||
| lv_ev_only_one | TYPE BOOLEAN_FLG, " | |||
| lv_iv_use_popup | TYPE BOOLEAN_FLG, " | |||
| lv_iv_list_expansible | TYPE BOOLEAN_FLG, " | |||
| lv_iv_allowed_language | TYPE SYLANGU, " SY-LANGU | |||
| lv_iv_allowed_mandant | TYPE SYMANDT, " SY-MANDT | |||
| lv_iv_allowed_system | TYPE SYSYSID. " SY-SYSID |
|   CALL FUNCTION 'CACS_SET_GET_DOM_APPL' "NOTRANSL: Angabe von Applikationsdomäne und Applikation |
| EXPORTING | ||
| IV_DOM | = lv_iv_dom | |
| IT_DOMAINS | = lv_it_domains | |
| IV_APPL | = lv_iv_appl | |
| IV_DOM_CHANGE | = lv_iv_dom_change | |
| IV_ADMIN | = lv_iv_admin | |
| IV_USE_POPUP | = lv_iv_use_popup | |
| IV_LIST_EXPANSIBLE | = lv_iv_list_expansible | |
| IV_ALLOWED_LANGUAGE | = lv_iv_allowed_language | |
| IV_ALLOWED_MANDANT | = lv_iv_allowed_mandant | |
| IV_ALLOWED_SYSTEM | = lv_iv_allowed_system | |
| IMPORTING | ||
| EV_DOM | = lv_ev_dom | |
| EV_APPL | = lv_ev_appl | |
| ET_ALL_APPLDOMAIN_APPLS | = lv_et_all_appldomain_appls | |
| EV_EXPAND_APPL_SELECTED | = lv_ev_expand_appl_selected | |
| EV_ONLY_ONE | = lv_ev_only_one | |
| EXCEPTIONS | ||
| NO_DOMAIN_CHOOSEN = 1 | ||
| NO_APPLICATION_CHOOSEN = 2 | ||
| NO_ENTRY_FOUND = 3 | ||
| . " CACS_SET_GET_DOM_APPL | ||
ABAP code using 7.40 inline data declarations to call FM CACS_SET_GET_DOM_APPL
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_iv_dom_change) | = 'X'. | |||
| DATA(ld_iv_allowed_language) | = SY-LANGU. | |||
| DATA(ld_iv_allowed_mandant) | = SY-MANDT. | |||
| DATA(ld_iv_allowed_system) | = SY-SYSID. | |||
Search for further information about these or an SAP related objects