SAP FUNC_LOCATION_CALL Function Module for NOTRANSL: CALL TRANSACTION auf Technischen Platz
FUNC_LOCATION_CALL is a standard func location call 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: CALL TRANSACTION auf Technischen Platz 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 call FM, simply by entering the name FUNC_LOCATION_CALL into the relevant SAP transaction such as SE37 or SE38.
Function Group: ILO1
Program Name: SAPLILO1
Main Program: SAPLILO1
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function FUNC_LOCATION_CALL 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_CALL'"NOTRANSL: CALL TRANSACTION auf Technischen Platz.
EXPORTING
* FCODE = ' ' "Function code, executable on first
* TCODE = 'IL03' "Transaction code for CALL DIALOG
* TPLNR = ' ' "Key field to functional location
* STRNO = ' ' "
* AUTH_CHECK = ' ' "X = Carry out authorization checks
* CALLING_PROGRAM = ' ' "
* IFLO_WA = ' ' "Work area for the functional locat
* IRLO_WA = ' ' "Work area to the technical referen
* COPY_SOURCE_OBKEY = ' ' "Copy reference for sub-objects
* COPY_SOURCE_OBJNR = ' ' "Object number of copy reference
* COPY_SOURCE_ADRNR = ' ' "
* COPY_SOURCE_KZLTX = ' ' "X = Copy reference includes long text
* RILOCP_COM = ' ' "Structure with copy indicators
* S_MESSAGE_SUPPRESS = ' ' "Suppress S-messages from function module
IMPORTING
IFLO_BA = "Work area back from transaction
RILO0_WA = "I/O table with external representations
INH_DATA_TO_RECEIVE = "X = data was to be transferred (only with IL02)
LEFT_WITH_F15 = "_
LOCKING_USER = "User whose lock was addressed duri
OBJECT_LOCKED = "X = Object locked for CALL
UPDATE_SUCCESS = "X = update performed
EXCEPTIONS
EITHER_TPLNR_OR_IFLO = 1 IRLO_CONTRADICTS_IFLO_TRPNR = 2 NO_AUTHORITY = 3
IMPORTING Parameters details for FUNC_LOCATION_CALL
FCODE - Function code, executable on first
Data type: T185F-FCODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TCODE - Transaction code for CALL DIALOG
Data type:Default: 'IL03'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TPLNR - Key field to functional location
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STRNO -
Data type: IFLOS-STRNODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTH_CHECK - X = Carry out authorization checks
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLING_PROGRAM -
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLO_WA - Work area for the functional locat
Data type: IFLODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IRLO_WA - Work area to the technical referen
Data type: IRLODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COPY_SOURCE_OBKEY - Copy reference for sub-objects
Data type: RMCLF-OBJEKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COPY_SOURCE_OBJNR - Object number of copy reference
Data type: ONR00-OBJNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COPY_SOURCE_ADRNR -
Data type: IFLO-ADRNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COPY_SOURCE_KZLTX - X = Copy reference includes long text
Data type: IFLO-KZLTXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RILOCP_COM - Structure with copy indicators
Data type: RILOCPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
S_MESSAGE_SUPPRESS - Suppress S-messages from function module
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FUNC_LOCATION_CALL
IFLO_BA - Work area back from transaction
Data type: IFLOOptional: No
Call by Reference: No ( called with pass by value option)
RILO0_WA - I/O table with external representations
Data type: RILO0Optional: No
Call by Reference: No ( called with pass by value option)
INH_DATA_TO_RECEIVE - X = data was to be transferred (only with IL02)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LEFT_WITH_F15 - _
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOCKING_USER - User whose lock was addressed duri
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT_LOCKED - X = Object locked for CALL
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UPDATE_SUCCESS - X = update performed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EITHER_TPLNR_OR_IFLO - Enter either key field or work area
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IRLO_CONTRADICTS_IFLO_TRPNR - IRLO_WA contradicts the field TRPNR in IFLO_WA
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FUNC_LOCATION_CALL 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_fcode | TYPE T185F-FCODE, " SPACE | |||
lv_iflo_ba | TYPE IFLO, " | |||
lv_either_tplnr_or_iflo | TYPE IFLO, " | |||
lv_tcode | TYPE IFLO, " 'IL03' | |||
lv_tplnr | TYPE IFLO, " SPACE | |||
lv_strno | TYPE IFLOS-STRNO, " SPACE | |||
lv_auth_check | TYPE IREF-IIND, " SPACE | |||
lv_calling_program | TYPE SY-REPID, " SPACE | |||
lv_iflo_wa | TYPE IFLO, " SPACE | |||
lv_rilo0_wa | TYPE RILO0, " | |||
lv_irlo_contradicts_iflo_trpnr | TYPE RILO0, " | |||
lv_irlo_wa | TYPE IRLO, " SPACE | |||
lv_no_authority | TYPE IRLO, " | |||
lv_inh_data_to_receive | TYPE IRLO, " | |||
lv_left_with_f15 | TYPE IRLO, " | |||
lv_copy_source_obkey | TYPE RMCLF-OBJEK, " SPACE | |||
lv_locking_user | TYPE SY-UNAME, " | |||
lv_copy_source_objnr | TYPE ONR00-OBJNR, " SPACE | |||
lv_object_locked | TYPE ONR00, " | |||
lv_copy_source_adrnr | TYPE IFLO-ADRNR, " SPACE | |||
lv_update_success | TYPE IFLO, " | |||
lv_copy_source_kzltx | TYPE IFLO-KZLTX, " SPACE | |||
lv_rilocp_com | TYPE RILOCP, " SPACE | |||
lv_s_message_suppress | TYPE RILOCP. " SPACE |
  CALL FUNCTION 'FUNC_LOCATION_CALL' "NOTRANSL: CALL TRANSACTION auf Technischen Platz |
