SAP EXIT_SAPLOIJU_002 Function Module for OIL-TSW: Customer exit for editing rundown plant SOP data









EXIT_SAPLOIJU_002 is a standard exit saploiju 002 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: Customer exit for editing rundown plant SOP data 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 exit saploiju 002 FM, simply by entering the name EXIT_SAPLOIJU_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLOIJU_002 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 'EXIT_SAPLOIJU_002'"OIL-TSW: Customer exit for editing rundown plant SOP data
EXPORTING
* I_TSYST = "OIL-TSW: Transport system
* I_LOCID = "OIL-TSW: Location ID
* I_REPDAT = "Date as determined by calling program

TABLES
T_S076 = "Sales & Operations Planning

EXCEPTIONS
UNRECOVERABLE_ERROR = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
CONVERSION_EXIT_RDALV_INPUT Conversion exit for quantity input (TSW)
CONVERSION_EXIT_RDALV_OUTPUT conv exit for to fix decimal output based on customising
OIJU_BRD_UPDATE_OBJ_ENTRIES OIL-TSW: Update all entries in rundown database for rundown objects
OIJU_CHECK_LOCATION_RD OIL-TSW: Check if a location is a rundownable object with 1 plant attached
OIJU_CHECK_TANK_RD Validate tank
OIJU_GET_ALL_REPORT_QUAN OIL-TSW: Get all reported quantities for a rundown
OIJU_GET_LOCS_PLANTS_FROM_PL OIL-TSW: Get locations/plants
OIJU_GET_RD_OBJECT_TYPE OIL-TSW: Get rundown object type
OIJU_GET_REPORT_QUAN OIL-TSW: Get reported quantities
OIJU_GET_UNACTUALIZED_PAST_DAY OIL-TSW: Rolled-up unactualized for days in past
OIJU_LB_UPDATE_OPENINV_TAB Update module for the opening inventory table of LB
OIJU_OIJBRDNOM_ARRAY_STORE Store array of OIJBRDNOM in global internal table
OIJU_OIJRDNOM_ARRAY_STORE Store array of OIJRDNOM in global internal table
OIJU_RD_ACC_NEG To handle the accumulate negatives functionality
OIJU_RD_AV_CONS OIL-TSW: Calculate average consumption per weekday
OIJU_RD_CALCULATE_PERIOD OIL TSW: Calculate SP Start and End dates depending on SP type
OIJU_RD_CALC_PAST_DAYS_INV Calculate past days inventory
OIJU_RD_CALC_UNCOMM OIL-TSW: Re-calculate rundown
OIJU_RD_CALL_USER_FILTER_S034 OIL-TSW: Make INVCO movement data available to user defined filter
OIJU_RD_CALL_USER_FILTER_S076 OIL-TSW: Make SOP planning data available to user defined filter process
OIJU_RD_DELETE_COMPLETE_OBJECT OIL-TSW: Delete RD object and all dependent entries
OIJU_RD_DIVIDE_BY_RDCONV OIL-TSW: Divide rundown items by conversion factor
OIJU_RD_ENGINE OIL-TSW : Execute Rundown Engine
OIJU_RD_FC_CAL_ICORR OIL-TSW: Rack issue calendar & profile filter to be applied on ICORR field
OIJU_RD_FILL_RACK_FCAST_DATA Fill rack forecast data
OIJU_RD_FILL_RUNDOWN_HEADER Fill rundown header
OIJU_RD_GET_BOOK OIL-TSW: Get SAP Book inventory for rundown object
OIJU_RD_GET_BTCH_VAL_FOR_LOCS Get batches or val types for a set of loactions
OIJU_RD_GET_DAY_LEVEL_PHYINV Get physical inventory fro each day in a date range
OIJU_RD_GET_FCCAL OIL-TSW: Get rack forecast factory calndar
OIJU_RD_GET_FCPRF OIL-TSW: Get rack forecast profile
OIJU_RD_GET_INVENTORY OIL-TSW: Get all available inventory figures for RD object
OIJU_RD_GET_LOC_TYPE_BUFFERED OIL-TSW: Get location type for location
OIJU_RD_GET_OIJRDNOM OIL-TSW: Read view content V_OIJRDNOM
OIJU_RD_GET_PHY_INV To get the physical inventory from OIJPHYINV
OIJU_RD_GET_START_PHYINV Get starting physical inventory for Stock Projection
OIJU_RD_INIT_RACK_SETTINGS Initialize rack settings for rundown
OIJU_RD_INVENTORY_CALC_FUTURE OIL-TSW: Calculate future planned/base inventory figures in rundown
OIJU_RD_LINE_CALC OIL-TSW: Re-calculate rundown
OIJU_RD_LINE_CALC_INVENTORY OIL-TSW: Calculate the rundown inventory by date
OIJU_RD_MODIFY_PHY_INV To insert / update physical inventory in OIJPHYINV
OIJU_RD_OUTPUT Gives the (projected) inventory for a time period
OIJU_RD_PHYINV_UPDATE To Update the physical inventory in the Phy Inv/ RD tables
OIJU_RD_RESTORE_HEEL To restore( add) the heel quantity back to RD inventories
OIJU_RD_RVP_CALC RVP Calculation
OIJU_RD_SELECT_SPTYPE Select/Change Stock Projection type
OIJU_RD_SUBTRACT_HEEL To subtract the heel quantities from the RD inventories
OIJU_RD_SUM_REPORTED OIL-TSW: Loop over reported quantities for rundown
OIJU_RD_SUM_WHATIF Sum up the what-if's
OIJU_RD_UNACC_NEG To handle the unaccumulate negatives functionality
OIJU_RD_UPDATE_OBJ_ENTRIES OIL-TSW: Update all entries in rundown database for rundown objects
OIJU_RD_WHIF_CALC OIL-TSW: Consider what-if's in rundown calculation
OIJU_READ_BATCH_RUNDOWN_LINE OIL-TSW: Read rundown line item from database
OIJU_READ_BATCH_RUNDOWN_TABLE Read rundown table for selected date window
OIJU_READ_OIJBRDACTUALS Read actualization data for SPW object
OIJU_READ_OIJBRDNOM Read OIJBRDNOM / buffered
OIJU_READ_OIJBRDNOM_ARRAY_NOMT Read OIJBRDNOM / buffered
OIJU_READ_OIJLOCMAT OIL-TSW: Read table workarea OIJLOCMAT from database
OIJU_READ_OIJRDIB Read Issues from OIJRDNOM
OIJU_READ_OIJRDIB_ARRAY_NOMTK Read OIJRDIB from DB for range of Noms / buffered
OIJU_READ_OIJRDNOM Read OIJRDNOM / buffered
OIJU_READ_OIJRDNOM_ARRAY_NOMTK Read OIJRDNOM for an array of nominations / buffered
OIJU_READ_OIJRDRB Read Receipts from OIJRDNOM
OIJU_READ_OIJRDRB_ARRAY_NOMTK Read OIJRDRB from DB for range of Noms / buffered
OIJU_READ_RDHEAD OIL-TSW: Read Rundown header
OIJU_READ_RDHEAD_ARRAY OIL-TSW: Read Rundown header
OIJU_READ_RUNDOWN_LINE OIL-TSW: Read rundown line item from database
OIJU_READ_RUNDOWN_TABLE OIL-TSW: Read rundown table for selected date window
OIJU_REPORT_INTO_INVENTORY OIL-TSW: Report into Inventory
OIJU_REPORT_INVENTORY_INIT OIL-TSW: Initialization module for reporting qty
OIJU_REPORT_MULT_NOMI OIL-TSW: Select nomination item
OIJU_SAVE_EST_RACK_FC To Update rack forecast estimates
OIJU_SAVE_RACK_FC_DATA To Update rack forecast estimates
OIJU_SET_REPORT_QTY OIL-TSW: Set the reported qties in FG OIJU
OIJU_SITYP_PM_CONVERSION OIL-TSW: Convert SITYP, PSX to +/-
OIJU_UPDATE_INSERT_OIJBRD Update or insert lines in batch Stock Projection DB table
OIJU_UPDATE_INSERT_OIJRD Update or insert lines in Stock Projection DB table
OIJU_UPDATE_OIJRDHEAD OIL-TSW: Modify rundown header on database
OIJU_UPDATE_REPORT_QUAN OIL-TSW: Update reported quantities
OIJU_VALIDATE_BATCH IS-OIL TSW: Check Batch

