SAP CO_MK_PROCEED_MAT_PROV Function Module for NOTRANSL: CIM-Auftrag: Zuordnung der Materialkomponenten









CO_MK_PROCEED_MAT_PROV is a standard co mk proceed mat prov 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: CIM-Auftrag: Zuordnung der Materialkomponenten 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 mk proceed mat prov FM, simply by entering the name CO_MK_PROCEED_MAT_PROV into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_MK_PROCEED_MAT_PROV 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_MK_PROCEED_MAT_PROV'"NOTRANSL: CIM-Auftrag: Zuordnung der Materialkomponenten
EXPORTING
CAUFVDWA = "Dialog Structure for Order Headers and Items
* WERKS = ' ' "Plant
* FLG_CALL = YX "Selection Indicator
* R62CLORD_IMP = ' ' "Control structure for collective order
* FLG_FREE = YX "Selection Indicator
DYNNR = "Screen number in function module
FCODE = "Function Code
* FLG_GENERAL = ' ' "Selection Indicator
* MATNR = ' ' "Material Number
* RC27I_IMP = "Task lists: Indexes referring to current rec'd in rec'd tabs
* RC27S_IMP = "Control Data for Control During Dialog Processing
STTAG = "Valid-From Date
TRTYP = "Transaction Type

IMPORTING
OK_CODE = "Function Code
RC27I_EXP = "Task lists: Indexes referring to current rec'd in rec'd tabs
R62CLORD_EXP = "Control structure for collective order

EXCEPTIONS
INDICES_NOT_DECLARED = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCOMK_001 User Exit for Material Components
EXIT_SAPLCOMK_002 User Exit: BOM Explosion on Component Overview
EXIT_SAPLCOMK_003 Maintenance Order: Customer Enhancement for Component Selection
EXIT_SAPLCOMK_004 PM Order: Customer Enhancement - Default for Item Cat. in Comp. Assignmt
EXIT_SAPLCOMK_005 User Exit for Checking Changes to Components in Order
EXIT_SAPLCOMK_006 Enhancement in the adding and changing of components
EXIT_SAPLCOMK_007 Customer Enhancement: Plant and Storage Location Determination f. Compon.
EXIT_SAPLCOMK_008 Change Priorities for Selection Criteria for Batch Determination
EXIT_SAPLCOMK_009 Update Result of BOM Assignment
EXIT_SAPLCOMK_010 User Exit for Checking Component Changes in the Production Order
EXIT_SAPLCOMK_011 Check a Newly Assigned Component
EXIT_SAPLCOMK_012 Check a changed component
EXIT_SAPLCOMK_013 Check Whether Component can be Deleted
EXIT_SAPLCOMK_014 Checks Changes to Order Components
EXIT_SAPLCOMK_029 Inclusion of Bill of Material in PM/SM Order

IMPORTING Parameters details for CO_MK_PROCEED_MAT_PROV

CAUFVDWA - Dialog Structure for Order Headers and Items

Data type: CAUFVD
Optional: No
Call by Reference: No ( called with pass by value option)

WERKS - Plant

Data type: RC27M-WERKS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_CALL - Selection Indicator

Data type: RC27X-FLG_SEL
Default: YX
Optional: Yes
Call by Reference: No ( called with pass by value option)

R62CLORD_IMP - Control structure for collective order

Data type: R62CLORD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_FREE - Selection Indicator

Data type: RC27X-FLG_SEL
Default: YX
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNNR - Screen number in function module

Data type: T185V-CDYNPRO
Optional: No
Call by Reference: No ( called with pass by value option)

FCODE - Function Code

Data type: T185-FCODE
Optional: No
Call by Reference: No ( called with pass by value option)

FLG_GENERAL - Selection Indicator

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATNR - Material Number

Data type: RC27M-MATNR
Default: SPACE
Optional: 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: RC27I
Optional: Yes
Call by Reference: No ( called with pass by value option)

RC27S_IMP - Control Data for Control During Dialog Processing

