ROIJLB_CPSCHEDS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter ROIJLB_CPSCHEDS into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
O4TLB_CP - Loc Bal copy schedules
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: P_DAY = days
Selection Text: P_FMDAT = From Date
Selection Text: P_MTH = months
Selection Text: P_RBD = Increase by days
Selection Text: P_RBM = Increase by month
Selection Text: P_TODAT = To Date
Selection Text: SO_LOCID = D .
Selection Text: SO_MATNR = D .
Title: Copy location balancing schedules
Text Symbol: 001 = Location Balancing objects selection
Text Symbol: 002 = Increase by days
Text Symbol: 003 = Increase by months
Text Symbol: 004 = Location Balancing Schedules copied successfully
Text Symbol: 005 = Location Balancing Schedules copy failed
Text Symbol: 006 = No schedules to copy for the selection
Text Symbol: 007 = Number of Days
Text Symbol: 008 = Number of Months
INCLUDE OIJ_CONSTANTS .
No SAP DATABASE tables are accessed within this REPORT code!
OIJ_LB_COPY_SCHEDS CALL FUNCTION 'OIJ_LB_COPY_SCHEDS' EXPORTING IT_SIM_TYPE_RTAB = LT_SIM_SCHED_RTAB[] IT_LOCID_R = LT_LOCID_R[] IT_MATNR_R = LT_MATNR_R[] IV_FR_DATE = P_FMDAT IV_TO_DATE = P_TODAT IV_DURATION = LV_DURATION IV_TIME_UOM = LV_TIME_UOM IMPORTING EV_RETURN = LV_RET EXCEPTIONS NO_SCHEDS_FOUND = 1 OTHERS = 2.
OIJU_CHECK_LOCATION_RD CALL FUNCTION 'OIJU_CHECK_LOCATION_RD' EXPORTING I_LOCID = SO_LOCID-LOW IMPORTING T_LOCDATA = LS_OIJLOC E_WERK = LV_PLANT E_LGORT = LV_LGORT EXCEPTIONS INPUT_NOT_VALID = 01 LOCATION_NOT_FOUND = 02 NO_PLANT = 03.
OIJU_CHECK_LOCATION_RD CALL FUNCTION 'OIJU_CHECK_LOCATION_RD' EXPORTING I_LOCID = SO_LOCID-HIGH IMPORTING T_LOCDATA = LS_OIJLOC E_WERK = LV_PLANT E_LGORT = LV_LGORT EXCEPTIONS INPUT_NOT_VALID = 01 LOCATION_NOT_FOUND = 02 NO_PLANT = 03.
MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 MATNR = IV_MATNR * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * OUTPUT_NO_MESSAGE = IMPORTING WMARA = LS_MARA EXCEPTIONS LOCK_ON_MATERIAL = 1 LOCK_SYSTEM_ERROR = 2 WRONG_CALL = 3 NOT_FOUND = 4 OTHERS = 5 .
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.