SAP FKJO_CNTR_GENERATE Function Module for
FKJO_CNTR_GENERATE is a standard fkjo cntr generate 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 cntr generate FM, simply by entering the name FKJO_CNTR_GENERATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKJO_CONTAINER
Program Name: SAPLFKJO_CONTAINER
Main Program: SAPLFKJO_CONTAINER
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKJO_CNTR_GENERATE 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_CNTR_GENERATE'".
EXPORTING
I_DFK_JC_CNTR_ID = "
I_FROM_DATE = "
* I_FROM_TIME = "
I_HORIZON_DATE = "
* I_HORIZON_TIME = "
IMPORTING
E_RUNS_GENERATED = "
EXCEPTIONS
NO_DATES = 1 INVALID_INPUT = 2
IMPORTING Parameters details for FKJO_CNTR_GENERATE
I_DFK_JC_CNTR_ID -
Data type: DFK_JC_CNTR-IDOptional: No
Call by Reference: No ( called with pass by value option)
I_FROM_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_FROM_TIME -
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HORIZON_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_HORIZON_TIME -
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKJO_CNTR_GENERATE
E_RUNS_GENERATED -
Data type: FKK_FKDATE_DUMMY-INT4Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKJO_CNTR_GENERATE 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_no_dates | TYPE STRING, " | |||
| lv_e_runs_generated | TYPE FKK_FKDATE_DUMMY-INT4, " | |||
| lv_i_dfk_jc_cntr_id | TYPE DFK_JC_CNTR-ID, " | |||
| lv_i_from_date | TYPE SY-DATUM, " | |||
| lv_invalid_input | TYPE SY, " | |||
| lv_i_from_time | TYPE SY-UZEIT, " | |||
| lv_i_horizon_date | TYPE SY-DATUM, " | |||
| lv_i_horizon_time | TYPE SY-UZEIT. " |
|   CALL FUNCTION 'FKJO_CNTR_GENERATE' " |
| EXPORTING | ||
| I_DFK_JC_CNTR_ID | = lv_i_dfk_jc_cntr_id | |
| I_FROM_DATE | = lv_i_from_date | |
| I_FROM_TIME | = lv_i_from_time | |
| I_HORIZON_DATE | = lv_i_horizon_date | |
| I_HORIZON_TIME | = lv_i_horizon_time | |
| IMPORTING | ||
| E_RUNS_GENERATED | = lv_e_runs_generated | |
| EXCEPTIONS | ||
| NO_DATES = 1 | ||
| INVALID_INPUT = 2 | ||
| . " FKJO_CNTR_GENERATE | ||
ABAP code using 7.40 inline data declarations to call FM FKJO_CNTR_GENERATE
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 INT4 FROM FKK_FKDATE_DUMMY INTO @DATA(ld_e_runs_generated). | ||||
| "SELECT single ID FROM DFK_JC_CNTR INTO @DATA(ld_i_dfk_jc_cntr_id). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_from_date). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_i_from_time). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_horizon_date). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_i_horizon_time). | ||||
Search for further information about these or an SAP related objects