SAP OIJ_GET_TIME_CONSTRAINTS Function Module for Select time dependent planning constraints from DB









OIJ_GET_TIME_CONSTRAINTS is a standard oij get time constraints SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select time dependent planning constraints from DB 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 get time constraints FM, simply by entering the name OIJ_GET_TIME_CONSTRAINTS into the relevant SAP transaction such as SE37 or SE38.

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



Function OIJ_GET_TIME_CONSTRAINTS 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_GET_TIME_CONSTRAINTS'"Select time dependent planning constraints from DB
EXPORTING
* I_LOCMAT = "OIL-TSW: Location Rundown/Planning material table
* I_LOCMAT_TAB = "OIL TSW table type for OIJLOCMAT
* I_FTMSTM = "Time stamp field with 14 digits and NUMC data type
* I_TTMSTM = "To/end timestamp (BDRP)

CHANGING
X_TCON_TAB = "OIL TSW table type for OIJ_LMTIMECON (time dep. constraints)

TABLES
* T_TCON_OUTTAB = "TSW ALV output struc. for time dependent planning constraint

EXCEPTIONS
NO_CONSTRAINTS_FOUND = 1
.



IMPORTING Parameters details for OIJ_GET_TIME_CONSTRAINTS

I_LOCMAT - OIL-TSW: Location Rundown/Planning material table

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

I_LOCMAT_TAB - OIL TSW table type for OIJLOCMAT

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

I_FTMSTM - Time stamp field with 14 digits and NUMC data type

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

I_TTMSTM - To/end timestamp (BDRP)

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

CHANGING Parameters details for OIJ_GET_TIME_CONSTRAINTS

X_TCON_TAB - OIL TSW table type for OIJ_LMTIMECON (time dep. constraints)

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

TABLES Parameters details for OIJ_GET_TIME_CONSTRAINTS

T_TCON_OUTTAB - TSW ALV output struc. for time dependent planning constraint

Data type: ROIJTCONS_OUT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_CONSTRAINTS_FOUND - No time dependent constraints were found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIJ_GET_TIME_CONSTRAINTS 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_i_locmat  TYPE OIJLOCMAT, "   
lv_x_tcon_tab  TYPE OIJ_LMTIMECON_TT, "   
lt_t_tcon_outtab  TYPE STANDARD TABLE OF ROIJTCONS_OUT, "   
lv_no_constraints_found  TYPE ROIJTCONS_OUT, "   
lv_i_locmat_tab  TYPE OIJLOCMAT_T, "   
lv_i_ftmstm  TYPE OII_FTMSTM, "   
lv_i_ttmstm  TYPE OII_TTMSTM. "   

  CALL FUNCTION 'OIJ_GET_TIME_CONSTRAINTS'  "Select time dependent planning constraints from DB
    EXPORTING
         I_LOCMAT = lv_i_locmat
         I_LOCMAT_TAB = lv_i_locmat_tab
         I_FTMSTM = lv_i_ftmstm
         I_TTMSTM = lv_i_ttmstm
    CHANGING
         X_TCON_TAB = lv_x_tcon_tab
    TABLES
         T_TCON_OUTTAB = lt_t_tcon_outtab
    EXCEPTIONS
        NO_CONSTRAINTS_FOUND = 1
. " OIJ_GET_TIME_CONSTRAINTS




ABAP code using 7.40 inline data declarations to call FM OIJ_GET_TIME_CONSTRAINTS

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!