Data type: RC27S
Optional: Yes
Call by Reference: No ( called with pass by value option)

STTAG - Valid-From Date

Data type: PLPO-DATUV
Optional: No
Call by Reference: No ( called with pass by value option)

TRTYP - Transaction Type

Data type: TCA05-TRTYP
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CO_MK_PROCEED_MAT_PROV

OK_CODE - Function Code

Data type: T185-FCODE
Optional: No
Call by Reference: No ( called with pass by value option)

RC27I_EXP - Task lists: Indexes referring to current rec'd in rec'd tabs

Data type: RC27I
Optional: No
Call by Reference: No ( called with pass by value option)

R62CLORD_EXP - Control structure for collective order

Data type: R62CLORD
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INDICES_NOT_DECLARED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CO_MK_PROCEED_MAT_PROV 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_ok_code  TYPE T185-FCODE, "   
lv_caufvdwa  TYPE CAUFVD, "   
lv_indices_not_declared  TYPE CAUFVD, "   
lv_werks  TYPE RC27M-WERKS, "   SPACE
lv_flg_call  TYPE RC27X-FLG_SEL, "   YX
lv_r62clord_imp  TYPE R62CLORD, "   SPACE
lv_flg_free  TYPE RC27X-FLG_SEL, "   YX
lv_dynnr  TYPE T185V-CDYNPRO, "   
lv_rc27i_exp  TYPE RC27I, "   
lv_fcode  TYPE T185-FCODE, "   
lv_r62clord_exp  TYPE R62CLORD, "   
lv_flg_general  TYPE RC27X-FLG_SEL, "   SPACE
lv_matnr  TYPE RC27M-MATNR, "   SPACE
lv_rc27i_imp  TYPE RC27I, "   
lv_rc27s_imp  TYPE RC27S, "   
lv_sttag  TYPE PLPO-DATUV, "   
lv_trtyp  TYPE TCA05-TRTYP. "   

  CALL FUNCTION 'CO_MK_PROCEED_MAT_PROV'  "NOTRANSL: CIM-Auftrag: Zuordnung der Materialkomponenten
    EXPORTING
         CAUFVDWA = lv_caufvdwa
         WERKS = lv_werks
         FLG_CALL = lv_flg_call
         R62CLORD_IMP = lv_r62clord_imp
         FLG_FREE = lv_flg_free
         DYNNR = lv_dynnr
         FCODE = lv_fcode
         FLG_GENERAL = lv_flg_general
         MATNR = lv_matnr
         RC27I_IMP = lv_rc27i_imp
         RC27S_IMP = lv_rc27s_imp
         STTAG = lv_sttag
         TRTYP = lv_trtyp
    IMPORTING
         OK_CODE = lv_ok_code
         RC27I_EXP = lv_rc27i_exp
         R62CLORD_EXP = lv_r62clord_exp
    EXCEPTIONS
        INDICES_NOT_DECLARED = 1
. " CO_MK_PROCEED_MAT_PROV




ABAP code using 7.40 inline data declarations to call FM CO_MK_PROCEED_MAT_PROV

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 FCODE FROM T185 INTO @DATA(ld_ok_code).
 
 
 
"SELECT single WERKS FROM RC27M INTO @DATA(ld_werks).
DATA(ld_werks) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_call).
DATA(ld_flg_call) = YX.
 
DATA(ld_r62clord_imp) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_free).
DATA(ld_flg_free) = YX.
 
"SELECT single CDYNPRO FROM T185V INTO @DATA(ld_dynnr).
 
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_fcode).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_general).
DATA(ld_flg_general) = ' '.
 
"SELECT single MATNR FROM RC27M INTO @DATA(ld_matnr).
DATA(ld_matnr) = ' '.
 
 
 
"SELECT single DATUV FROM PLPO INTO @DATA(ld_sttag).
 
"SELECT single TRTYP FROM TCA05 INTO @DATA(ld_trtyp).
 


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!