SAP FKJO_SCHEDULE_PROC Function Module for









FKJO_SCHEDULE_PROC is a standard fkjo schedule proc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fkjo schedule proc FM, simply by entering the name FKJO_SCHEDULE_PROC into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKJOCNTR
Program Name: SAPLFKJOCNTR
Main Program: SAPLFKJOCNTR
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FKJO_SCHEDULE_PROC 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 'FKJO_SCHEDULE_PROC'"
EXPORTING
* I_STARTDATE = "Start time
* I_STARTTIME = "Start time
* IX_START_IMM = ' ' "Indicator: Start immediately
* I_AKTYP = "
I_JTYPE = "Type of Job
I_LAUFD = "Run Date
I_LAUFI = "Run ID
* I_PLANNED_STATE = ' ' "
* I_START_DELAY = 120 "

TABLES
T_FKKDIJOB = "

EXCEPTIONS
FOREIGN_LOCK = 1 WRONG_CALL = 10 SCHEDULE_FAILURE = 2 COPY_FAILURE = 3 TEMPLATE_NOT_FOUND = 4 PARAMETERS_NOT_FOUND = 5 PARAMETERS_ALREADY_EXIST = 6 NO_FB = 7 START_IN_PAST = 8 FAILURE = 9
.



IMPORTING Parameters details for FKJO_SCHEDULE_PROC

I_STARTDATE - Start time

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

I_STARTTIME - Start time

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

IX_START_IMM - Indicator: Start immediately

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AKTYP -

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

I_JTYPE - Type of Job

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

I_LAUFD - Run Date

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

I_LAUFI - Run ID

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

I_PLANNED_STATE -

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

I_START_DELAY -

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

TABLES Parameters details for FKJO_SCHEDULE_PROC

T_FKKDIJOB -

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

EXCEPTIONS details

FOREIGN_LOCK -

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

WRONG_CALL - Incorrect Call

Data type:
Optional: No
Call by Reference: Yes

SCHEDULE_FAILURE -

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

COPY_FAILURE -

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

TEMPLATE_NOT_FOUND -

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

PARAMETERS_NOT_FOUND -

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

PARAMETERS_ALREADY_EXIST -

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

NO_FB -

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

START_IN_PAST -

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

FAILURE - General Error

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

Copy and paste ABAP code example for FKJO_SCHEDULE_PROC 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:
lt_t_fkkdijob  TYPE STANDARD TABLE OF FKKDIJOB, "   
lv_i_startdate  TYPE SY-DATUM, "   
lv_foreign_lock  TYPE SY, "   
lv_wrong_call  TYPE SY, "   
lv_i_starttime  TYPE SY-UZEIT, "   
lv_schedule_failure  TYPE SY, "   
lv_copy_failure  TYPE SY, "   
lv_ix_start_imm  TYPE BOOLE-BOOLE, "   SPACE
lv_i_aktyp  TYPE AKTYP_KK, "   
lv_template_not_found  TYPE AKTYP_KK, "   
lv_i_jtype  TYPE JTYPE_KK, "   
lv_parameters_not_found  TYPE JTYPE_KK, "   
lv_i_laufd  TYPE LAUFD_KK, "   
lv_parameters_already_exist  TYPE LAUFD_KK, "   
lv_no_fb  TYPE LAUFD_KK, "   
lv_i_laufi  TYPE LAUFI_KK, "   
lv_start_in_past  TYPE LAUFI_KK, "   
lv_i_planned_state  TYPE CHAR1, "   SPACE
lv_failure  TYPE CHAR1, "   
lv_i_start_delay  TYPE I. "   120

  CALL FUNCTION 'FKJO_SCHEDULE_PROC'  "
    EXPORTING
         I_STARTDATE = lv_i_startdate
         I_STARTTIME = lv_i_starttime
         IX_START_IMM = lv_ix_start_imm
         I_AKTYP = lv_i_aktyp
         I_JTYPE = lv_i_jtype
         I_LAUFD = lv_i_laufd
         I_LAUFI = lv_i_laufi
         I_PLANNED_STATE = lv_i_planned_state
         I_START_DELAY = lv_i_start_delay
    TABLES
         T_FKKDIJOB = lt_t_fkkdijob
    EXCEPTIONS
        FOREIGN_LOCK = 1
        WRONG_CALL = 10
        SCHEDULE_FAILURE = 2
        COPY_FAILURE = 3
        TEMPLATE_NOT_FOUND = 4
        PARAMETERS_NOT_FOUND = 5
        PARAMETERS_ALREADY_EXIST = 6
        NO_FB = 7
        START_IN_PAST = 8
        FAILURE = 9
. " FKJO_SCHEDULE_PROC




ABAP code using 7.40 inline data declarations to call FM FKJO_SCHEDULE_PROC

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 DATUM FROM SY INTO @DATA(ld_i_startdate).
 
 
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_i_starttime).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_start_imm).
DATA(ld_ix_start_imm) = ' '.
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_planned_state) = ' '.
 
 
DATA(ld_i_start_delay) = 120.
 


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!