SAP FKJO_SAMPLE_1900 Function Module for Determine Parameters for FKJO_SCHEDULE (ST Job)









FKJO_SAMPLE_1900 is a standard fkjo sample 1900 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Parameters for FKJO_SCHEDULE (ST Job) 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 fkjo sample 1900 FM, simply by entering the name FKJO_SAMPLE_1900 into the relevant SAP transaction such as SE37 or SE38.

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



Function FKJO_SAMPLE_1900 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_SAMPLE_1900'"Determine Parameters for FKJO_SCHEDULE (ST Job)
EXPORTING
* I_JTYPE = 'ST' "Type of Job
* I_USERKEY = "User Key

IMPORTING
E_REPNAME = "
E_JOBNAME = "Job Name
E_VARNAME = "Name of variant
E_USRNAME = "

EXCEPTIONS
FAILURE = 1 CANCEL_PROCESSING = 2
.



IMPORTING Parameters details for FKJO_SAMPLE_1900

I_JTYPE - Type of Job

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

I_USERKEY - User Key

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

EXPORTING Parameters details for FKJO_SAMPLE_1900

E_REPNAME -

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

E_JOBNAME - Job Name

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

E_VARNAME - Name of variant

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

E_USRNAME -

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

EXCEPTIONS details

FAILURE -

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

CANCEL_PROCESSING - Cancel Processing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FKJO_SAMPLE_1900 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_failure  TYPE STRING, "   
lv_i_jtype  TYPE JTYPE_KK, "   'ST'
lv_e_repname  TYPE TBTCO-INTREPORT, "   
lv_e_jobname  TYPE TBTCO-JOBNAME, "   
lv_i_userkey  TYPE TFKDO_TYPT-JTYPEX, "   
lv_cancel_processing  TYPE TFKDO_TYPT, "   
lv_e_varname  TYPE RALDB-VARIANT, "   
lv_e_usrname  TYPE SY-UNAME. "   

  CALL FUNCTION 'FKJO_SAMPLE_1900'  "Determine Parameters for FKJO_SCHEDULE (ST Job)
    EXPORTING
         I_JTYPE = lv_i_jtype
         I_USERKEY = lv_i_userkey
    IMPORTING
         E_REPNAME = lv_e_repname
         E_JOBNAME = lv_e_jobname
         E_VARNAME = lv_e_varname
         E_USRNAME = lv_e_usrname
    EXCEPTIONS
        FAILURE = 1
        CANCEL_PROCESSING = 2
. " FKJO_SAMPLE_1900




ABAP code using 7.40 inline data declarations to call FM FKJO_SAMPLE_1900

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.

 
DATA(ld_i_jtype) = 'ST'.
 
"SELECT single INTREPORT FROM TBTCO INTO @DATA(ld_e_repname).
 
"SELECT single JOBNAME FROM TBTCO INTO @DATA(ld_e_jobname).
 
"SELECT single JTYPEX FROM TFKDO_TYPT INTO @DATA(ld_i_userkey).
 
 
"SELECT single VARIANT FROM RALDB INTO @DATA(ld_e_varname).
 
"SELECT single UNAME FROM SY INTO @DATA(ld_e_usrname).
 


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!