SAP CACS_TGT_VALUES_MAINTAIN_CPLX Function Module for NOTRANSL: Zielvbg: Zielwerte bearbeiten für komplexe Zielart
CACS_TGT_VALUES_MAINTAIN_CPLX is a standard cacs tgt values maintain cplx 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: Zielvbg: Zielwerte bearbeiten für komplexe Zielart 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 tgt values maintain cplx FM, simply by entering the name CACS_TGT_VALUES_MAINTAIN_CPLX into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_TGT_VALUE_MAINTAIN
Program Name: SAPLCACS_TGT_VALUE_MAINTAIN
Main Program: SAPLCACS_TGT_VALUE_MAINTAIN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_TGT_VALUES_MAINTAIN_CPLX 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_TGT_VALUES_MAINTAIN_CPLX'"NOTRANSL: Zielvbg: Zielwerte bearbeiten für komplexe Zielart.
EXPORTING
IV_APPL = "Commission Application
* IV_ALLOW_CORRECTION = 'D' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IV_SAVE = ABAP_TRUE "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IV_TITLE = "Contents of Title Line
* IV_DISPLAY = ABAP_FALSE "Boolean Variable (X=True, -=False, Space=Unknown)
IV_CTGTTYPE = "Complex Target Type
* IV_CTRTBU_ID = "Commission Contract Number
* IV_RULEID = "Period Rule
* IV_PERIODNO = "Period No.
* IV_PROPOSE_TARGETS = ABAP_TRUE "Propose Missing Elementary Target Types
* IV_MODE = 'D' "Processing Mode
* IV_ALLOW_ACTUAL = 'D' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IV_ALLOW_TARGET = 'D' "Permitted Target Values
TABLES
* IT_VAL = "Tgt Agrmts: Structure for Maintenance of Target Values
IMPORTING Parameters details for CACS_TGT_VALUES_MAINTAIN_CPLX
IV_APPL - Commission Application
Data type: CACSAPPLOptional: No
Call by Reference: Yes
IV_ALLOW_CORRECTION - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: 'D'
Optional: Yes
Call by Reference: Yes
IV_SAVE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes
IV_TITLE - Contents of Title Line
Data type: SYTITLEOptional: Yes
Call by Reference: Yes
IV_DISPLAY - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANDefault: ABAP_FALSE
Optional: Yes
Call by Reference: Yes
IV_CTGTTYPE - Complex Target Type
Data type: CACS_TGTTYPEOptional: No
Call by Reference: Yes
IV_CTRTBU_ID - Commission Contract Number
Data type: CACS_CTRTBU_IDOptional: Yes
Call by Reference: Yes
IV_RULEID - Period Rule
Data type: CACSPRDRULEOptional: Yes
Call by Reference: Yes
IV_PERIODNO - Period No.
Data type: CACSPERIODOptional: Yes
Call by Reference: Yes
IV_PROPOSE_TARGETS - Propose Missing Elementary Target Types
Data type:Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes
IV_MODE - Processing Mode
Data type:Default: 'D'
Optional: Yes
Call by Reference: Yes
IV_ALLOW_ACTUAL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: 'D'
Optional: Yes
Call by Reference: Yes
IV_ALLOW_TARGET - Permitted Target Values
Data type:Default: 'D'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for CACS_TGT_VALUES_MAINTAIN_CPLX
IT_VAL - Tgt Agrmts: Structure for Maintenance of Target Values
Data type: CACS_TGT_S_STGT_VALUE_MAINTAINOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CACS_TGT_VALUES_MAINTAIN_CPLX 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: | ||||
| lt_it_val | TYPE STANDARD TABLE OF CACS_TGT_S_STGT_VALUE_MAINTAIN, " | |||
| lv_iv_appl | TYPE CACSAPPL, " | |||
| lv_iv_allow_correction | TYPE CACSAPPL, " 'D' | |||
| lv_iv_save | TYPE CACSAPPL, " ABAP_TRUE | |||
| lv_iv_title | TYPE SYTITLE, " | |||
| lv_iv_display | TYPE BOOLEAN, " ABAP_FALSE | |||
| lv_iv_ctgttype | TYPE CACS_TGTTYPE, " | |||
| lv_iv_ctrtbu_id | TYPE CACS_CTRTBU_ID, " | |||
| lv_iv_ruleid | TYPE CACSPRDRULE, " | |||
| lv_iv_periodno | TYPE CACSPERIOD, " | |||
| lv_iv_propose_targets | TYPE CACSPERIOD, " ABAP_TRUE | |||
| lv_iv_mode | TYPE CACSPERIOD, " 'D' | |||
| lv_iv_allow_actual | TYPE CACSPERIOD, " 'D' | |||
| lv_iv_allow_target | TYPE CACSPERIOD. " 'D' |
|   CALL FUNCTION 'CACS_TGT_VALUES_MAINTAIN_CPLX' "NOTRANSL: Zielvbg: Zielwerte bearbeiten für komplexe Zielart |
| EXPORTING | ||
| IV_APPL | = lv_iv_appl | |
| IV_ALLOW_CORRECTION | = lv_iv_allow_correction | |
| IV_SAVE | = lv_iv_save | |
| IV_TITLE | = lv_iv_title | |
| IV_DISPLAY | = lv_iv_display | |
| IV_CTGTTYPE | = lv_iv_ctgttype | |
| IV_CTRTBU_ID | = lv_iv_ctrtbu_id | |
| IV_RULEID | = lv_iv_ruleid | |
| IV_PERIODNO | = lv_iv_periodno | |
| IV_PROPOSE_TARGETS | = lv_iv_propose_targets | |
| IV_MODE | = lv_iv_mode | |
| IV_ALLOW_ACTUAL | = lv_iv_allow_actual | |
| IV_ALLOW_TARGET | = lv_iv_allow_target | |
| TABLES | ||
| IT_VAL | = lt_it_val | |
| . " CACS_TGT_VALUES_MAINTAIN_CPLX | ||
ABAP code using 7.40 inline data declarations to call FM CACS_TGT_VALUES_MAINTAIN_CPLX
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_allow_correction) | = 'D'. | |||
| DATA(ld_iv_save) | = ABAP_TRUE. | |||
| DATA(ld_iv_display) | = ABAP_FALSE. | |||
| DATA(ld_iv_propose_targets) | = ABAP_TRUE. | |||
| DATA(ld_iv_mode) | = 'D'. | |||
| DATA(ld_iv_allow_actual) | = 'D'. | |||
| DATA(ld_iv_allow_target) | = 'D'. | |||
Search for further information about these or an SAP related objects