SAP VBOB_OB_UCMAT_CHECK Function Module for NOTRANSL: Ursprunschargen-Referenzmaterial prüfen
VBOB_OB_UCMAT_CHECK is a standard vbob ob ucmat check 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: Ursprunschargen-Referenzmaterial prüfen 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 vbob ob ucmat check FM, simply by entering the name VBOB_OB_UCMAT_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: VBOB_MATERIAL_CHECK
Program Name: SAPLVBOB_MATERIAL_CHECK
Main Program: SAPLVBOB_MATERIAL_CHECK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VBOB_OB_UCMAT_CHECK 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 'VBOB_OB_UCMAT_CHECK'"NOTRANSL: Ursprunschargen-Referenzmaterial prüfen.
EXPORTING
I_AKTYP = "Activity Category in the Transaction
I_MATNR = "Material Number
I_UCMAT = "Material Number
I_WERKS = "Plant
I_BWKEY = "Valuation Area
TABLES
* E_MATMESS = "Messages for Field Checks in the Material Master
EXCEPTIONS
PLANT_NOT_FOUND = 1 REF_MAT_NOT_FOUND = 2 REF_MAT_MUST_NOT_BE_VALUATED = 3 REF_MAT_NOT_HANDLED_IN_BATCHES = 4 REF_MAT_OB_NOT_ALLOWED = 5 VALUATION_AREA_NOT_FOUND = 6 MAT_NOT_FOUND = 7 ORIGINAL_BATCHES_NOT_ALLOWED = 8 REF_MAT_PLANT_NOT_FOUND = 9
IMPORTING Parameters details for VBOB_OB_UCMAT_CHECK
I_AKTYP - Activity Category in the Transaction
Data type: AKTYPOptional: No
Call by Reference: Yes
I_MATNR - Material Number
Data type: MATNROptional: No
Call by Reference: Yes
I_UCMAT - Material Number
Data type: MATNROptional: No
Call by Reference: Yes
I_WERKS - Plant
Data type: WERKS_DOptional: No
Call by Reference: Yes
I_BWKEY - Valuation Area
Data type: BWKEYOptional: No
Call by Reference: Yes
TABLES Parameters details for VBOB_OB_UCMAT_CHECK
E_MATMESS - Messages for Field Checks in the Material Master
Data type: MATMESSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
PLANT_NOT_FOUND - Plant not found
Data type:Optional: No
Call by Reference: Yes
REF_MAT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
REF_MAT_MUST_NOT_BE_VALUATED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
REF_MAT_NOT_HANDLED_IN_BATCHES - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
REF_MAT_OB_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
VALUATION_AREA_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
MAT_NOT_FOUND - Material Does Not Exist
Data type:Optional: No
Call by Reference: Yes
ORIGINAL_BATCHES_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
REF_MAT_PLANT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for VBOB_OB_UCMAT_CHECK 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_i_aktyp | TYPE AKTYP, " | |||
| lt_e_matmess | TYPE STANDARD TABLE OF MATMESS, " | |||
| lv_plant_not_found | TYPE MATMESS, " | |||
| lv_i_matnr | TYPE MATNR, " | |||
| lv_ref_mat_not_found | TYPE MATNR, " | |||
| lv_i_ucmat | TYPE MATNR, " | |||
| lv_ref_mat_must_not_be_valuated | TYPE MATNR, " | |||
| lv_i_werks | TYPE WERKS_D, " | |||
| lv_ref_mat_not_handled_in_batches | TYPE WERKS_D, " | |||
| lv_i_bwkey | TYPE BWKEY, " | |||
| lv_ref_mat_ob_not_allowed | TYPE BWKEY, " | |||
| lv_valuation_area_not_found | TYPE BWKEY, " | |||
| lv_mat_not_found | TYPE BWKEY, " | |||
| lv_original_batches_not_allowed | TYPE BWKEY, " | |||
| lv_ref_mat_plant_not_found | TYPE BWKEY. " |
|   CALL FUNCTION 'VBOB_OB_UCMAT_CHECK' "NOTRANSL: Ursprunschargen-Referenzmaterial prüfen |
| EXPORTING | ||
| I_AKTYP | = lv_i_aktyp | |
| I_MATNR | = lv_i_matnr | |
| I_UCMAT | = lv_i_ucmat | |
| I_WERKS | = lv_i_werks | |
| I_BWKEY | = lv_i_bwkey | |
| TABLES | ||
| E_MATMESS | = lt_e_matmess | |
| EXCEPTIONS | ||
| PLANT_NOT_FOUND = 1 | ||
| REF_MAT_NOT_FOUND = 2 | ||
| REF_MAT_MUST_NOT_BE_VALUATED = 3 | ||
| REF_MAT_NOT_HANDLED_IN_BATCHES = 4 | ||
| REF_MAT_OB_NOT_ALLOWED = 5 | ||
| VALUATION_AREA_NOT_FOUND = 6 | ||
| MAT_NOT_FOUND = 7 | ||
| ORIGINAL_BATCHES_NOT_ALLOWED = 8 | ||
| REF_MAT_PLANT_NOT_FOUND = 9 | ||
| . " VBOB_OB_UCMAT_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM VBOB_OB_UCMAT_CHECK
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