SAP OIJ_GAUGE_STOP_CALC Function Module for calculates closing reading given the opening reading qty









OIJ_GAUGE_STOP_CALC is a standard oij gauge stop calc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for calculates closing reading given the opening reading qty 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 oij gauge stop calc FM, simply by entering the name OIJ_GAUGE_STOP_CALC into the relevant SAP transaction such as SE37 or SE38.

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



Function OIJ_GAUGE_STOP_CALC 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 'OIJ_GAUGE_STOP_CALC'"calculates closing reading given the opening reading qty
EXPORTING
I_LOCATION = "Location ID
I_OPER_TYPE = "
I_TANKNR = "Sequence number of SO assigned to business location
I_TOTALHEIGHT = "Tank dip, total height
I_TOTHUOM = "Length UoM (Oil BDRP)
I_WATERHEIGHT = "Tank dip: water dip height
I_WATHUOM = "Length UoM (Oil BDRP)
I_UL_IN_IND = "Dipping method (innage, ullage)
I_QUANTITY = "Scheduled qty
I_QTY_UOM = "Scheduled UoM

IMPORTING
E_STOPHEIGHT = "Tank dip, total height

EXCEPTIONS
NO_LOC_TANK = 1 INVALID_DIP = 2 INVALID_QTY = 3 INVALID_TANK = 4 UOM_CONV_ERROR = 5 INVALID_OPER_TYPE = 6
.



IMPORTING Parameters details for OIJ_GAUGE_STOP_CALC

I_LOCATION - Location ID

Data type: OIJ_LOCID
Optional: No
Call by Reference: Yes

I_OPER_TYPE -

Data type: C
Optional: No
Call by Reference: Yes

I_TANKNR - Sequence number of SO assigned to business location

Data type: OII_BSEQNR
Optional: No
Call by Reference: Yes

I_TOTALHEIGHT - Tank dip, total height

Data type: OII_TOTALHEIGHT
Optional: No
Call by Reference: Yes

I_TOTHUOM - Length UoM (Oil BDRP)

Data type: OII_LENUN
Optional: No
Call by Reference: Yes

I_WATERHEIGHT - Tank dip: water dip height

Data type: OII_WATERHEIGHT
Optional: No
Call by Reference: Yes

I_WATHUOM - Length UoM (Oil BDRP)

Data type: OII_LENUN
Optional: No
Call by Reference: Yes

I_UL_IN_IND - Dipping method (innage, ullage)

Data type: OII_UL_IN_IND
Optional: No
Call by Reference: Yes

I_QUANTITY - Scheduled qty

Data type: MENGE_D
Optional: No
Call by Reference: Yes

I_QTY_UOM - Scheduled UoM

Data type: OIJ_UNITI
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for OIJ_GAUGE_STOP_CALC

E_STOPHEIGHT - Tank dip, total height

Data type: OII_TOTALHEIGHT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_LOC_TANK -

Data type:
Optional: No
Call by Reference: Yes

INVALID_DIP -

Data type:
Optional: No
Call by Reference: Yes

INVALID_QTY -

Data type:
Optional: No
Call by Reference: Yes

INVALID_TANK -

Data type:
Optional: No
Call by Reference: Yes

UOM_CONV_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INVALID_OPER_TYPE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIJ_GAUGE_STOP_CALC 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_location  TYPE OIJ_LOCID, "   
lv_no_loc_tank  TYPE OIJ_LOCID, "   
lv_e_stopheight  TYPE OII_TOTALHEIGHT, "   
lv_i_oper_type  TYPE C, "   
lv_i_tanknr  TYPE OII_BSEQNR, "   
lv_invalid_dip  TYPE OII_BSEQNR, "   
lv_invalid_qty  TYPE OII_BSEQNR, "   
lv_i_totalheight  TYPE OII_TOTALHEIGHT, "   
lv_i_tothuom  TYPE OII_LENUN, "   
lv_invalid_tank  TYPE OII_LENUN, "   
lv_i_waterheight  TYPE OII_WATERHEIGHT, "   
lv_uom_conv_error  TYPE OII_WATERHEIGHT, "   
lv_i_wathuom  TYPE OII_LENUN, "   
lv_invalid_oper_type  TYPE OII_LENUN, "   
lv_i_ul_in_ind  TYPE OII_UL_IN_IND, "   
lv_i_quantity  TYPE MENGE_D, "   
lv_i_qty_uom  TYPE OIJ_UNITI. "   

  CALL FUNCTION 'OIJ_GAUGE_STOP_CALC'  "calculates closing reading given the opening reading qty
    EXPORTING
         I_LOCATION = lv_i_location
         I_OPER_TYPE = lv_i_oper_type
         I_TANKNR = lv_i_tanknr
         I_TOTALHEIGHT = lv_i_totalheight
         I_TOTHUOM = lv_i_tothuom
         I_WATERHEIGHT = lv_i_waterheight
         I_WATHUOM = lv_i_wathuom
         I_UL_IN_IND = lv_i_ul_in_ind
         I_QUANTITY = lv_i_quantity
         I_QTY_UOM = lv_i_qty_uom
    IMPORTING
         E_STOPHEIGHT = lv_e_stopheight
    EXCEPTIONS
        NO_LOC_TANK = 1
        INVALID_DIP = 2
        INVALID_QTY = 3
        INVALID_TANK = 4
        UOM_CONV_ERROR = 5
        INVALID_OPER_TYPE = 6
. " OIJ_GAUGE_STOP_CALC




ABAP code using 7.40 inline data declarations to call FM OIJ_GAUGE_STOP_CALC

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



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!