SAP OIRC_CHECK_BOM_MATERIAL Function Module for check if material is BOM material (material handling group)









OIRC_CHECK_BOM_MATERIAL is a standard oirc check bom material SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for check if material is BOM material (material handling group) 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 oirc check bom material FM, simply by entering the name OIRC_CHECK_BOM_MATERIAL into the relevant SAP transaction such as SE37 or SE38.

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



Function OIRC_CHECK_BOM_MATERIAL 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 'OIRC_CHECK_BOM_MATERIAL'"check if material is BOM material (material handling group)
EXPORTING
PI_RNBT = "Retail network business type (IS-Oil SSR)
PI_MATHANDGRP = "Material handling group (IS-Oil SSR)
PI_MATNR = "Material number

IMPORTING
PE_BOM_IND = "BOM explosion indicator
PE_STLAL = "Alternative BOM

EXCEPTIONS
MATERIAL_UNDEFINED = 1 MATHANDGRP_NOT_DEFINED = 2
.



IMPORTING Parameters details for OIRC_CHECK_BOM_MATERIAL

PI_RNBT - Retail network business type (IS-Oil SSR)

Data type: OIRARNBT-RNBT
Optional: No
Call by Reference: Yes

PI_MATHANDGRP - Material handling group (IS-Oil SSR)

Data type: OIRBPBLB-MATHANDGRP
Optional: No
Call by Reference: Yes

PI_MATNR - Material number

Data type: OIRADBT-MATNR
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for OIRC_CHECK_BOM_MATERIAL

PE_BOM_IND - BOM explosion indicator

Data type: OIRAMATHANDGRP-BOM_IND
Optional: No
Call by Reference: Yes

PE_STLAL - Alternative BOM

Data type: OIRAMATHANDGRP-STLAL
Optional: No
Call by Reference: Yes

EXCEPTIONS details

MATERIAL_UNDEFINED - Material not found in material handling group

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

MATHANDGRP_NOT_DEFINED - Material handling group does not exist

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

Copy and paste ABAP code example for OIRC_CHECK_BOM_MATERIAL 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_pi_rnbt  TYPE OIRARNBT-RNBT, "   
lv_pe_bom_ind  TYPE OIRAMATHANDGRP-BOM_IND, "   
lv_material_undefined  TYPE OIRAMATHANDGRP, "   
lv_pe_stlal  TYPE OIRAMATHANDGRP-STLAL, "   
lv_pi_mathandgrp  TYPE OIRBPBLB-MATHANDGRP, "   
lv_mathandgrp_not_defined  TYPE OIRBPBLB, "   
lv_pi_matnr  TYPE OIRADBT-MATNR. "   

  CALL FUNCTION 'OIRC_CHECK_BOM_MATERIAL'  "check if material is BOM material (material handling group)
    EXPORTING
         PI_RNBT = lv_pi_rnbt
         PI_MATHANDGRP = lv_pi_mathandgrp
         PI_MATNR = lv_pi_matnr
    IMPORTING
         PE_BOM_IND = lv_pe_bom_ind
         PE_STLAL = lv_pe_stlal
    EXCEPTIONS
        MATERIAL_UNDEFINED = 1
        MATHANDGRP_NOT_DEFINED = 2
. " OIRC_CHECK_BOM_MATERIAL




ABAP code using 7.40 inline data declarations to call FM OIRC_CHECK_BOM_MATERIAL

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 RNBT FROM OIRARNBT INTO @DATA(ld_pi_rnbt).
 
"SELECT single BOM_IND FROM OIRAMATHANDGRP INTO @DATA(ld_pe_bom_ind).
 
 
"SELECT single STLAL FROM OIRAMATHANDGRP INTO @DATA(ld_pe_stlal).
 
"SELECT single MATHANDGRP FROM OIRBPBLB INTO @DATA(ld_pi_mathandgrp).
 
 
"SELECT single MATNR FROM OIRADBT INTO @DATA(ld_pi_matnr).
 


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!