SAP Reports / Programs | Trader's and Scheduler's Workbench | Industry Solution Oil | Trader's and Scheduler's Workbench(IS-OIL-DS-TSW) SAP IS

ROIJLB_CPSCHEDS SAP ABAP Report - Copy location balancing schedules







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

O4TLB_CP - Loc Bal copy schedules


ABAP code to call this SAP report using the submit statement

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.






SUBMIT ROIJLB_CPSCHEDS. "Basic submit
SUBMIT ROIJLB_CPSCHEDS AND RETURN. "Return to original report after report execution complete
SUBMIT ROIJLB_CPSCHEDS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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


INCLUDES used within this REPORT ROIJLB_CPSCHEDS

INCLUDE OIJ_CONSTANTS .


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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 .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name ROIJLB_CPSCHEDS or its description.