SAP CO_MD_CREATE_COMPONENT Function Module for NOTRANSL: Anlegen Komponente über Detailbild
CO_MD_CREATE_COMPONENT is a standard co md create component 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: Anlegen Komponente über Detailbild 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 co md create component FM, simply by entering the name CO_MD_CREATE_COMPONENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: COMD
Program Name: SAPLCOMD
Main Program: SAPLCOMD
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_MD_CREATE_COMPONENT 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 'CO_MD_CREATE_COMPONENT'"NOTRANSL: Anlegen Komponente über Detailbild.
EXPORTING
* PROJN_IMP = "WBS Element
RC27I_IMP = "Task lists: Indexes referring to current rec'd in rec'd tabs
* CJDI_DISP_EXP = "PS Display and Selection List
* TCBP_IMP = "Gantt chart settings
* POSTP_IMP = "Item Category (Bill of Material)
EXCEPTIONS
EXIT_SET = 1
IMPORTING Parameters details for CO_MD_CREATE_COMPONENT
PROJN_IMP - WBS Element
Data type: RESBD-PSPELOptional: Yes
Call by Reference: No ( called with pass by value option)
RC27I_IMP - Task lists: Indexes referring to current rec'd in rec'd tabs
Data type: RC27IOptional: No
Call by Reference: No ( called with pass by value option)
CJDI_DISP_EXP - PS Display and Selection List
Data type: RCJ_MARKLOptional: Yes
Call by Reference: No ( called with pass by value option)
TCBP_IMP - Gantt chart settings
Data type: TCBPOptional: Yes
Call by Reference: No ( called with pass by value option)
POSTP_IMP - Item Category (Bill of Material)
Data type: RESBD-POSTPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EXIT_SET -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_MD_CREATE_COMPONENT 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_exit_set | TYPE STRING, " | |||
| lv_projn_imp | TYPE RESBD-PSPEL, " | |||
| lv_rc27i_imp | TYPE RC27I, " | |||
| lv_cjdi_disp_exp | TYPE RCJ_MARKL, " | |||
| lv_tcbp_imp | TYPE TCBP, " | |||
| lv_postp_imp | TYPE RESBD-POSTP. " |
|   CALL FUNCTION 'CO_MD_CREATE_COMPONENT' "NOTRANSL: Anlegen Komponente über Detailbild |
| EXPORTING | ||
| PROJN_IMP | = lv_projn_imp | |
| RC27I_IMP | = lv_rc27i_imp | |
| CJDI_DISP_EXP | = lv_cjdi_disp_exp | |
| TCBP_IMP | = lv_tcbp_imp | |
| POSTP_IMP | = lv_postp_imp | |
| EXCEPTIONS | ||
| EXIT_SET = 1 | ||
| . " CO_MD_CREATE_COMPONENT | ||
ABAP code using 7.40 inline data declarations to call FM CO_MD_CREATE_COMPONENT
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 PSPEL FROM RESBD INTO @DATA(ld_projn_imp). | ||||
| "SELECT single POSTP FROM RESBD INTO @DATA(ld_postp_imp). | ||||
Search for further information about these or an SAP related objects