SAP LOCATION_CORRECT Function Module for Transfer of important parameters for recovering a previous status









LOCATION_CORRECT is a standard location correct SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transfer of important parameters for recovering a previous status 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 location correct FM, simply by entering the name LOCATION_CORRECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: V00F
Program Name: SAPLV00F
Main Program:
Appliation area:
Release date: 21-Nov-1994
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LOCATION_CORRECT 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_CORRECT'"Transfer of important parameters for recovering a previous status
EXPORTING
BILD = "
* CLR_FLAG_ENDE = ' ' "
* T185_IMP = ' ' "
* T185F_IMP = ' ' "
* OLD_FCODE = ' ' "Function Code
* OLD_BLDGR = ' ' "Screen Group
* OLD_PANEL = ' ' "Name of the current screen display
* OLD_AKTYP = ' ' "Activity category in SAP transaction
BILDGRUPPE = "
KOPFGRUPPE = "
POSITIONSGRUPPE = "
PROGRAMM = "
STACKSTUFE = "
TRTYP = "
* TABELLEN_LESEN = ' ' "
* FUNKTION = ' ' "
.



IMPORTING Parameters details for LOCATION_CORRECT

BILD -

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

CLR_FLAG_ENDE -

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

T185_IMP -

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

T185F_IMP -

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

OLD_FCODE - Function Code

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

OLD_BLDGR - Screen Group

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

OLD_PANEL - Name of the current screen display

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

OLD_AKTYP - Activity category in SAP transaction

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

BILDGRUPPE -

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

KOPFGRUPPE -

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

POSITIONSGRUPPE -

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

PROGRAMM -

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)

TABELLEN_LESEN -

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

FUNKTION -

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

Copy and paste ABAP code example for LOCATION_CORRECT 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_clr_flag_ende  TYPE T185-DUNKEL, "   SPACE
lv_t185_imp  TYPE T185, "   SPACE
lv_t185f_imp  TYPE T185F, "   SPACE
lv_old_fcode  TYPE T185-FCODE, "   SPACE
lv_old_bldgr  TYPE T185-BLDGR, "   SPACE
lv_old_panel  TYPE T185-PANEL, "   SPACE
lv_old_aktyp  TYPE T185F-AKTYP, "   SPACE
lv_bildgruppe  TYPE T185-BLDGR, "   
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, "   
lv_tabellen_lesen  TYPE T185F, "   SPACE
lv_funktion  TYPE T185F-FCODE. "   SPACE

  CALL FUNCTION 'LOCATION_CORRECT'  "Transfer of important parameters for recovering a previous status
    EXPORTING
         BILD = lv_bild
         CLR_FLAG_ENDE = lv_clr_flag_ende
         T185_IMP = lv_t185_imp
         T185F_IMP = lv_t185f_imp
         OLD_FCODE = lv_old_fcode
         OLD_BLDGR = lv_old_bldgr
         OLD_PANEL = lv_old_panel
         OLD_AKTYP = lv_old_aktyp
         BILDGRUPPE = lv_bildgruppe
         KOPFGRUPPE = lv_kopfgruppe
         POSITIONSGRUPPE = lv_positionsgruppe
         PROGRAMM = lv_programm
         STACKSTUFE = lv_stackstufe
         TRTYP = lv_trtyp
         TABELLEN_LESEN = lv_tabellen_lesen
         FUNKTION = lv_funktion
. " LOCATION_CORRECT




ABAP code using 7.40 inline data declarations to call FM LOCATION_CORRECT

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 DUNKEL FROM T185 INTO @DATA(ld_clr_flag_ende).
DATA(ld_clr_flag_ende) = ' '.
 
DATA(ld_t185_imp) = ' '.
 
DATA(ld_t185f_imp) = ' '.
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_old_fcode).
DATA(ld_old_fcode) = ' '.
 
"SELECT single BLDGR FROM T185 INTO @DATA(ld_old_bldgr).
DATA(ld_old_bldgr) = ' '.
 
"SELECT single PANEL FROM T185 INTO @DATA(ld_old_panel).
DATA(ld_old_panel) = ' '.
 
"SELECT single AKTYP FROM T185F INTO @DATA(ld_old_aktyp).
DATA(ld_old_aktyp) = ' '.
 
"SELECT single BLDGR FROM T185 INTO @DATA(ld_bildgruppe).
 
"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).
 
DATA(ld_tabellen_lesen) = ' '.
 
"SELECT single FCODE FROM T185F INTO @DATA(ld_funktion).
DATA(ld_funktion) = ' '.
 


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!