EXPORTING | ||
FCODE | = lv_fcode | |
TCODE | = lv_tcode | |
TPLNR | = lv_tplnr | |
STRNO | = lv_strno | |
AUTH_CHECK | = lv_auth_check | |
CALLING_PROGRAM | = lv_calling_program | |
IFLO_WA | = lv_iflo_wa | |
IRLO_WA | = lv_irlo_wa | |
COPY_SOURCE_OBKEY | = lv_copy_source_obkey | |
COPY_SOURCE_OBJNR | = lv_copy_source_objnr | |
COPY_SOURCE_ADRNR | = lv_copy_source_adrnr | |
COPY_SOURCE_KZLTX | = lv_copy_source_kzltx | |
RILOCP_COM | = lv_rilocp_com | |
S_MESSAGE_SUPPRESS | = lv_s_message_suppress | |
IMPORTING | ||
IFLO_BA | = lv_iflo_ba | |
RILO0_WA | = lv_rilo0_wa | |
INH_DATA_TO_RECEIVE | = lv_inh_data_to_receive | |
LEFT_WITH_F15 | = lv_left_with_f15 | |
LOCKING_USER | = lv_locking_user | |
OBJECT_LOCKED | = lv_object_locked | |
UPDATE_SUCCESS | = lv_update_success | |
EXCEPTIONS | ||
EITHER_TPLNR_OR_IFLO = 1 | ||
IRLO_CONTRADICTS_IFLO_TRPNR = 2 | ||
NO_AUTHORITY = 3 | ||
. " FUNC_LOCATION_CALL |
ABAP code using 7.40 inline data declarations to call FM FUNC_LOCATION_CALL
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 FCODE FROM T185F INTO @DATA(ld_fcode). | ||||
DATA(ld_fcode) | = ' '. | |||
DATA(ld_tcode) | = 'IL03'. | |||
DATA(ld_tplnr) | = ' '. | |||
"SELECT single STRNO FROM IFLOS INTO @DATA(ld_strno). | ||||
DATA(ld_strno) | = ' '. | |||
"SELECT single IIND FROM IREF INTO @DATA(ld_auth_check). | ||||
DATA(ld_auth_check) | = ' '. | |||
"SELECT single REPID FROM SY INTO @DATA(ld_calling_program). | ||||
DATA(ld_calling_program) | = ' '. | |||
DATA(ld_iflo_wa) | = ' '. | |||
DATA(ld_irlo_wa) | = ' '. | |||
"SELECT single OBJEK FROM RMCLF INTO @DATA(ld_copy_source_obkey). | ||||
DATA(ld_copy_source_obkey) | = ' '. | |||
"SELECT single UNAME FROM SY INTO @DATA(ld_locking_user). | ||||
"SELECT single OBJNR FROM ONR00 INTO @DATA(ld_copy_source_objnr). | ||||
DATA(ld_copy_source_objnr) | = ' '. | |||
"SELECT single ADRNR FROM IFLO INTO @DATA(ld_copy_source_adrnr). | ||||
DATA(ld_copy_source_adrnr) | = ' '. | |||
"SELECT single KZLTX FROM IFLO INTO @DATA(ld_copy_source_kzltx). | ||||
DATA(ld_copy_source_kzltx) | = ' '. | |||
DATA(ld_rilocp_com) | = ' '. | |||
DATA(ld_s_message_suppress) | = ' '. | |||
Search for further information about these or an SAP related objects