SAP OIK37_CHECK_TIME_AG_TIME_FRAME Function Module for Check times against time frames within oik37









OIK37_CHECK_TIME_AG_TIME_FRAME is a standard oik37 check time ag time frame SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check times against time frames within oik37 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 oik37 check time ag time frame FM, simply by entering the name OIK37_CHECK_TIME_AG_TIME_FRAME into the relevant SAP transaction such as SE37 or SE38.

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



Function OIK37_CHECK_TIME_AG_TIME_FRAME 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 'OIK37_CHECK_TIME_AG_TIME_FRAME'"Check times against time frames within oik37
EXPORTING
I_VBELN = "
* I_POSNR = 000000 "
I_VBTYP = "
I_APPLIC = "
* I_FROM_DATE = "
* I_TO_DATE = "
* I_FROM_TIME = "
* I_TO_TIME = "

IMPORTING
E_TIME_VALID = "

TABLES
T_TIME_FRAMES = "
T_CLOSEST_TIME_FRAMES = "

EXCEPTIONS
NO_TIME_FRAME = 1 WRONG_TIMES = 2
.



IMPORTING Parameters details for OIK37_CHECK_TIME_AG_TIME_FRAME

I_VBELN -

Data type: OIK37-VBELN
Optional: No
Call by Reference: No ( called with pass by value option)

I_POSNR -

Data type: OIK37-POSNR
Default: 000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VBTYP -

Data type: OIK37-VBTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_APPLIC -

Data type: OIK37-APPLIC
Optional: No
Call by Reference: No ( called with pass by value option)

I_FROM_DATE -

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

I_TO_DATE -

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

I_FROM_TIME -

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

I_TO_TIME -

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

EXPORTING Parameters details for OIK37_CHECK_TIME_AG_TIME_FRAME

E_TIME_VALID -

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

TABLES Parameters details for OIK37_CHECK_TIME_AG_TIME_FRAME

T_TIME_FRAMES -

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

T_CLOSEST_TIME_FRAMES -

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

EXCEPTIONS details

NO_TIME_FRAME -

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

WRONG_TIMES -

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

Copy and paste ABAP code example for OIK37_CHECK_TIME_AG_TIME_FRAME 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_vbeln  TYPE OIK37-VBELN, "   
lv_e_time_valid  TYPE OIK37, "   
lv_no_time_frame  TYPE OIK37, "   
lt_t_time_frames  TYPE STANDARD TABLE OF OIK37, "   
lv_i_posnr  TYPE OIK37-POSNR, "   000000
lv_wrong_times  TYPE OIK37, "   
lt_t_closest_time_frames  TYPE STANDARD TABLE OF OIK37, "   
lv_i_vbtyp  TYPE OIK37-VBTYP, "   
lv_i_applic  TYPE OIK37-APPLIC, "   
lv_i_from_date  TYPE ROIKTFD-TF_DATE, "   
lv_i_to_date  TYPE ROIKTFD-TF_DATE, "   
lv_i_from_time  TYPE ROIKTFD-FROMTIME, "   
lv_i_to_time  TYPE ROIKTFD-TOTIME. "   

  CALL FUNCTION 'OIK37_CHECK_TIME_AG_TIME_FRAME'  "Check times against time frames within oik37
    EXPORTING
         I_VBELN = lv_i_vbeln
         I_POSNR = lv_i_posnr
         I_VBTYP = lv_i_vbtyp
         I_APPLIC = lv_i_applic
         I_FROM_DATE = lv_i_from_date
         I_TO_DATE = lv_i_to_date
         I_FROM_TIME = lv_i_from_time
         I_TO_TIME = lv_i_to_time
    IMPORTING
         E_TIME_VALID = lv_e_time_valid
    TABLES
         T_TIME_FRAMES = lt_t_time_frames
         T_CLOSEST_TIME_FRAMES = lt_t_closest_time_frames
    EXCEPTIONS
        NO_TIME_FRAME = 1
        WRONG_TIMES = 2
. " OIK37_CHECK_TIME_AG_TIME_FRAME




ABAP code using 7.40 inline data declarations to call FM OIK37_CHECK_TIME_AG_TIME_FRAME

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.

"SELECT single VBELN FROM OIK37 INTO @DATA(ld_i_vbeln).
 
 
 
 
"SELECT single POSNR FROM OIK37 INTO @DATA(ld_i_posnr).
DATA(ld_i_posnr) = 000000.
 
 
 
"SELECT single VBTYP FROM OIK37 INTO @DATA(ld_i_vbtyp).
 
"SELECT single APPLIC FROM OIK37 INTO @DATA(ld_i_applic).
 
"SELECT single TF_DATE FROM ROIKTFD INTO @DATA(ld_i_from_date).
 
"SELECT single TF_DATE FROM ROIKTFD INTO @DATA(ld_i_to_date).
 
"SELECT single FROMTIME FROM ROIKTFD INTO @DATA(ld_i_from_time).
 
"SELECT single TOTIME FROM ROIKTFD INTO @DATA(ld_i_to_time).
 


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!