ROIJSSC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Calculation of safety stock for a location/material combination...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter ROIJSSC into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
O4TM - OIL-TSW: Safety stock calc. engine
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: G_TSTRUN = Test Run
Selection Text: G_TGTRUN = Target stock calculation
Selection Text: G_SFTRUN = Safety stock calculation
Selection Text: G_PMATNR = Material
Selection Text: G_LOCID = Location
Title: TSW: Safety / Target Stock Calculation
Text Symbol: 051 = Target stock calculation below could be wrong
Text Symbol: 045 = Unknown error in OIJP_DETERMINE_TGTSTK_ROUTINE
Text Symbol: 044 = Target stock routine is not defined
Text Symbol: 043 = Target stock routine type is not defined
Text Symbol: 039 = Target stock calculation starts for:
Text Symbol: 035 = Target stock calculated and updated successfully
Text Symbol: 031 = Calculated target stock:
Text Symbol: 030 = Target stock routine used:
Text Symbol: 022 = Calculated safety / target stock could be wrong
Text Symbol: 021 = Safety stock calculation below could be wrong
Text Symbol: 020 = System failure while unlocking SPW objects
Text Symbol: 019 = System failure while locking SPW object
Text Symbol: 018 = Foreign lock of a selected SPW object
Text Symbol: 017 = by user
Text Symbol: 016 = C A U T I O N
Text Symbol: 015 = Unknown error in OIJP_DETERMINE_SFTSTK_ROUTINE
Text Symbol: 014 = Safety stock routine is not defined
Text Symbol: 013 = Safety stock routine type is not defined
Text Symbol: 012 = Update error in table OIJLOCMAT
Text Symbol: 011 = Calculated safety stock:
Text Symbol: 010 = Safety stock routine used:
Text Symbol: 009 = Safety stock calculation starts for:
Text Symbol: 007 = Material
Text Symbol: 006 = Location
Text Symbol: 005 = Safety stock calculated and updated successfully
Text Symbol: 004 = Select calculation
Text Symbol: 003 = No entry found
Text Symbol: 002 = Processing options
Text Symbol: 001 = Planning objects
INCLUDE OIJRAUDD.
INCLUDE OIJRAUTH.
No SAP DATABASE tables are accessed within this REPORT code!
OIJP_DETERMINE_SFTSTK_ROUTINE CALL FUNCTION 'OIJP_DETERMINE_SFTSTK_ROUTINE' EXPORTING i_sfttype = g_oijlocmat_wa-sfttype IMPORTING e_routine = g_routine TABLES i_oijsftyp_table = g_oijsftyp_tab EXCEPTIONS parameter_error = 1 no_planning_routine = 2 OTHERS = 3.
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = sy-msgid msgnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 IMPORTING ***************Start of Commenting by C5056321 on 24/12/2004************ * message_text_output = l_error_output ***************End of Commenting by C5056321 on 24/12/2004************ ***************Start of Coding by C5056321 on 24/12/2004************ message_text_output = lv_error ***************End of Coding by C5056321 on 24/12/2004************ EXCEPTIONS OTHERS = 1.
OIJP_DETERMINE_TGTSTK_ROUTINE CALL FUNCTION 'OIJP_DETERMINE_TGTSTK_ROUTINE' EXPORTING i_tgttype = g_oijlocmat_wa-tgttype IMPORTING e_routine = g_routine TABLES i_oijtgtyp_table = g_oijtgtyp_tab EXCEPTIONS parameter_error = 1 no_planning_routine = 2 OTHERS = 3.
OIJU_READ_OIJRDH * CALL FUNCTION 'OIJU_READ_OIJRDH' * EXPORTING * I_LOCID = G_OIJLOCMAT_WA-LOCID * I_TSYST = '' * I_MATNR = G_OIJLOCMAT_WA-PMATNR * IMPORTING * T_OIJRDH = T_OIJRDH * EXCEPTIONS * INPUT_MISSING = 1 * NO_ENTRY_FOUND = 2 * OTHERS = 3.
OIJU_READ_RDHEAD CALL FUNCTION 'OIJU_READ_RDHEAD' EXPORTING i_locid = g_oijlocmat_wa-locid i_tsyst = '' i_matnr = g_oijlocmat_wa-pmatnr i_sptype = 'BASIC' IMPORTING t_oij_rdhead = t_oijrdhead EXCEPTIONS locid_and_tsyst_initial = 0 material_initial = 0 sptype_initial = 0 no_entry_found = 0 OTHERS = 0.
OIJU_READ_RUNDOWN_TABLE * CALL FUNCTION 'OIJU_READ_RUNDOWN_TABLE' "HP R/3E * EXPORTING * I_LOCID = G_OIJLOCMAT_WA-LOCID * I_TSYST = '' * I_MATNR = G_OIJLOCMAT_WA-PMATNR * I_START_DATE = L_RD_START_DATE * I_END_DATE = L_RD_END_DATE * TABLES * T_OIJRD_TAB = T_OIJRD_TAB * EXCEPTIONS * NO_ENTRIES_FOUND = 1 * DB_ACCESS_ERROR = 2 * OTHERS = 3. "HP R/3E
OIJU_READ_BATCH_RUNDOWN_TABLE CALL FUNCTION 'OIJU_READ_BATCH_RUNDOWN_TABLE' EXPORTING i_locid = g_oijlocmat_wa-locid i_tsyst = '' i_matnr = g_oijlocmat_wa-pmatnr i_charg = space i_start_date = l_rd_start_date i_end_date = l_rd_end_date TABLES t_oijbrd_tab = t_oijbrd_tab EXCEPTIONS no_entries_found = 1 db_access_error = 2 OTHERS = 3. "HP R/3E
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = sy-msgid msgnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 IMPORTING ***************Start of Commenting by C5056321 on 24/12/2004************ * message_text_output = l_error_output ***************End of Commenting by C5056321 on 24/12/2004************ ***************Start of Coding by C5056321 on 24/12/2004************ message_text_output = lv_error ***************End of Coding by C5056321 on 24/12/2004************ EXCEPTIONS OTHERS = 1.
ENQUEUE_E_OIJLOCMT CALL FUNCTION 'ENQUEUE_E_OIJLOCMT' EXPORTING locid = l_oijlocmat_wa-locid pmatnr = l_oijlocmat_wa-pmatnr EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
DEQUEUE_E_OIJLOCMT CALL FUNCTION 'DEQUEUE_E_OIJLOCMT' EXPORTING locid = l_oijlocmat_wa-locid pmatnr = l_oijlocmat_wa-pmatnr EXCEPTIONS OTHERS = 1.
OIJP_GET_SFTSTK_DATA CALL FUNCTION 'OIJP_GET_SFTSTK_DATA' TABLES i_oijlocmat_tab = g_oijlocmat_tab t_oijcov_tab = g_oijcov_tab t_oijscal_tab = g_oijscal_tab t_tfacd_tab = g_tfacd_tab t_oijsftyp_tab = g_oijsftyp_tab EXCEPTIONS OTHERS = 1.
OIJP_GET_TGTSTK_DATA CALL FUNCTION 'OIJP_GET_TGTSTK_DATA' TABLES i_oijlocmat_tab = g_oijlocmat_tab t_oijtgtcov_tab = g_oijtgtcov_tab t_oijtcal_tab = g_oijtcal_tab t_tfacd_tab = g_tfacd_tab t_oijtgtyp_tab = g_oijtgtyp_tab EXCEPTIONS OTHERS = 1.
OIJC_GET_TIMEDPT_TGT_SFT_STOCK CALL FUNCTION 'OIJC_GET_TIMEDPT_TGT_SFT_STOCK' EXPORTING i_locmat = l_oijlocmat_tab i_fromdate = l_start_date i_todate = l_end_date TABLES t_tgtsfttime_tab = t_tgtsft_tab EXCEPTIONS error_in_getting_tgt_sft_stock = 0 OTHERS = 0.
OIJ_GET_TIME_CONSTRAINTS CALL FUNCTION 'OIJ_GET_TIME_CONSTRAINTS' EXPORTING i_locmat = l_oijlocmat_tab i_ftmstm = i_ftmstm i_ttmstm = i_ttmstm TABLES t_tcon_outtab = t_timecon_tab CHANGING x_tcon_tab = t_tcon_tab EXCEPTIONS no_constraints_found = 0 OTHERS = 0.
OIJC_CAL_TIMEDPT_TGT_SFT_STOCK CALL FUNCTION 'OIJC_CAL_TIMEDPT_TGT_SFT_STOCK' EXPORTING i_start_date = l_start_date i_end_date = l_end_date * I_OIJX = L_OIJX i_oijlocmat = l_oijlocmat_tab TABLES t_tgtsfttime_tab = t_tgtsftcalc_outtab t_oijtcons_tab = t_timecon_tab t_oijconstype_tab = t_oij_cons_type t_tgtsft_tab = t_tgtsft_tab EXCEPTIONS error_in_timedpt_tgt_sft_calc = 0 err_oijc_modify_oij_tgtsfttime = 0 no_new_updates_or_inserts = 0 OTHERS = 0.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = iv_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = lc_x it_events = lt_events is_print = ls_print TABLES t_outtab = xt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = lc_structure CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_events.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
ROIJSSC - TSW: Safety / Target Stock Calculation ROIJSSC - TSW: Safety / Target Stock Calculation ROIJS435_LIS - IS-OIL TSW: Prepare LIS for S435 ROIJS435_LIS - IS-OIL TSW: Prepare LIS for S435 ROIJS435 - IS-OIL TSW : Updates the Genflag for the structure S435 ROIJS435 - IS-OIL TSW : Updates the Genflag for the structure S435