SAP FKK_LOT_KEY_CREATE Function Module for
FKK_LOT_KEY_CREATE is a standard fkk lot key create 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 fkk lot key create FM, simply by entering the name FKK_LOT_KEY_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKKAANB
Program Name: SAPLFKKAANB
Main Program: SAPLFKKAANB
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_LOT_KEY_CREATE 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 'FKK_LOT_KEY_CREATE'".
EXPORTING
I_LOTTYPE = "
* IX_SPLIT = ' ' "
* I_BUKRS = "Company Code
* I_HBKID = "Short Key for a House Bank
* I_HKTID = "ID for Account Details
* I_AZNUM = "Statement Number
* I_APPLK = "Application Area
* I_LOTKEY_BODY = ' ' "
* I_LOTKEY_FIRST = ' ' "
* IX_SUBSEQ_KEY = ' ' "
IMPORTING
E_LOTKEY = "
EXCEPTIONS
NO_KEY_GENERATED = 1
IMPORTING Parameters details for FKK_LOT_KEY_CREATE
I_LOTTYPE -
Data type: GSVORGART_KKOptional: No
Call by Reference: No ( called with pass by value option)
IX_SPLIT -
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: Yes
I_BUKRS - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
I_HBKID - Short Key for a House Bank
Data type: HBKIDOptional: Yes
Call by Reference: Yes
I_HKTID - ID for Account Details
Data type: HKTIDOptional: Yes
Call by Reference: Yes
I_AZNUM - Statement Number
Data type: AZNUM_EBOptional: Yes
Call by Reference: Yes
I_APPLK - Application Area
Data type: APPLK_KKOptional: Yes
Call by Reference: Yes
I_LOTKEY_BODY -
Data type: UNIKEYBS_KKDefault: ' '
Optional: Yes
Call by Reference: Yes
I_LOTKEY_FIRST -
Data type: KEYZ1_KKDefault: ' '
Optional: Yes
Call by Reference: Yes
IX_SUBSEQ_KEY -
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FKK_LOT_KEY_CREATE
E_LOTKEY -
Data type: KEYZ1_KKOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_KEY_GENERATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_LOT_KEY_CREATE 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_e_lotkey | TYPE KEYZ1_KK, " | |||
| lv_i_lottype | TYPE GSVORGART_KK, " | |||
| lv_no_key_generated | TYPE GSVORGART_KK, " | |||
| lv_ix_split | TYPE BOOLE-BOOLE, " ' ' | |||
| lv_i_bukrs | TYPE BUKRS, " | |||
| lv_i_hbkid | TYPE HBKID, " | |||
| lv_i_hktid | TYPE HKTID, " | |||
| lv_i_aznum | TYPE AZNUM_EB, " | |||
| lv_i_applk | TYPE APPLK_KK, " | |||
| lv_i_lotkey_body | TYPE UNIKEYBS_KK, " ' ' | |||
| lv_i_lotkey_first | TYPE KEYZ1_KK, " ' ' | |||
| lv_ix_subseq_key | TYPE BOOLE-BOOLE. " ' ' |
|   CALL FUNCTION 'FKK_LOT_KEY_CREATE' " |
| EXPORTING | ||
| I_LOTTYPE | = lv_i_lottype | |
| IX_SPLIT | = lv_ix_split | |
| I_BUKRS | = lv_i_bukrs | |
| I_HBKID | = lv_i_hbkid | |
| I_HKTID | = lv_i_hktid | |
| I_AZNUM | = lv_i_aznum | |
| I_APPLK | = lv_i_applk | |
| I_LOTKEY_BODY | = lv_i_lotkey_body | |
| I_LOTKEY_FIRST | = lv_i_lotkey_first | |
| IX_SUBSEQ_KEY | = lv_ix_subseq_key | |
| IMPORTING | ||
| E_LOTKEY | = lv_e_lotkey | |
| EXCEPTIONS | ||
| NO_KEY_GENERATED = 1 | ||
| . " FKK_LOT_KEY_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM FKK_LOT_KEY_CREATE
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 BOOLE FROM BOOLE INTO @DATA(ld_ix_split). | ||||
| DATA(ld_ix_split) | = ' '. | |||
| DATA(ld_i_lotkey_body) | = ' '. | |||
| DATA(ld_i_lotkey_first) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_subseq_key). | ||||
| DATA(ld_ix_subseq_key) | = ' '. | |||
Search for further information about these or an SAP related objects