SAP LOCATION_EXTRACT Function Module for









LOCATION_EXTRACT is a standard location extract 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 location extract FM, simply by entering the name LOCATION_EXTRACT into the relevant SAP transaction such as SE37 or SE38.

Function Group: V00F
Program Name: SAPLV00F
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LOCATION_EXTRACT 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 'LOCATION_EXTRACT'"
IMPORTING
BILD = "Four-digit name of the current screen
T185_EXP = "
T185F_EXP = "
OLD_FCODE = "Function Code
OLD_BLDGR = "Screen Group
OLD_PANEL = "Name of the current screen display
OLD_AKTYP = "Activity category in SAP transaction
BILDGRUPPE = "not yet documented.
FLAG_ENDE = "
FUNKTION = "Entered function code
KOPFGRUPPE = "Grouping parameters for processing locations
POSITIONSGRUPPE = "Grouping parameters for processing locations
PROGRAMM = "Call program
STACKSTUFE = "
TRTYP = "
.



EXPORTING Parameters details for LOCATION_EXTRACT

BILD - Four-digit name of the current screen

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

T185_EXP -

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

T185F_EXP -

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

OLD_FCODE - Function Code

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

OLD_BLDGR - Screen Group

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

OLD_PANEL - Name of the current screen display

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

OLD_AKTYP - Activity category in SAP transaction

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

BILDGRUPPE - not yet documented.

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

FLAG_ENDE -

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

FUNKTION - Entered function code

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

KOPFGRUPPE - Grouping parameters for processing locations

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

POSITIONSGRUPPE - Grouping parameters for processing locations

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

PROGRAMM - Call program

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

STACKSTUFE -

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

TRTYP -

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

Copy and paste ABAP code example for LOCATION_EXTRACT 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_bild  TYPE T185-PANEL, "   
lv_t185_exp  TYPE T185, "   
lv_t185f_exp  TYPE T185F, "   
lv_old_fcode  TYPE T185-FCODE, "   
lv_old_bldgr  TYPE T185-BLDGR, "   
lv_old_panel  TYPE T185-PANEL, "   
lv_old_aktyp  TYPE T185F-AKTYP, "   
lv_bildgruppe  TYPE T185-BLDGR, "   
lv_flag_ende  TYPE T185-DUNKEL, "   
lv_funktion  TYPE T185-FCODE, "   
lv_kopfgruppe  TYPE T185-KOPGR, "   
lv_positionsgruppe  TYPE T185-POSGR, "   
lv_programm  TYPE T185V-AGIDV, "   
lv_stackstufe  TYPE T185-STNEU, "   
lv_trtyp  TYPE T185F-TRTYP. "   

  CALL FUNCTION 'LOCATION_EXTRACT'  "
    IMPORTING
         BILD = lv_bild
         T185_EXP = lv_t185_exp
         T185F_EXP = lv_t185f_exp
         OLD_FCODE = lv_old_fcode
         OLD_BLDGR = lv_old_bldgr
         OLD_PANEL = lv_old_panel
         OLD_AKTYP = lv_old_aktyp
         BILDGRUPPE = lv_bildgruppe
         FLAG_ENDE = lv_flag_ende
         FUNKTION = lv_funktion
         KOPFGRUPPE = lv_kopfgruppe
         POSITIONSGRUPPE = lv_positionsgruppe
         PROGRAMM = lv_programm
         STACKSTUFE = lv_stackstufe
         TRTYP = lv_trtyp
. " LOCATION_EXTRACT




ABAP code using 7.40 inline data declarations to call FM LOCATION_EXTRACT

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 PANEL FROM T185 INTO @DATA(ld_bild).
 
 
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_old_fcode).
 
"SELECT single BLDGR FROM T185 INTO @DATA(ld_old_bldgr).
 
"SELECT single PANEL FROM T185 INTO @DATA(ld_old_panel).
 
"SELECT single AKTYP FROM T185F INTO @DATA(ld_old_aktyp).
 
"SELECT single BLDGR FROM T185 INTO @DATA(ld_bildgruppe).
 
"SELECT single DUNKEL FROM T185 INTO @DATA(ld_flag_ende).
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_funktion).
 
"SELECT single KOPGR FROM T185 INTO @DATA(ld_kopfgruppe).
 
"SELECT single POSGR FROM T185 INTO @DATA(ld_positionsgruppe).
 
"SELECT single AGIDV FROM T185V INTO @DATA(ld_programm).
 
"SELECT single STNEU FROM T185 INTO @DATA(ld_stackstufe).
 
"SELECT single TRTYP FROM T185F INTO @DATA(ld_trtyp).
 


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!