SAP FUNC_LOCATION_KEY_STRUCTURE Function Module for NOTRANSL: Platzkennzeichnung prüfen
FUNC_LOCATION_KEY_STRUCTURE is a standard func location key structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Platzkennzeichnung prüfen 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 func location key structure FM, simply by entering the name FUNC_LOCATION_KEY_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ILOS
Program Name: SAPLILOS
Main Program: SAPLILOS
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function FUNC_LOCATION_KEY_STRUCTURE 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 'FUNC_LOCATION_KEY_STRUCTURE'"NOTRANSL: Platzkennzeichnung prüfen.
EXPORTING
STRUCTURED_KEY = "Functional location edit mask
* OBJECT_TABLE = 'IFLOT' "Name of Database Table for Object
* LABELING_SYSTEM = ' ' "Labeling system for functional locations
STRUCTURE_INDICATOR = "Structure Indicator
* CORRECT_SEPARATORS = ' ' "Yes/No (X/ )
* CORRECT_BLOCK_DIGITS = ' ' "Yes/No (X/ )
IMPORTING
CORRECTED_KEY = "Functional location edit mask
SEPARATOR_CORRECTED = "Yes/No (X/ )
BLOCK_DIGIT_CORRECTED = "Yes/No (X/ )
EDITMASK = "Functional location edit mask
HIERARCHY_LEVELS = "Functional Location Hierarchy Levels
EXCEPTIONS
STR_INDICATOR_NOT_FOUND = 1 KEY_TOO_LONG = 2 FIRST_BLOCK_IS_INITIAL = 3 NO_COMPLIANCE_WITH_EDITMASK = 4 KEY_ENDS_WITH_SEPARATOR = 5 EXCEPTION_FROM_USER_EXIT = 6
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLILOS_001 User Exit when Checking Structure of Location Numbers
IMPORTING Parameters details for FUNC_LOCATION_KEY_STRUCTURE
STRUCTURED_KEY - Functional location edit mask
Data type: T370S-EDITMOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT_TABLE - Name of Database Table for Object
Data type: TCLA-OBTABDefault: 'IFLOT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LABELING_SYSTEM - Labeling system for functional locations
Data type: IFLOS-ALKEYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STRUCTURE_INDICATOR - Structure Indicator
Data type: T370S-TPLKZOptional: No
Call by Reference: No ( called with pass by value option)
CORRECT_SEPARATORS - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CORRECT_BLOCK_DIGITS - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FUNC_LOCATION_KEY_STRUCTURE
CORRECTED_KEY - Functional location edit mask
Data type: T370S-EDITMOptional: No
Call by Reference: No ( called with pass by value option)
SEPARATOR_CORRECTED - Yes/No (X/ )
Data type: IREF-IINDOptional: No
Call by Reference: No ( called with pass by value option)
BLOCK_DIGIT_CORRECTED - Yes/No (X/ )
Data type: IREF-IINDOptional: No
Call by Reference: No ( called with pass by value option)
EDITMASK - Functional location edit mask
Data type: T370S-EDITMOptional: No
Call by Reference: No ( called with pass by value option)
HIERARCHY_LEVELS - Functional Location Hierarchy Levels
Data type: T370S-STUFMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
STR_INDICATOR_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEY_TOO_LONG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FIRST_BLOCK_IS_INITIAL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_COMPLIANCE_WITH_EDITMASK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEY_ENDS_WITH_SEPARATOR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTION_FROM_USER_EXIT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FUNC_LOCATION_KEY_STRUCTURE 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_corrected_key | TYPE T370S-EDITM, " | |||
| lv_structured_key | TYPE T370S-EDITM, " | |||
| lv_str_indicator_not_found | TYPE T370S, " | |||
| lv_key_too_long | TYPE T370S, " | |||
| lv_object_table | TYPE TCLA-OBTAB, " 'IFLOT' | |||
| lv_separator_corrected | TYPE IREF-IIND, " | |||
| lv_labeling_system | TYPE IFLOS-ALKEY, " SPACE | |||
| lv_block_digit_corrected | TYPE IREF-IIND, " | |||
| lv_first_block_is_initial | TYPE IREF, " | |||
| lv_editmask | TYPE T370S-EDITM, " | |||
| lv_structure_indicator | TYPE T370S-TPLKZ, " | |||
| lv_no_compliance_with_editmask | TYPE T370S, " | |||
| lv_hierarchy_levels | TYPE T370S-STUFM, " | |||
| lv_correct_separators | TYPE IREF-IIND, " SPACE | |||
| lv_key_ends_with_separator | TYPE IREF, " | |||
| lv_correct_block_digits | TYPE IREF-IIND, " SPACE | |||
| lv_exception_from_user_exit | TYPE IREF. " |
|   CALL FUNCTION 'FUNC_LOCATION_KEY_STRUCTURE' "NOTRANSL: Platzkennzeichnung prüfen |
| EXPORTING | ||
| STRUCTURED_KEY | = lv_structured_key | |
| OBJECT_TABLE | = lv_object_table | |
| LABELING_SYSTEM | = lv_labeling_system | |
| STRUCTURE_INDICATOR | = lv_structure_indicator | |
| CORRECT_SEPARATORS | = lv_correct_separators | |
| CORRECT_BLOCK_DIGITS | = lv_correct_block_digits | |
| IMPORTING | ||
| CORRECTED_KEY | = lv_corrected_key | |
| SEPARATOR_CORRECTED | = lv_separator_corrected | |
| BLOCK_DIGIT_CORRECTED | = lv_block_digit_corrected | |
| EDITMASK | = lv_editmask | |
| HIERARCHY_LEVELS | = lv_hierarchy_levels | |
| EXCEPTIONS | ||
| STR_INDICATOR_NOT_FOUND = 1 | ||
| KEY_TOO_LONG = 2 | ||
| FIRST_BLOCK_IS_INITIAL = 3 | ||
| NO_COMPLIANCE_WITH_EDITMASK = 4 | ||
| KEY_ENDS_WITH_SEPARATOR = 5 | ||
| EXCEPTION_FROM_USER_EXIT = 6 | ||
| . " FUNC_LOCATION_KEY_STRUCTURE | ||
ABAP code using 7.40 inline data declarations to call FM FUNC_LOCATION_KEY_STRUCTURE
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 EDITM FROM T370S INTO @DATA(ld_corrected_key). | ||||
| "SELECT single EDITM FROM T370S INTO @DATA(ld_structured_key). | ||||
| "SELECT single OBTAB FROM TCLA INTO @DATA(ld_object_table). | ||||
| DATA(ld_object_table) | = 'IFLOT'. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_separator_corrected). | ||||
| "SELECT single ALKEY FROM IFLOS INTO @DATA(ld_labeling_system). | ||||
| DATA(ld_labeling_system) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_block_digit_corrected). | ||||
| "SELECT single EDITM FROM T370S INTO @DATA(ld_editmask). | ||||
| "SELECT single TPLKZ FROM T370S INTO @DATA(ld_structure_indicator). | ||||
| "SELECT single STUFM FROM T370S INTO @DATA(ld_hierarchy_levels). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_correct_separators). | ||||
| DATA(ld_correct_separators) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_correct_block_digits). | ||||
| DATA(ld_correct_block_digits) | = ' '. | |||
Search for further information about these or an SAP related objects