SAP COS6_CALL_CUST_MAT_CHCK Function Module for NOTRANSL: Aufruf Exit für Kundeneigene Prüfung des Materials









COS6_CALL_CUST_MAT_CHCK is a standard cos6 call cust mat chck 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: Aufruf Exit für Kundeneigene Prüfung des Materials 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 cos6 call cust mat chck FM, simply by entering the name COS6_CALL_CUST_MAT_CHCK into the relevant SAP transaction such as SE37 or SE38.

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



Function COS6_CALL_CUST_MAT_CHCK 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 'COS6_CALL_CUST_MAT_CHCK'"NOTRANSL: Aufruf Exit für Kundeneigene Prüfung des Materials
EXPORTING
I_MATERIAL = "Data for a new component for check exit (import)
I_PLANT = "Plant
I_STORAGELOC = "Storage Location
IS_ORDER = "Dialog Structure for Order Headers and Items

IMPORTING
E_MATERIAL = "Data for component from comparison exit (export)
E_PLANT = "Plant
E_STORAGELOC = "Storage Location
ES_RETURN = "Return Parameter

EXCEPTIONS
ERROR = 1 MATERIAL_REJECTED = 2
.




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_SAPLCOS6_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOS6_002 Check a Newly Assigned Component

IMPORTING Parameters details for COS6_CALL_CUST_MAT_CHCK

I_MATERIAL - Data for a new component for check exit (import)

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

I_PLANT - Plant

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

I_STORAGELOC - Storage Location

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

IS_ORDER - Dialog Structure for Order Headers and Items

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

EXPORTING Parameters details for COS6_CALL_CUST_MAT_CHCK

E_MATERIAL - Data for component from comparison exit (export)

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

E_PLANT - Plant

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

E_STORAGELOC - Storage Location

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

ES_RETURN - Return Parameter

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

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_REJECTED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COS6_CALL_CUST_MAT_CHCK 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_error  TYPE STRING, "   
lv_e_material  TYPE RESBD-MATNR, "   
lv_i_material  TYPE RESBD-MATNR, "   
lv_e_plant  TYPE RESBD-WERKS, "   
lv_i_plant  TYPE RESBD-WERKS, "   
lv_material_rejected  TYPE RESBD, "   
lv_e_storageloc  TYPE RESBD-LGORT, "   
lv_i_storageloc  TYPE RESBD-LGORT, "   
lv_is_order  TYPE CAUFVD, "   
lv_es_return  TYPE BAPIRET2. "   

  CALL FUNCTION 'COS6_CALL_CUST_MAT_CHCK'  "NOTRANSL: Aufruf Exit für Kundeneigene Prüfung des Materials
    EXPORTING
         I_MATERIAL = lv_i_material
         I_PLANT = lv_i_plant
         I_STORAGELOC = lv_i_storageloc
         IS_ORDER = lv_is_order
    IMPORTING
         E_MATERIAL = lv_e_material
         E_PLANT = lv_e_plant
         E_STORAGELOC = lv_e_storageloc
         ES_RETURN = lv_es_return
    EXCEPTIONS
        ERROR = 1
        MATERIAL_REJECTED = 2
. " COS6_CALL_CUST_MAT_CHCK




ABAP code using 7.40 inline data declarations to call FM COS6_CALL_CUST_MAT_CHCK

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 MATNR FROM RESBD INTO @DATA(ld_e_material).
 
"SELECT single MATNR FROM RESBD INTO @DATA(ld_i_material).
 
"SELECT single WERKS FROM RESBD INTO @DATA(ld_e_plant).
 
"SELECT single WERKS FROM RESBD INTO @DATA(ld_i_plant).
 
 
"SELECT single LGORT FROM RESBD INTO @DATA(ld_e_storageloc).
 
"SELECT single LGORT FROM RESBD INTO @DATA(ld_i_storageloc).
 
 
 


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!