SAP CO_ML_WIP_DOC_CREATE Function Module for









CO_ML_WIP_DOC_CREATE is a standard co ml wip doc create 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 co ml wip doc create FM, simply by entering the name CO_ML_WIP_DOC_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_ML_WIP_DOC_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 'CO_ML_WIP_DOC_CREATE'"
EXPORTING
ID_OBJECT = "
ID_COAREA = "
ID_PLANT = "
ID_PROCESS = "
ID_PERIOD = "
ID_YEAR = "
* IT_WIP_QTY = "

EXCEPTIONS
ERROR_OCCURRED = 1 INPUT_ERROR = 2
.



IMPORTING Parameters details for CO_ML_WIP_DOC_CREATE

ID_OBJECT -

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

ID_COAREA -

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

ID_PLANT -

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

ID_PROCESS -

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

ID_PERIOD -

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

ID_YEAR -

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

IT_WIP_QTY -

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

EXCEPTIONS details

ERROR_OCCURRED -

Data type:
Optional: No
Call by Reference: Yes

INPUT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CO_ML_WIP_DOC_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_id_object  TYPE J_OBJNR, "   
lv_error_occurred  TYPE J_OBJNR, "   
lv_id_coarea  TYPE KOKRS, "   
lv_input_error  TYPE KOKRS, "   
lv_id_plant  TYPE WERKS_D, "   
lv_id_process  TYPE CKML_F_PROCNR, "   
lv_id_period  TYPE CO_PERIO, "   
lv_id_year  TYPE GJAHR, "   
lv_it_wip_qty  TYPE COMLW_T_WIPIF. "   

  CALL FUNCTION 'CO_ML_WIP_DOC_CREATE'  "
    EXPORTING
         ID_OBJECT = lv_id_object
         ID_COAREA = lv_id_coarea
         ID_PLANT = lv_id_plant
         ID_PROCESS = lv_id_process
         ID_PERIOD = lv_id_period
         ID_YEAR = lv_id_year
         IT_WIP_QTY = lv_it_wip_qty
    EXCEPTIONS
        ERROR_OCCURRED = 1
        INPUT_ERROR = 2
. " CO_ML_WIP_DOC_CREATE




ABAP code using 7.40 inline data declarations to call FM CO_ML_WIP_DOC_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!