SAP CACS_COMPVERS_CTCOREX Function Module for NOTRANSL: Vergleiche die Versionen in Tabelle CACS_CTCOREX
CACS_COMPVERS_CTCOREX is a standard cacs compvers ctcorex 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: Vergleiche die Versionen in Tabelle CACS_CTCOREX 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 compvers ctcorex FM, simply by entering the name CACS_COMPVERS_CTCOREX into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_COMPVERSCTRT
Program Name: SAPLCACS_COMPVERSCTRT
Main Program: SAPLCACS_COMPVERSCTRT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CACS_COMPVERS_CTCOREX 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_COMPVERS_CTCOREX'"NOTRANSL: Vergleiche die Versionen in Tabelle CACS_CTCOREX.
EXPORTING
I_APPL = "Commission Application (ICM)
I_CTRTBU_ID = "Commission Contract Number
I_VERSIONA = "Version of Master Data or Customizing Object
I_VERSIONB = "Version of Master Data or Customizing Object
I_BUSI_A = "Effective from
I_BUSI_B = "Effective from
I_TECH_A = "Technically Valid From
I_TECH_B = "Technically Valid From
I_OBJECTVC = "Object to be Used for Version Comparison
TABLES
* T_RESULT = "Work Structure: Version Comparison
IMPORTING Parameters details for CACS_COMPVERS_CTCOREX
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_VERSIONA - Version of Master Data or Customizing Object
Data type: CACSVERSIONOptional: No
Call by Reference: No ( called with pass by value option)
I_VERSIONB - Version of Master Data or Customizing Object
Data type: CACSVERSIONOptional: No
Call by Reference: No ( called with pass by value option)
I_BUSI_A - Effective from
Data type: CACS_BUSITIME_BOptional: No
Call by Reference: No ( called with pass by value option)
I_BUSI_B - Effective from
Data type: CACS_BUSITIME_BOptional: No
Call by Reference: No ( called with pass by value option)
I_TECH_A - Technically Valid From
Data type: CACS_TECHTIME_BOptional: No
Call by Reference: No ( called with pass by value option)
I_TECH_B - Technically Valid From
Data type: CACS_TECHTIME_BOptional: No
Call by Reference: No ( called with pass by value option)
I_OBJECTVC - Object to be Used for Version Comparison
Data type: CACS_OBJ_VERSCOMPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CACS_COMPVERS_CTCOREX
T_RESULT - Work Structure: Version Comparison
Data type: CACS_S_VERSCOMPWAOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS_COMPVERS_CTCOREX 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_VERSCOMPWA, " | |||
lv_i_ctrtbu_id | TYPE CACS_CTRTBU_ID, " | |||
lv_i_versiona | TYPE CACSVERSION, " | |||
lv_i_versionb | TYPE CACSVERSION, " | |||
lv_i_busi_a | TYPE CACS_BUSITIME_B, " | |||
lv_i_busi_b | TYPE CACS_BUSITIME_B, " | |||
lv_i_tech_a | TYPE CACS_TECHTIME_B, " | |||
lv_i_tech_b | TYPE CACS_TECHTIME_B, " | |||
lv_i_objectvc | TYPE CACS_OBJ_VERSCOMP. " |
  CALL FUNCTION 'CACS_COMPVERS_CTCOREX' "NOTRANSL: Vergleiche die Versionen in Tabelle CACS_CTCOREX |
EXPORTING | ||
I_APPL | = lv_i_appl | |
I_CTRTBU_ID | = lv_i_ctrtbu_id | |
I_VERSIONA | = lv_i_versiona | |
I_VERSIONB | = lv_i_versionb | |
I_BUSI_A | = lv_i_busi_a | |
I_BUSI_B | = lv_i_busi_b | |
I_TECH_A | = lv_i_tech_a | |
I_TECH_B | = lv_i_tech_b | |
I_OBJECTVC | = lv_i_objectvc | |
TABLES | ||
T_RESULT | = lt_t_result | |
. " CACS_COMPVERS_CTCOREX |
ABAP code using 7.40 inline data declarations to call FM CACS_COMPVERS_CTCOREX
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