SAP OIJ_LB_COPY_SCHEDS Function Module for Location Balancing copy schedules









OIJ_LB_COPY_SCHEDS is a standard oij lb copy scheds SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Location Balancing copy schedules 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 oij lb copy scheds FM, simply by entering the name OIJ_LB_COPY_SCHEDS into the relevant SAP transaction such as SE37 or SE38.

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



Function OIJ_LB_COPY_SCHEDS 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 'OIJ_LB_COPY_SCHEDS'"Location Balancing copy schedules
EXPORTING
IT_SIM_TYPE_RTAB = "range table for OIJ_sim_sched_typ
IT_LOCID_R = "Ranges Table Selection LOCID
IT_MATNR_R = "Ranges Table Selection MATNR
IV_FR_DATE = "Date
IV_TO_DATE = "Date
IV_DURATION = "Field of type FLTP
IV_TIME_UOM = "Unit of measurement

IMPORTING
EV_RETURN = "boolean variable (X=true, -=false, space=unknown)

EXCEPTIONS
NO_SCHEDS_FOUND = 1
.




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_SAPLOIJ_LB_GUI_001 PBO Processing of item
EXIT_SAPLOIJ_LB_GUI_002 PAI processing of Item Details
EXIT_SAPLOIJ_LB_GUI_003 Location Balancing: User Exit for Save

IMPORTING Parameters details for OIJ_LB_COPY_SCHEDS

IT_SIM_TYPE_RTAB - range table for OIJ_sim_sched_typ

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

IT_LOCID_R - Ranges Table Selection LOCID

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

IT_MATNR_R - Ranges Table Selection MATNR

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

IV_FR_DATE - Date

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

IV_TO_DATE - Date

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

IV_DURATION - Field of type FLTP

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

IV_TIME_UOM - Unit of measurement

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

EXPORTING Parameters details for OIJ_LB_COPY_SCHEDS

EV_RETURN - boolean variable (X=true, -=false, space=unknown)

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

EXCEPTIONS details

NO_SCHEDS_FOUND - Simulated Schedules not found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIJ_LB_COPY_SCHEDS 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:
lv_ev_return  TYPE BOOLEAN, "   
lv_no_scheds_found  TYPE BOOLEAN, "   
lv_it_sim_type_rtab  TYPE ROIJ_SIMTYP_RTAB, "   
lv_it_locid_r  TYPE ROIJ_LOCID_RTAB, "   
lv_it_matnr_r  TYPE ROIJ_MATNR_RTAB, "   
lv_iv_fr_date  TYPE DATUM, "   
lv_iv_to_date  TYPE DATUM, "   
lv_iv_duration  TYPE FLOAT, "   
lv_iv_time_uom  TYPE MSEHI. "   

  CALL FUNCTION 'OIJ_LB_COPY_SCHEDS'  "Location Balancing copy schedules
    EXPORTING
         IT_SIM_TYPE_RTAB = lv_it_sim_type_rtab
         IT_LOCID_R = lv_it_locid_r
         IT_MATNR_R = lv_it_matnr_r
         IV_FR_DATE = lv_iv_fr_date
         IV_TO_DATE = lv_iv_to_date
         IV_DURATION = lv_iv_duration
         IV_TIME_UOM = lv_iv_time_uom
    IMPORTING
         EV_RETURN = lv_ev_return
    EXCEPTIONS
        NO_SCHEDS_FOUND = 1
. " OIJ_LB_COPY_SCHEDS




ABAP code using 7.40 inline data declarations to call FM OIJ_LB_COPY_SCHEDS

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.

 
 
 
 
 
 
 
 
 


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!