IMPORTING Parameters details for EXIT_SAPLOIJU_002

I_TSYST - OIL-TSW: Transport system

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

I_LOCID - OIL-TSW: Location ID

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

I_REPDAT - Date as determined by calling program

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

TABLES Parameters details for EXIT_SAPLOIJU_002

T_S076 - Sales & Operations Planning

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

EXCEPTIONS details

UNRECOVERABLE_ERROR - Unrecoverable errors

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

Copy and paste ABAP code example for EXIT_SAPLOIJU_002 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_s076  TYPE STANDARD TABLE OF S076, "   
lv_i_tsyst  TYPE OIJTS-TSYST, "   
lv_unrecoverable_error  TYPE OIJTS, "   
lv_i_locid  TYPE OIJLOC-LOCID, "   
lv_i_repdat  TYPE OIJRDH-REPDAT. "   

  CALL FUNCTION 'EXIT_SAPLOIJU_002'  "OIL-TSW: Customer exit for editing rundown plant SOP data
    EXPORTING
         I_TSYST = lv_i_tsyst
         I_LOCID = lv_i_locid
         I_REPDAT = lv_i_repdat
    TABLES
         T_S076 = lt_t_s076
    EXCEPTIONS
        UNRECOVERABLE_ERROR = 1
. " EXIT_SAPLOIJU_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLOIJU_002

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 TSYST FROM OIJTS INTO @DATA(ld_i_tsyst).
 
 
"SELECT single LOCID FROM OIJLOC INTO @DATA(ld_i_locid).
 
"SELECT single REPDAT FROM OIJRDH INTO @DATA(ld_i_repdat).
 


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!