SAP FUNC_LOCATION_READ Function Module for Read Functional Location









FUNC_LOCATION_READ is a standard func location read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Functional Location 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 read FM, simply by entering the name FUNC_LOCATION_READ 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:



Function FUNC_LOCATION_READ 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_READ'"Read Functional Location
EXPORTING
* AUTH_CHECK = ' ' "X = carry out authorization checks
* AUTH_TCODE = 'IL03' "Transaction code for authorization
* BUFFER_BYPASS = ' ' "X = Bypass of the local data buffe
* DYFIELD = ' ' "
* NO_OTHER_LANGUAGE = ' ' "X = deliver no text in replacement lang.
* SPRAS = SY-LANGU "
TPLNR = "

IMPORTING
IFLO_WA = "
PLTXT = "Short text, 40, without explicit D

EXCEPTIONS
IFLOT_NOT_FOUND = 1 ILOA_NOT_FOUND = 2 NO_AUTHORITY = 3
.



IMPORTING Parameters details for FUNC_LOCATION_READ

AUTH_CHECK - X = carry out authorization checks

Data type: IREF-IIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTH_TCODE - Transaction code for authorization

Data type: SY-TCODE
Default: 'IL03'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUFFER_BYPASS - X = Bypass of the local data buffe

Data type: IREF-IIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYFIELD -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_OTHER_LANGUAGE - X = deliver no text in replacement lang.

Data type: IREF-IIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPRAS -

Data type: IFLO-SPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

TPLNR -

Data type: IFLO-TPLNR
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FUNC_LOCATION_READ

IFLO_WA -

Data type: IFLO
Optional: No
Call by Reference: No ( called with pass by value option)

PLTXT - Short text, 40, without explicit D

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

IFLOT_NOT_FOUND - Entry not found in table IFLOT

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILOA_NOT_FOUND - Entry not found in table ILOA

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FUNC_LOCATION_READ 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_iflo_wa  TYPE IFLO, "   
lv_auth_check  TYPE IREF-IIND, "   SPACE
lv_iflot_not_found  TYPE IREF, "   
lv_pltxt  TYPE IREF, "   
lv_auth_tcode  TYPE SY-TCODE, "   'IL03'
lv_iloa_not_found  TYPE SY, "   
lv_no_authority  TYPE SY, "   
lv_buffer_bypass  TYPE IREF-IIND, "   SPACE
lv_dyfield  TYPE IREF, "   SPACE
lv_no_other_language  TYPE IREF-IIND, "   SPACE
lv_spras  TYPE IFLO-SPRAS, "   SY-LANGU
lv_tplnr  TYPE IFLO-TPLNR. "   

  CALL FUNCTION 'FUNC_LOCATION_READ'  "Read Functional Location
    EXPORTING
         AUTH_CHECK = lv_auth_check
         AUTH_TCODE = lv_auth_tcode
         BUFFER_BYPASS = lv_buffer_bypass
         DYFIELD = lv_dyfield
         NO_OTHER_LANGUAGE = lv_no_other_language
         SPRAS = lv_spras
         TPLNR = lv_tplnr
    IMPORTING
         IFLO_WA = lv_iflo_wa
         PLTXT = lv_pltxt
    EXCEPTIONS
        IFLOT_NOT_FOUND = 1
        ILOA_NOT_FOUND = 2
        NO_AUTHORITY = 3
. " FUNC_LOCATION_READ




ABAP code using 7.40 inline data declarations to call FM FUNC_LOCATION_READ

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 IIND FROM IREF INTO @DATA(ld_auth_check).
DATA(ld_auth_check) = ' '.
 
 
 
"SELECT single TCODE FROM SY INTO @DATA(ld_auth_tcode).
DATA(ld_auth_tcode) = 'IL03'.
 
 
 
"SELECT single IIND FROM IREF INTO @DATA(ld_buffer_bypass).
DATA(ld_buffer_bypass) = ' '.
 
DATA(ld_dyfield) = ' '.
 
"SELECT single IIND FROM IREF INTO @DATA(ld_no_other_language).
DATA(ld_no_other_language) = ' '.
 
"SELECT single SPRAS FROM IFLO INTO @DATA(ld_spras).
DATA(ld_spras) = SY-LANGU.
 
"SELECT single TPLNR FROM IFLO INTO @DATA(ld_tplnr).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!