SAP CACS_GET_FIELDCHANGES Function Module for NOTRANSL: Feldänderungen von Feldern aus Tabellen mit Versionsinclude hole
CACS_GET_FIELDCHANGES is a standard cacs get fieldchanges 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: Feldänderungen von Feldern aus Tabellen mit Versionsinclude hole 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 get fieldchanges FM, simply by entering the name CACS_GET_FIELDCHANGES into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_FIELDCHANGES
Program Name: SAPLCACS_FIELDCHANGES
Main Program: SAPLCACS_FIELDCHANGES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_GET_FIELDCHANGES 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_GET_FIELDCHANGES'"NOTRANSL: Feldänderungen von Feldern aus Tabellen mit Versionsinclude hole.
EXPORTING
I_APPL = "Commission Application (ICM)
I_CTRTBU_ID = "Commission Contract Number
I_FIELDNAME_TAB = "Database Name for Commission Contract
I_FIELDNAME_FLD = "Database Field for Commssion Contract
* I_TECHTIME = "Time Stamp (YYYY.MM.DD hh:mm:ss)
TABLES
* T_RESULT = "Work Structure: Field Changes
EXCEPTIONS
NO_ACTIVE_VERS_FOUND = 1 FIELD_NOT_FOUND = 2
IMPORTING Parameters details for CACS_GET_FIELDCHANGES
I_APPL - Commission Application (ICM)
Data type: CACSAPPLOptional: No
Call by Reference: No ( called with pass by value option)
I_CTRTBU_ID - Commission Contract Number
Data type: CACS_CTRTBU_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELDNAME_TAB - Database Name for Commission Contract
Data type: CSC_DBTABOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELDNAME_FLD - Database Field for Commssion Contract
Data type: CSC_DBFLDOptional: No
Call by Reference: No ( called with pass by value option)
I_TECHTIME - Time Stamp (YYYY.MM.DD hh:mm:ss)
Data type: CACSTIMESTAMPOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CACS_GET_FIELDCHANGES
T_RESULT - Work Structure: Field Changes
Data type: CACS_S_FLDCHANGESWAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ACTIVE_VERS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
FIELD_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CACS_GET_FIELDCHANGES 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_i_appl | TYPE CACSAPPL, " | |||
| lt_t_result | TYPE STANDARD TABLE OF CACS_S_FLDCHANGESWA, " | |||
| lv_no_active_vers_found | TYPE CACS_S_FLDCHANGESWA, " | |||
| lv_i_ctrtbu_id | TYPE CACS_CTRTBU_ID, " | |||
| lv_field_not_found | TYPE CACS_CTRTBU_ID, " | |||
| lv_i_fieldname_tab | TYPE CSC_DBTAB, " | |||
| lv_i_fieldname_fld | TYPE CSC_DBFLD, " | |||
| lv_i_techtime | TYPE CACSTIMESTAMP. " |
|   CALL FUNCTION 'CACS_GET_FIELDCHANGES' "NOTRANSL: Feldänderungen von Feldern aus Tabellen mit Versionsinclude hole |
| EXPORTING | ||
| I_APPL | = lv_i_appl | |
| I_CTRTBU_ID | = lv_i_ctrtbu_id | |
| I_FIELDNAME_TAB | = lv_i_fieldname_tab | |
| I_FIELDNAME_FLD | = lv_i_fieldname_fld | |
| I_TECHTIME | = lv_i_techtime | |
| TABLES | ||
| T_RESULT | = lt_t_result | |
| EXCEPTIONS | ||
| NO_ACTIVE_VERS_FOUND = 1 | ||
| FIELD_NOT_FOUND = 2 | ||
| . " CACS_GET_FIELDCHANGES | ||
ABAP code using 7.40 inline data declarations to call FM CACS_GET_FIELDCHANGES
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.Search for further information about these or an SAP related objects