SAP OIIC_CHECK_TANK_MATERIAL Function Module for Check, if a Material/plant/Stor.Loc comb. is tank manged









OIIC_CHECK_TANK_MATERIAL is a standard oiic check tank 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 a Material/plant/Stor.Loc comb. is tank manged 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 oiic check tank material FM, simply by entering the name OIIC_CHECK_TANK_MATERIAL into the relevant SAP transaction such as SE37 or SE38.

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



Function OIIC_CHECK_TANK_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 'OIIC_CHECK_TANK_MATERIAL'"Check, if a Material/plant/Stor.Loc comb. is tank manged
EXPORTING
I_MATNR = "Material number
* I_CNT02 = 01 "Consecutive counter in ATAB tables for inventory managment
* I_MSEG = "Quantity in base UoM
I_WERKS = "Plant
I_LGORT = "Storage location
I_CHARG = "Batch number
I_BWTAR = "Valuation type
I_SOBKZ = "Special stock indicator
I_INSMK = "Stock type
I_BUSTM = "Posting string for quantities
I_OIB_TIMESTAMP = "Tank dip time stamp

IMPORTING
E_SOCNR = "SOC: Storage object characteristic segment number
E_SEQNR = "Sequence number of SO assigned to storage location
E_OIISOCTSM = "SOC: time dependent assignment SO <-> material (IS-Oil BDRP)

EXCEPTIONS
NO_ASSIGNMENT_FOUND = 1
.



IMPORTING Parameters details for OIIC_CHECK_TANK_MATERIAL

I_MATNR - Material number

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

I_CNT02 - Consecutive counter in ATAB tables for inventory managment

Data type: T156M-CNT02
Default: 01
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSEG - Quantity in base UoM

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

I_WERKS - Plant

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

I_LGORT - Storage location

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

I_CHARG - Batch number

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

I_BWTAR - Valuation type

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

I_SOBKZ - Special stock indicator

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

I_INSMK - Stock type

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

I_BUSTM - Posting string for quantities

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

I_OIB_TIMESTAMP - Tank dip time stamp

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

EXPORTING Parameters details for OIIC_CHECK_TANK_MATERIAL

E_SOCNR - SOC: Storage object characteristic segment number

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

E_SEQNR - Sequence number of SO assigned to storage location

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

E_OIISOCTSM - SOC: time dependent assignment SO <-> material (IS-Oil BDRP)

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

EXCEPTIONS details

NO_ASSIGNMENT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIIC_CHECK_TANK_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_e_socnr  TYPE OIISOCK-SOCNR, "   
lv_i_matnr  TYPE MSEG-MATNR, "   
lv_no_assignment_found  TYPE MSEG, "   
lv_i_cnt02  TYPE T156M-CNT02, "   01
lv_i_mseg  TYPE MSEG, "   
lv_e_seqnr  TYPE OIISOCISL-SEQNR, "   
lv_i_werks  TYPE MSEG-WERKS, "   
lv_i_lgort  TYPE MSEG-LGORT, "   
lv_e_oiisoctsm  TYPE ROIISOCTSM, "   
lv_i_charg  TYPE MSEG-CHARG, "   
lv_i_bwtar  TYPE MSEG-BWTAR, "   
lv_i_sobkz  TYPE MSEG-SOBKZ, "   
lv_i_insmk  TYPE MSEG-INSMK, "   
lv_i_bustm  TYPE MSEG-BUSTM, "   
lv_i_oib_timestamp  TYPE MSEG-OIB_TIMESTAMP. "   

  CALL FUNCTION 'OIIC_CHECK_TANK_MATERIAL'  "Check, if a Material/plant/Stor.Loc comb. is tank manged
    EXPORTING
         I_MATNR = lv_i_matnr
         I_CNT02 = lv_i_cnt02
         I_MSEG = lv_i_mseg
         I_WERKS = lv_i_werks
         I_LGORT = lv_i_lgort
         I_CHARG = lv_i_charg
         I_BWTAR = lv_i_bwtar
         I_SOBKZ = lv_i_sobkz
         I_INSMK = lv_i_insmk
         I_BUSTM = lv_i_bustm
         I_OIB_TIMESTAMP = lv_i_oib_timestamp
    IMPORTING
         E_SOCNR = lv_e_socnr
         E_SEQNR = lv_e_seqnr
         E_OIISOCTSM = lv_e_oiisoctsm
    EXCEPTIONS
        NO_ASSIGNMENT_FOUND = 1
. " OIIC_CHECK_TANK_MATERIAL




ABAP code using 7.40 inline data declarations to call FM OIIC_CHECK_TANK_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 SOCNR FROM OIISOCK INTO @DATA(ld_e_socnr).
 
"SELECT single MATNR FROM MSEG INTO @DATA(ld_i_matnr).
 
 
"SELECT single CNT02 FROM T156M INTO @DATA(ld_i_cnt02).
DATA(ld_i_cnt02) = 01.
 
 
"SELECT single SEQNR FROM OIISOCISL INTO @DATA(ld_e_seqnr).
 
"SELECT single WERKS FROM MSEG INTO @DATA(ld_i_werks).
 
"SELECT single LGORT FROM MSEG INTO @DATA(ld_i_lgort).
 
 
"SELECT single CHARG FROM MSEG INTO @DATA(ld_i_charg).
 
"SELECT single BWTAR FROM MSEG INTO @DATA(ld_i_bwtar).
 
"SELECT single SOBKZ FROM MSEG INTO @DATA(ld_i_sobkz).
 
"SELECT single INSMK FROM MSEG INTO @DATA(ld_i_insmk).
 
"SELECT single BUSTM FROM MSEG INTO @DATA(ld_i_bustm).
 
"SELECT single OIB_TIMESTAMP FROM MSEG INTO @DATA(ld_i_oib_timestamp).
 


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!