SAP OIJ_TIME_CONSTRAINTS_ALV Function Module for OIL-TSW: Call time dependent constraints ALV
OIJ_TIME_CONSTRAINTS_ALV is a standard oij time constraints alv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OIL-TSW: Call time dependent constraints ALV 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 time constraints alv FM, simply by entering the name OIJ_TIME_CONSTRAINTS_ALV into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIJC
Program Name: SAPLOIJC
Main Program: SAPLOIJC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIJ_TIME_CONSTRAINTS_ALV 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_TIME_CONSTRAINTS_ALV'"OIL-TSW: Call time dependent constraints ALV.
EXPORTING
* I_RDCONV = "OIL-TSW: Rundown conversion factor
* I_MODE = "Display/Change Mode (A or V)
* I_START_DATE = "Field of type DATS
* I_END_DATE = "Field of type DATS
CHANGING
X_LOCMAT = "OIL-TSW: Location Rundown/Planning material table
* X_TCON_TAB = "OIL TSW table type for OIJ_LMTIMECON (time dep. constraints)
TABLES
T_ALVOUT_TAB = "TSW ALV output struc. for time dependent planning constraint
IMPORTING Parameters details for OIJ_TIME_CONSTRAINTS_ALV
I_RDCONV - OIL-TSW: Rundown conversion factor
Data type: FOptional: Yes
Call by Reference: Yes
I_MODE - Display/Change Mode (A or V)
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_START_DATE - Field of type DATS
Data type: DATSOptional: Yes
Call by Reference: Yes
I_END_DATE - Field of type DATS
Data type: DATSOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for OIJ_TIME_CONSTRAINTS_ALV
X_LOCMAT - OIL-TSW: Location Rundown/Planning material table
Data type: OIJLOCMATOptional: No
Call by Reference: No ( called with pass by value option)
X_TCON_TAB - OIL TSW table type for OIJ_LMTIMECON (time dep. constraints)
Data type: OIJ_LMTIMECON_TTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OIJ_TIME_CONSTRAINTS_ALV
T_ALVOUT_TAB - TSW ALV output struc. for time dependent planning constraint
Data type: ROIJTCONS_OUTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIJ_TIME_CONSTRAINTS_ALV 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_rdconv | TYPE F, " | |||
| lv_x_locmat | TYPE OIJLOCMAT, " | |||
| lt_t_alvout_tab | TYPE STANDARD TABLE OF ROIJTCONS_OUT, " | |||
| lv_i_mode | TYPE C, " | |||
| lv_x_tcon_tab | TYPE OIJ_LMTIMECON_TT, " | |||
| lv_i_start_date | TYPE DATS, " | |||
| lv_i_end_date | TYPE DATS. " |
|   CALL FUNCTION 'OIJ_TIME_CONSTRAINTS_ALV' "OIL-TSW: Call time dependent constraints ALV |
| EXPORTING | ||
| I_RDCONV | = lv_i_rdconv | |
| I_MODE | = lv_i_mode | |
| I_START_DATE | = lv_i_start_date | |
| I_END_DATE | = lv_i_end_date | |
| CHANGING | ||
| X_LOCMAT | = lv_x_locmat | |
| X_TCON_TAB | = lv_x_tcon_tab | |
| TABLES | ||
| T_ALVOUT_TAB | = lt_t_altout_tab | |
| . " OIJ_TIME_CONSTRAINTS_ALV | ||
ABAP code using 7.40 inline data declarations to call FM OIJ_TIME_CONSTRAINTS_ALV
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