SAP Function Modules

REF_LOCATION_UPDATE SAP Function module







REF_LOCATION_UPDATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name REF_LOCATION_UPDATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ILO3
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM REF_LOCATION_UPDATE - REF LOCATION UPDATE





CALL FUNCTION 'REF_LOCATION_UPDATE' "
  EXPORTING
*   inhb_counter = 0            " inhb-inhbc    Ageing counter for entries in table INHB
*   inhb_delete = SPACE         " iref-iind     X = Delete this object from table INHB
    irlo_new =                  " irlo          View IRLO, new state
    irlo_old =                  " irlo          View IRLO, existing state
    riupd_new =                 " riupd         Update indicators for IRLO_NEW
    riupd_old =                 " riupd         Update indicators for IRLO_OLD
*   update_asynchron = 'X'      " iref-iind     X = UPDATE on view IRLO is carried out in update
    .  "  REF_LOCATION_UPDATE

ABAP code example for Function Module REF_LOCATION_UPDATE





The ABAP code below is a full code listing to execute function module REF_LOCATION_UPDATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

 

SELECT single INHBC
FROM INHB
INTO @DATA(ld_inhb_counter).


DATA(ld_inhb_delete) = some text here
DATA(ld_irlo_new) = 'Check type of data required'.
DATA(ld_irlo_old) = 'Check type of data required'.
DATA(ld_riupd_new) = 'Check type of data required'.
DATA(ld_riupd_old) = 'Check type of data required'.

DATA(ld_update_asynchron) = some text here . CALL FUNCTION 'REF_LOCATION_UPDATE' EXPORTING * inhb_counter = ld_inhb_counter * inhb_delete = ld_inhb_delete irlo_new = ld_irlo_new irlo_old = ld_irlo_old riupd_new = ld_riupd_new riupd_old = ld_riupd_old * update_asynchron = ld_update_asynchron . " REF_LOCATION_UPDATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_inhb_counter  TYPE INHB-INHBC ,
ld_inhb_delete  TYPE IREF-IIND ,
ld_irlo_new  TYPE IRLO ,
ld_irlo_old  TYPE IRLO ,
ld_riupd_new  TYPE RIUPD ,
ld_riupd_old  TYPE RIUPD ,
ld_update_asynchron  TYPE IREF-IIND .


SELECT single INHBC
FROM INHB
INTO ld_inhb_counter.


ld_inhb_delete = some text here
ld_irlo_new = 'Check type of data required'.
ld_irlo_old = 'Check type of data required'.
ld_riupd_new = 'Check type of data required'.
ld_riupd_old = 'Check type of data required'.

ld_update_asynchron = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name REF_LOCATION_UPDATE or its description.