SAP CACS_VERS_CREATE Function Module for Creating an Object









CACS_VERS_CREATE is a standard cacs vers create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creating an Object 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 vers create FM, simply by entering the name CACS_VERS_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACS_VERS_INTERFACE
Program Name: SAPLCACS_VERS_INTERFACE
Main Program: SAPLCACS_VERS_INTERFACE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACS_VERS_CREATE 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_VERS_CREATE'"Creating an Object
EXPORTING
IV_TABNAME = "Table Name
IT_INPUT_DATA = "
* IT_DB_DATA = "
IV_DB_READ = "
* IV_TERM_DAT = "Key Date
* IV_NOW = "
* IV_PARKED = "Boolean Variable (X=True, -=False, Space=Unknown)

IMPORTING
ET_COMPLETE = "
ET_DELTA = "
ET_RETURN = "
.



IMPORTING Parameters details for CACS_VERS_CREATE

IV_TABNAME - Table Name

Data type: TABNAME
Optional: No
Call by Reference: Yes

IT_INPUT_DATA -

Data type: DATA
Optional: No
Call by Reference: Yes

IT_DB_DATA -

Data type: DATA
Optional: Yes
Call by Reference: Yes

IV_DB_READ -

Data type: C
Optional: No
Call by Reference: Yes

IV_TERM_DAT - Key Date

Data type: CACSTIMESTAMP
Optional: Yes
Call by Reference: Yes

IV_NOW -

Data type: CACSTIMESTAMP
Optional: Yes
Call by Reference: Yes

IV_PARKED - Boolean Variable (X=True, -=False, Space=Unknown)

Data type: XFLAG
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CACS_VERS_CREATE

ET_COMPLETE -

Data type: DATA
Optional: No
Call by Reference: Yes

ET_DELTA -

Data type: DATA
Optional: No
Call by Reference: Yes

ET_RETURN -

Data type: DATA
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CACS_VERS_CREATE 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_iv_tabname  TYPE TABNAME, "   
lv_et_complete  TYPE DATA, "   
lv_et_delta  TYPE DATA, "   
lv_it_input_data  TYPE DATA, "   
lv_et_return  TYPE DATA, "   
lv_it_db_data  TYPE DATA, "   
lv_iv_db_read  TYPE C, "   
lv_iv_term_dat  TYPE CACSTIMESTAMP, "   
lv_iv_now  TYPE CACSTIMESTAMP, "   
lv_iv_parked  TYPE XFLAG. "   

  CALL FUNCTION 'CACS_VERS_CREATE'  "Creating an Object
    EXPORTING
         IV_TABNAME = lv_iv_tabname
         IT_INPUT_DATA = lv_it_input_data
         IT_DB_DATA = lv_it_db_data
         IV_DB_READ = lv_iv_db_read
         IV_TERM_DAT = lv_iv_term_dat
         IV_NOW = lv_iv_now
         IV_PARKED = lv_iv_parked
    IMPORTING
         ET_COMPLETE = lv_et_complete
         ET_DELTA = lv_et_delta
         ET_RETURN = lv_et_return
. " CACS_VERS_CREATE




ABAP code using 7.40 inline data declarations to call FM CACS_VERS_CREATE

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!