SAP OIJU_RD_INVENTORY_CALC_FUTURE Function Module for OIL-TSW: Calculate future planned/base inventory figures in rundown









OIJU_RD_INVENTORY_CALC_FUTURE is a standard oiju rd inventory calc future SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OIL-TSW: Calculate future planned/base inventory figures in rundown 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 oiju rd inventory calc future FM, simply by entering the name OIJU_RD_INVENTORY_CALC_FUTURE into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIJU
Program Name: SAPLOIJU
Main Program: SAPLOIJU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function OIJU_RD_INVENTORY_CALC_FUTURE 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 'OIJU_RD_INVENTORY_CALC_FUTURE'"OIL-TSW: Calculate future planned/base inventory figures in rundown
EXPORTING
I_ROIJRDH = "OIL TSW : Stock Projection header structure
I_APPLICATION = "Flag: LID used
* I_ACC_NEG = 'X' "Single-character flag
* I_LB_TSYST = "Location balancing TSYST
* I_SKIP_PROD = "Skip real-time production integration

IMPORTING
E_UNACTUAL_SUM = "Unactualised Sum

TABLES
T_ROIJRD = "Rundown object date line entries
* T_OIJTHPUTFCAVG = "OIL-TSW: Rack issue / Throughput forecast daily average
* T_OIJRDHTPSET_TAB = "OIL-TSW: Rundown Rack issue / throughput settings
* T_OIJTHPUTFCEST = "OIL-TSW: Rack issue / Throughput estimate pop-up
* T_OIJRDNOMV = "
T_OIJX = "OIL-TSW: TSW control record
* T_ROIJRDNOMV_ALL_TAB = "Generated Table for View V_OIJRDNOM
* T_OIJBRDRB_TAB = "OIL-TSW: Rundown received batch table
* T_OIJBRDIB_TAB = "OIL-TSW: Rundown issued table
* T_OIJ_SIM_SCHED_RD_TAB = "TSW: COM-Structure for Simulated Schedule Lines
* T_OIJ_REPORT_QUAN_TAB = "TSW: Reported Nomination quantities into/out of inventory
* T_OIJTHPUTFC = "OIL TSW: Rack issue / Throughput forecast

EXCEPTIONS
REPDAT_LESS_THAN_RD_DATE_RANGE = 1 REPDAT_GRTR_THAN_RD_DATE_RANGE = 2 REPDAT_RD_DATE_RANGE_ERROR = 3 FM_ERROR = 4 OIJX_NOT_MAINTAINED = 5
.




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_SAPLOIJU_001 OIL-TSW: Customer exit for editing rundown plant book inventory
EXIT_SAPLOIJU_002 OIL-TSW: Customer exit for editing rundown plant SOP data
EXIT_SAPLOIJU_003 OIL-TSW: Customer exit for editing rundown plant statistical movement data

IMPORTING Parameters details for OIJU_RD_INVENTORY_CALC_FUTURE

I_ROIJRDH - OIL TSW : Stock Projection header structure

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

I_APPLICATION - Flag: LID used

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

I_ACC_NEG - Single-character flag

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LB_TSYST - Location balancing TSYST

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

I_SKIP_PROD - Skip real-time production integration

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

EXPORTING Parameters details for OIJU_RD_INVENTORY_CALC_FUTURE

E_UNACTUAL_SUM - Unactualised Sum

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

TABLES Parameters details for OIJU_RD_INVENTORY_CALC_FUTURE

T_ROIJRD - Rundown object date line entries

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

T_OIJTHPUTFCAVG - OIL-TSW: Rack issue / Throughput forecast daily average

Data type: ROIJ_THPUTFCAVG
Optional: Yes
Call by Reference: Yes

T_OIJRDHTPSET_TAB - OIL-TSW: Rundown Rack issue / throughput settings

Data type: OIJRDHTPSET
Optional: Yes
Call by Reference: Yes

T_OIJTHPUTFCEST - OIL-TSW: Rack issue / Throughput estimate pop-up

Data type: OIJTHPUTFCEST
Optional: Yes
Call by Reference: Yes

T_OIJRDNOMV -

Data type: V_OIJRDNOM
Optional: Yes
Call by Reference: Yes

T_OIJX - OIL-TSW: TSW control record

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

T_ROIJRDNOMV_ALL_TAB - Generated Table for View V_OIJRDNOM

Data type: V_OIJRDNOM
Optional: Yes
Call by Reference: Yes

T_OIJBRDRB_TAB - OIL-TSW: Rundown received batch table

Data type: ROIJBRDRB
Optional: Yes
Call by Reference: Yes

T_OIJBRDIB_TAB - OIL-TSW: Rundown issued table

Data type: ROIJBRDIB
Optional: Yes
Call by Reference: Yes

T_OIJ_SIM_SCHED_RD_TAB - TSW: COM-Structure for Simulated Schedule Lines

Data type: ROIJ_SCHED
Optional: Yes
Call by Reference: Yes

T_OIJ_REPORT_QUAN_TAB - TSW: Reported Nomination quantities into/out of inventory

Data type: ROIJ_REPORT_QUAN
Optional: Yes
Call by Reference: Yes

