SAP CLO0_DDB_VAL_COPY Function Module for
CLO0_DDB_VAL_COPY is a standard clo0 ddb val copy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 clo0 ddb val copy FM, simply by entering the name CLO0_DDB_VAL_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLO0
Program Name: SAPLCLO0
Main Program: SAPLCLO0
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLO0_DDB_VAL_COPY 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 'CLO0_DDB_VAL_COPY'".
EXPORTING
* CHANGE_NUMBER_IMP = "Change number for target object valuation
CLASSTYPE_IMP = "Class type of objects
CLASS_IMP = "Class of objects
* DATE_OF_CHANGE_IMP = "Change date for target object values
DST_OBJECT_IMP = "Target object
* MTART_IMP = "Material type
OBJ_STRUCTURE_IMP = "Database table of objects
SRC_OBJECT_IMP = "Source object
EXCEPTIONS
DST_CHANGE_NR_NOT_EXIST = 1 SRC_CLASS_NOT_FOUND = 10 SRC_CLASS_STATUS_NOT_VALID = 11 SRC_FOREIGN_LOCK = 12 SRC_INVALID_CLASSCAT = 13 SRC_SYSTEM_FAILURE = 14 VAL_READ_ERROR = 15 VAL_WRITE_ERROR = 16 DST_CLASS_NOT_FOUND = 2 DST_CLASS_STATUS_NOT_VALID = 3 DST_FOREIGN_LOCK = 4 DST_INVALID_CLASSCAT = 5 DST_SYSTEM_FAILURE = 6 OTHERS = 7 POSIT_LAST_OBJECT_FAILED = 8 SRC_CHANGE_NR_NOT_EXIST = 9
IMPORTING Parameters details for CLO0_DDB_VAL_COPY
CHANGE_NUMBER_IMP - Change number for target object valuation
Data type: RMCLF-AENNR1Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASSTYPE_IMP - Class type of objects
Data type: KSSK-KLARTOptional: No
Call by Reference: No ( called with pass by value option)
CLASS_IMP - Class of objects
Data type: KLAH-CLASSOptional: No
Call by Reference: No ( called with pass by value option)
DATE_OF_CHANGE_IMP - Change date for target object values
Data type: RMCLF-DATUV1Optional: Yes
Call by Reference: No ( called with pass by value option)
DST_OBJECT_IMP - Target object
Data type: KSSK-OBJEKOptional: No
Call by Reference: No ( called with pass by value option)
MTART_IMP - Material type
Data type: MTARTOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJ_STRUCTURE_IMP - Database table of objects
Data type: TCLA-OBTABOptional: No
Call by Reference: No ( called with pass by value option)
SRC_OBJECT_IMP - Source object
Data type: KSSK-OBJEKOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DST_CHANGE_NR_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_CLASS_NOT_FOUND - Object locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_CLASS_STATUS_NOT_VALID - Class not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_FOREIGN_LOCK - System error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_INVALID_CLASSCAT - Class status not OK
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_SYSTEM_FAILURE - Change number does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VAL_READ_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VAL_WRITE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DST_CLASS_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DST_CLASS_STATUS_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DST_FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DST_INVALID_CLASSCAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DST_SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
POSIT_LAST_OBJECT_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRC_CHANGE_NR_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLO0_DDB_VAL_COPY 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_change_number_imp | TYPE RMCLF-AENNR1, " | |||
| lv_dst_change_nr_not_exist | TYPE RMCLF, " | |||
| lv_src_class_not_found | TYPE RMCLF, " | |||
| lv_src_class_status_not_valid | TYPE RMCLF, " | |||
| lv_src_foreign_lock | TYPE RMCLF, " | |||
| lv_src_invalid_classcat | TYPE RMCLF, " | |||
| lv_src_system_failure | TYPE RMCLF, " | |||
| lv_val_read_error | TYPE RMCLF, " | |||
| lv_val_write_error | TYPE RMCLF, " | |||
| lv_classtype_imp | TYPE KSSK-KLART, " | |||
| lv_dst_class_not_found | TYPE KSSK, " | |||
| lv_class_imp | TYPE KLAH-CLASS, " | |||
| lv_dst_class_status_not_valid | TYPE KLAH, " | |||
| lv_dst_foreign_lock | TYPE KLAH, " | |||
| lv_date_of_change_imp | TYPE RMCLF-DATUV1, " | |||
| lv_dst_object_imp | TYPE KSSK-OBJEK, " | |||
| lv_dst_invalid_classcat | TYPE KSSK, " | |||
| lv_mtart_imp | TYPE MTART, " | |||
| lv_dst_system_failure | TYPE MTART, " | |||
| lv_others | TYPE MTART, " | |||
| lv_obj_structure_imp | TYPE TCLA-OBTAB, " | |||
| lv_src_object_imp | TYPE KSSK-OBJEK, " | |||
| lv_posit_last_object_failed | TYPE KSSK, " | |||
| lv_src_change_nr_not_exist | TYPE KSSK. " |
|   CALL FUNCTION 'CLO0_DDB_VAL_COPY' " |
| EXPORTING | ||
| CHANGE_NUMBER_IMP | = lv_change_number_imp | |
| CLASSTYPE_IMP | = lv_classtype_imp | |
| CLASS_IMP | = lv_class_imp | |
| DATE_OF_CHANGE_IMP | = lv_date_of_change_imp | |
| DST_OBJECT_IMP | = lv_dst_object_imp | |
| MTART_IMP | = lv_mtart_imp | |
| OBJ_STRUCTURE_IMP | = lv_obj_structure_imp | |
| SRC_OBJECT_IMP | = lv_src_object_imp | |
| EXCEPTIONS | ||
| DST_CHANGE_NR_NOT_EXIST = 1 | ||
| SRC_CLASS_NOT_FOUND = 10 | ||
| SRC_CLASS_STATUS_NOT_VALID = 11 | ||
| SRC_FOREIGN_LOCK = 12 | ||
| SRC_INVALID_CLASSCAT = 13 | ||
| SRC_SYSTEM_FAILURE = 14 | ||
| VAL_READ_ERROR = 15 | ||
| VAL_WRITE_ERROR = 16 | ||
| DST_CLASS_NOT_FOUND = 2 | ||
| DST_CLASS_STATUS_NOT_VALID = 3 | ||
| DST_FOREIGN_LOCK = 4 | ||
| DST_INVALID_CLASSCAT = 5 | ||
| DST_SYSTEM_FAILURE = 6 | ||
| OTHERS = 7 | ||
| POSIT_LAST_OBJECT_FAILED = 8 | ||
| SRC_CHANGE_NR_NOT_EXIST = 9 | ||
| . " CLO0_DDB_VAL_COPY | ||
ABAP code using 7.40 inline data declarations to call FM CLO0_DDB_VAL_COPY
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.| "SELECT single AENNR1 FROM RMCLF INTO @DATA(ld_change_number_imp). | ||||
| "SELECT single KLART FROM KSSK INTO @DATA(ld_classtype_imp). | ||||
| "SELECT single CLASS FROM KLAH INTO @DATA(ld_class_imp). | ||||
| "SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_date_of_change_imp). | ||||
| "SELECT single OBJEK FROM KSSK INTO @DATA(ld_dst_object_imp). | ||||
| "SELECT single OBTAB FROM TCLA INTO @DATA(ld_obj_structure_imp). | ||||
| "SELECT single OBJEK FROM KSSK INTO @DATA(ld_src_object_imp). | ||||
Search for further information about these or an SAP related objects