SAP MILL_MM_OB_DET_COPY_CUOBJ Function Module for NOTRANSL: Determine CUOBJ for copying characteristics to batch at goods re
MILL_MM_OB_DET_COPY_CUOBJ is a standard mill mm ob det copy cuobj 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: Determine CUOBJ for copying characteristics to batch at goods re 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 mill mm ob det copy cuobj FM, simply by entering the name MILL_MM_OB_DET_COPY_CUOBJ into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPMP/ORIGINAL_BATCH_SERV
Program Name: /SAPMP/SAPLORIGINAL_BATCH_SERV
Main Program: /SAPMP/SAPLORIGINAL_BATCH_SERV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MILL_MM_OB_DET_COPY_CUOBJ 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 'MILL_MM_OB_DET_COPY_CUOBJ'"NOTRANSL: Determine CUOBJ for copying characteristics to batch at goods re.
EXPORTING
* I_CUOBJ = "Internal object number
* I_MAT_KDAUF = "Sales order number of valuated sales order stock
* I_MAT_KDPOS = "Sales Order Item of Valuated Sales Order Stock
* I_AUFNR = "Order Number
* I_POSNR = "Order item number
* I_EBELN = "Purchasing Document Number
* I_EBELP = "Item Number of Purchasing Document
* I_RSNUM = "Number of reservation/dependent requirements
* I_RSPOS = "Item Number of Reservation / Dependent Requirements
IMPORTING
E_CUOBJ = "Internal object number
EXCEPTIONS
INVALID_INPUT = 1
IMPORTING Parameters details for MILL_MM_OB_DET_COPY_CUOBJ
I_CUOBJ - Internal object number
Data type: CUOBMOptional: Yes
Call by Reference: Yes
I_MAT_KDAUF - Sales order number of valuated sales order stock
Data type: MAT_KDAUFOptional: Yes
Call by Reference: Yes
I_MAT_KDPOS - Sales Order Item of Valuated Sales Order Stock
Data type: MAT_KDPOSOptional: Yes
Call by Reference: Yes
I_AUFNR - Order Number
Data type: AUFNROptional: Yes
Call by Reference: Yes
I_POSNR - Order item number
Data type: CO_POSNROptional: Yes
Call by Reference: Yes
I_EBELN - Purchasing Document Number
Data type: EBELNOptional: Yes
Call by Reference: Yes
I_EBELP - Item Number of Purchasing Document
Data type: EBELPOptional: Yes
Call by Reference: Yes
I_RSNUM - Number of reservation/dependent requirements
Data type: RSNUMOptional: Yes
Call by Reference: Yes
I_RSPOS - Item Number of Reservation / Dependent Requirements
Data type: RSPOSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MILL_MM_OB_DET_COPY_CUOBJ
E_CUOBJ - Internal object number
Data type: CUOBMOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_INPUT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MILL_MM_OB_DET_COPY_CUOBJ 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_e_cuobj | TYPE CUOBM, " | |||
| lv_i_cuobj | TYPE CUOBM, " | |||
| lv_invalid_input | TYPE CUOBM, " | |||
| lv_i_mat_kdauf | TYPE MAT_KDAUF, " | |||
| lv_i_mat_kdpos | TYPE MAT_KDPOS, " | |||
| lv_i_aufnr | TYPE AUFNR, " | |||
| lv_i_posnr | TYPE CO_POSNR, " | |||
| lv_i_ebeln | TYPE EBELN, " | |||
| lv_i_ebelp | TYPE EBELP, " | |||
| lv_i_rsnum | TYPE RSNUM, " | |||
| lv_i_rspos | TYPE RSPOS. " |
|   CALL FUNCTION 'MILL_MM_OB_DET_COPY_CUOBJ' "NOTRANSL: Determine CUOBJ for copying characteristics to batch at goods re |
| EXPORTING | ||
| I_CUOBJ | = lv_i_cuobj | |
| I_MAT_KDAUF | = lv_i_mat_kdauf | |
| I_MAT_KDPOS | = lv_i_mat_kdpos | |
| I_AUFNR | = lv_i_aufnr | |
| I_POSNR | = lv_i_posnr | |
| I_EBELN | = lv_i_ebeln | |
| I_EBELP | = lv_i_ebelp | |
| I_RSNUM | = lv_i_rsnum | |
| I_RSPOS | = lv_i_rspos | |
| IMPORTING | ||
| E_CUOBJ | = lv_e_cuobj | |
| EXCEPTIONS | ||
| INVALID_INPUT = 1 | ||
| . " MILL_MM_OB_DET_COPY_CUOBJ | ||
ABAP code using 7.40 inline data declarations to call FM MILL_MM_OB_DET_COPY_CUOBJ
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