T_OIJTHPUTFC - OIL TSW: Rack issue / Throughput forecast

Data type: ROIJ_THPUTFC
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

REPDAT_LESS_THAN_RD_DATE_RANGE - RD report date less than earliest RD line date

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

REPDAT_GRTR_THAN_RD_DATE_RANGE - RD report date greater than latest RD line date

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

REPDAT_RD_DATE_RANGE_ERROR - RD report date cannot be matched to RD line

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

FM_ERROR - Function error

Data type:
Optional: No
Call by Reference: Yes

OIJX_NOT_MAINTAINED - OIJX not maintained

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIJU_RD_INVENTORY_CALC_FUTURE 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:
lt_t_roijrd  TYPE STANDARD TABLE OF ROIJRD, "   
lv_i_roijrdh  TYPE ROIJRDHEAD, "   
lv_e_unactual_sum  TYPE OIJBRDH-MININV, "   
lv_repdat_less_than_rd_date_range  TYPE OIJBRDH, "   
lt_t_oijthputfcavg  TYPE STANDARD TABLE OF ROIJ_THPUTFCAVG, "   
lt_t_oijrdhtpset_tab  TYPE STANDARD TABLE OF OIJRDHTPSET, "   
lt_t_oijthputfcest  TYPE STANDARD TABLE OF OIJTHPUTFCEST, "   
lt_t_oijrdnomv  TYPE STANDARD TABLE OF V_OIJRDNOM, "   
lv_i_application  TYPE CHAR1, "   
lv_repdat_grtr_than_rd_date_range  TYPE CHAR1, "   
lt_t_oijx  TYPE STANDARD TABLE OF OIJX, "   
lv_i_acc_neg  TYPE CHAR1, "   'X'
lv_repdat_rd_date_range_error  TYPE CHAR1, "   
lv_fm_error  TYPE CHAR1, "   
lv_i_lb_tsyst  TYPE OIJTS-TSYST, "   
lt_t_roijrdnomv_all_tab  TYPE STANDARD TABLE OF V_OIJRDNOM, "   
lv_i_skip_prod  TYPE CHAR1, "   
lt_t_oijbrdrb_tab  TYPE STANDARD TABLE OF ROIJBRDRB, "   
lv_oijx_not_maintained  TYPE ROIJBRDRB, "   
lt_t_oijbrdib_tab  TYPE STANDARD TABLE OF ROIJBRDIB, "   
lt_t_oij_sim_sched_rd_tab  TYPE STANDARD TABLE OF ROIJ_SCHED, "   
lt_t_oij_report_quan_tab  TYPE STANDARD TABLE OF ROIJ_REPORT_QUAN, "   
lt_t_oijthputfc  TYPE STANDARD TABLE OF ROIJ_THPUTFC. "   

  CALL FUNCTION 'OIJU_RD_INVENTORY_CALC_FUTURE'  "OIL-TSW: Calculate future planned/base inventory figures in rundown
    EXPORTING
         I_ROIJRDH = lv_i_roijrdh
         I_APPLICATION = lv_i_application
         I_ACC_NEG = lv_i_acc_neg
         I_LB_TSYST = lv_i_lb_tsyst
         I_SKIP_PROD = lv_i_skip_prod
    IMPORTING
         E_UNACTUAL_SUM = lv_e_unactual_sum
    TABLES
         T_ROIJRD = lt_t_roijrd
         T_OIJTHPUTFCAVG = lt_t_oijthputfcavg
         T_OIJRDHTPSET_TAB = lt_t_oijrdhtpset_tab
         T_OIJTHPUTFCEST = lt_t_oijthputfcest
         T_OIJRDNOMV = lt_t_oijrdnomv
         T_OIJX = lt_t_oijx
         T_ROIJRDNOMV_ALL_TAB = lt_t_roijrdnomv_all_tab
         T_OIJBRDRB_TAB = lt_t_oijbrdrb_tab
         T_OIJBRDIB_TAB = lt_t_oijbrdib_tab
         T_OIJ_SIM_SCHED_RD_TAB = lt_t_oij_sim_sched_rd_tab
         T_OIJ_REPORT_QUAN_TAB = lt_t_oij_report_quan_tab
         T_OIJTHPUTFC = lt_t_oijthputfc
    EXCEPTIONS
        REPDAT_LESS_THAN_RD_DATE_RANGE = 1
        REPDAT_GRTR_THAN_RD_DATE_RANGE = 2
        REPDAT_RD_DATE_RANGE_ERROR = 3
        FM_ERROR = 4
        OIJX_NOT_MAINTAINED = 5
. " OIJU_RD_INVENTORY_CALC_FUTURE




ABAP code using 7.40 inline data declarations to call FM OIJU_RD_INVENTORY_CALC_FUTURE

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 MININV FROM OIJBRDH INTO @DATA(ld_e_unactual_sum).
 
 
 
 
 
 
 
 
 
DATA(ld_i_acc_neg) = 'X'.
 
 
 
"SELECT single TSYST FROM OIJTS INTO @DATA(ld_i_lb_tsyst).
 
 
 
 
 
 
 
 
 


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!