SAP CNV_00001_CTRLOBJ_FILL_COMMON Function Module for Fill common data in control object structure
CNV_00001_CTRLOBJ_FILL_COMMON is a standard cnv 00001 ctrlobj fill common SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fill common data in control object structure 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 cnv 00001 ctrlobj fill common FM, simply by entering the name CNV_00001_CTRLOBJ_FILL_COMMON into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_00001_UTIL
Program Name: SAPLCNV_00001_UTIL
Main Program: SAPLCNV_00001_UTIL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNV_00001_CTRLOBJ_FILL_COMMON 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 'CNV_00001_CTRLOBJ_FILL_COMMON'"Fill common data in control object structure.
EXPORTING
* CREATED = "Creator of control data
* AUTO_FOR_CHANGED = ' ' "Automatically fill modification data
* CRDATE = "Creation date
* CRTIME = "Creation time
* CRUSER = "Creating user
* CHANGED = "Modifier of control data
* CHDATE = "Change date
* CHTIME = "Change time
* CHUSER = "Change user
* AUTO_FOR_CREATED = ' ' "Automatically fill creation data
CHANGING
STRUCT = "Structure to fill
EXCEPTIONS
WRONG_STRUCTURE = 1
IMPORTING Parameters details for CNV_00001_CTRLOBJ_FILL_COMMON
CREATED - Creator of control data
Data type: CNV_00001_CTRL_DATA_CREATOROptional: Yes
Call by Reference: No ( called with pass by value option)
AUTO_FOR_CHANGED - Automatically fill modification data
Data type: AS4FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CRDATE - Creation date
Data type: CNV_00001_CREATE_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
CRTIME - Creation time
Data type: CNV_00001_CREATE_TIMEOptional: Yes
Call by Reference: No ( called with pass by value option)
CRUSER - Creating user
Data type: CNV_00001_CREATE_USEROptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGED - Modifier of control data
Data type: CNV_00001_CTRL_DATA_MODIFIEROptional: Yes
Call by Reference: No ( called with pass by value option)
CHDATE - Change date
Data type: CNV_00001_CHANGE_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
CHTIME - Change time
Data type: CNV_00001_CHANGE_TIMEOptional: Yes
Call by Reference: No ( called with pass by value option)
CHUSER - Change user
Data type: CNV_00001_CHANGE_USEROptional: Yes
Call by Reference: No ( called with pass by value option)
AUTO_FOR_CREATED - Automatically fill creation data
Data type: AS4FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CNV_00001_CTRLOBJ_FILL_COMMON
STRUCT - Structure to fill
Data type: ANYOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_STRUCTURE - Structure hasn't got the requested fields
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CNV_00001_CTRLOBJ_FILL_COMMON 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_struct | TYPE ANY, " | |||
| lv_created | TYPE CNV_00001_CTRL_DATA_CREATOR, " | |||
| lv_wrong_structure | TYPE CNV_00001_CTRL_DATA_CREATOR, " | |||
| lv_auto_for_changed | TYPE AS4FLAG, " SPACE | |||
| lv_crdate | TYPE CNV_00001_CREATE_DATE, " | |||
| lv_crtime | TYPE CNV_00001_CREATE_TIME, " | |||
| lv_cruser | TYPE CNV_00001_CREATE_USER, " | |||
| lv_changed | TYPE CNV_00001_CTRL_DATA_MODIFIER, " | |||
| lv_chdate | TYPE CNV_00001_CHANGE_DATE, " | |||
| lv_chtime | TYPE CNV_00001_CHANGE_TIME, " | |||
| lv_chuser | TYPE CNV_00001_CHANGE_USER, " | |||
| lv_auto_for_created | TYPE AS4FLAG. " SPACE |
|   CALL FUNCTION 'CNV_00001_CTRLOBJ_FILL_COMMON' "Fill common data in control object structure |
| EXPORTING | ||
| CREATED | = lv_created | |
| AUTO_FOR_CHANGED | = lv_auto_for_changed | |
| CRDATE | = lv_crdate | |
| CRTIME | = lv_crtime | |
| CRUSER | = lv_cruser | |
| CHANGED | = lv_changed | |
| CHDATE | = lv_chdate | |
| CHTIME | = lv_chtime | |
| CHUSER | = lv_chuser | |
| AUTO_FOR_CREATED | = lv_auto_for_created | |
| CHANGING | ||
| STRUCT | = lv_struct | |
| EXCEPTIONS | ||
| WRONG_STRUCTURE = 1 | ||
| . " CNV_00001_CTRLOBJ_FILL_COMMON | ||
ABAP code using 7.40 inline data declarations to call FM CNV_00001_CTRLOBJ_FILL_COMMON
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.| DATA(ld_auto_for_changed) | = ' '. | |||
| DATA(ld_auto_for_created) | = ' '. | |||
Search for further information about these or an SAP related objects