SAP FKK_PT_CHECK_SEQUENTIAL_NUM Function Module for Checks the number consistency
FKK_PT_CHECK_SEQUENTIAL_NUM is a standard fkk pt check sequential num SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks the number consistency 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 fkk pt check sequential num FM, simply by entering the name FKK_PT_CHECK_SEQUENTIAL_NUM into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKPT_DS_UTILITY
Program Name: SAPLFKPT_DS_UTILITY
Main Program: SAPLFKPT_DS_UTILITY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_PT_CHECK_SEQUENTIAL_NUM 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_PT_CHECK_SEQUENTIAL_NUM'"Checks the number consistency.
EXPORTING
IV_NUMBER = "Char 20
IV_FROMNUMBER = "From number
IV_TONUMBER = "To number
* IV_SEQ_DIGITS = "
* IF_DELETE_LEADING_ZEROS = '' "General Indicator
IMPORTING
EF_NUMBER_EXISTS = "General Indicator
EF_FIRST_NUMBER = "General Indicator
EF_LAST_NUMBER = "General Indicator
EXCEPTIONS
SEQUENTIAL_NUM_TOO_LONG = 1 WRONG_HANDLE_OF_LEADING_ZEROS = 2 NUMBER_OF_DIGITS_INCONSISTENT = 3 NUMBER_NOT_IN_INTERVAL = 4 ERROR = 5
IMPORTING Parameters details for FKK_PT_CHECK_SEQUENTIAL_NUM
IV_NUMBER - Char 20
Data type: CHAR20Optional: No
Call by Reference: Yes
IV_FROMNUMBER - From number
Data type: NRFROMOptional: No
Call by Reference: Yes
IV_TONUMBER - To number
Data type: NRTOOptional: No
Call by Reference: Yes
IV_SEQ_DIGITS -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_DELETE_LEADING_ZEROS - General Indicator
Data type: GENERAL_FLAGDefault: ''
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FKK_PT_CHECK_SEQUENTIAL_NUM
EF_NUMBER_EXISTS - General Indicator
Data type: GENERAL_FLAGOptional: No
Call by Reference: Yes
EF_FIRST_NUMBER - General Indicator
Data type: GENERAL_FLAGOptional: No
Call by Reference: Yes
EF_LAST_NUMBER - General Indicator
Data type: GENERAL_FLAGOptional: No
Call by Reference: Yes
EXCEPTIONS details
SEQUENTIAL_NUM_TOO_LONG -
Data type:Optional: No
Call by Reference: Yes
WRONG_HANDLE_OF_LEADING_ZEROS -
Data type:Optional: No
Call by Reference: Yes
NUMBER_OF_DIGITS_INCONSISTENT -
Data type:Optional: No
Call by Reference: Yes
NUMBER_NOT_IN_INTERVAL -
Data type:Optional: No
Call by Reference: Yes
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_PT_CHECK_SEQUENTIAL_NUM 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_iv_number | TYPE CHAR20, " | |||
| lv_ef_number_exists | TYPE GENERAL_FLAG, " | |||
| lv_sequential_num_too_long | TYPE GENERAL_FLAG, " | |||
| lv_iv_fromnumber | TYPE NRFROM, " | |||
| lv_ef_first_number | TYPE GENERAL_FLAG, " | |||
| lv_wrong_handle_of_leading_zeros | TYPE GENERAL_FLAG, " | |||
| lv_iv_tonumber | TYPE NRTO, " | |||
| lv_ef_last_number | TYPE GENERAL_FLAG, " | |||
| lv_number_of_digits_inconsistent | TYPE GENERAL_FLAG, " | |||
| lv_iv_seq_digits | TYPE I, " | |||
| lv_number_not_in_interval | TYPE I, " | |||
| lv_error | TYPE I, " | |||
| lv_if_delete_leading_zeros | TYPE GENERAL_FLAG. " '' |
|   CALL FUNCTION 'FKK_PT_CHECK_SEQUENTIAL_NUM' "Checks the number consistency |
| EXPORTING | ||
| IV_NUMBER | = lv_iv_number | |
| IV_FROMNUMBER | = lv_iv_fromnumber | |
| IV_TONUMBER | = lv_iv_tonumber | |
| IV_SEQ_DIGITS | = lv_iv_seq_digits | |
| IF_DELETE_LEADING_ZEROS | = lv_if_delete_leading_zeros | |
| IMPORTING | ||
| EF_NUMBER_EXISTS | = lv_ef_number_exists | |
| EF_FIRST_NUMBER | = lv_ef_first_number | |
| EF_LAST_NUMBER | = lv_ef_last_number | |
| EXCEPTIONS | ||
| SEQUENTIAL_NUM_TOO_LONG = 1 | ||
| WRONG_HANDLE_OF_LEADING_ZEROS = 2 | ||
| NUMBER_OF_DIGITS_INCONSISTENT = 3 | ||
| NUMBER_NOT_IN_INTERVAL = 4 | ||
| ERROR = 5 | ||
| . " FKK_PT_CHECK_SEQUENTIAL_NUM | ||
ABAP code using 7.40 inline data declarations to call FM FKK_PT_CHECK_SEQUENTIAL_NUM
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_if_delete_leading_zeros) | = ''. | |||
Search for further information about these or an SAP related objects