Fonction SAP CACS_VERSION_HANDLING - FM for Automatic Versioning

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ACTIVE CACS_FLAG_ACTIV C 1 1 X Flag: active or inactive? (See long text)
I_BEGIN CACSTIMESTAMP N 14 X Effective start
I_CONT C C 0 ' ' X Flag: Should effective end date be used? (See long text)
I_END CACSTIMESTAMP N 14 X Effective end (see long text)
I_MEMORY I I 4 0 X Processing in internal table (transfer to CACS_TABLE_BODY)
I_SELECTION CACS_VERHAND_METH N 2 Executed operation
I_STRUCTURE 0 X Key for record to be processed without version
I_TABNAM TABNAM C 30 Table name of the table for which version is to be created
I_VIEWNAM TABNAM C 30 X View Name for CUSTOMIZING
I_WHEN CACSTIMESTAMP N 14 X Technical Time-Spot

Paramètre Reférence Type Long. Description
E_DEACTIVATE I I 4 Invalid version (double click)
E_OBJ_BEGIN CACSTIMESTAMP N 14 Object start date when i_selection = 6
E_OBJ_END CACSTIMESTAMP N 14 Object end date when i_selection = 6

Paramètre Reférence Long. Facultatif Description
CACS_BACK 0 Results of version handling (without internal memory)
CACS_ERG 0 X Internal Use Only
CACS_OPTION 0 X Table with values for insert or update
CACS_TABLE_BODY 0 X Results of version creation (with internal memory)

Exception Description
ASSIGN_ERROR An ASSIGN didn't work
BEGIN_DATE_MISSED The effective start date must be specified
BEGIN_L_END The start date was after the end date
END_DATE_MISSED You must specify effective end date
END_S_BEGIN End date is before start date
INVALID_INPUTDATA Input data contain entries with TR_FLAG = 'X'
NO_ACT_VERSION No active version exists for transferred partial key
NO_ACT_VERSION_TO_THIS_TIME No version found for transferred technical time-spot
OBJ_ALREADY_EXIST Object to be created already exists
STRUC_NOT_READ Error while reading transferred structure


You can use this function module to execute all of the operationsconnected with period management.
The operation to be executed is defined by parameter i_selection.
No database operations are executed - the results are simply transferredby the TABLE parameter.
Versions that have not been parked are sorted according to the followingrules (version numbers 1 to n):
Ascending according to tech_begin, if tech_begins are same
Ascending according to busi_begin
The following operations are available (see parameter i_selection):

--> Create an object
--> Finish an object
--> Change an object
--> Determine the current version at an effective and technical doubletime-spot
--> Determine the object begin and end at the current technicaltime-spot
--> Delete an object as part of period management
--> Retroactive changes
--> Determine a version template for contract maintenance

Description
This import parameter indicates the effective start date.
This is required in particular when creating, changing, or deleting anobject in ICM period management.

Description
This parameter must always be entered. It specifies the table name ofthe table that is to be processed.

Description
The technical date is crucial for some operations (for example,determining a valid version) and it can be entered here.