SAP Function Modules

UPDATE_LAST_REVALUATION_DATE SAP Function module - Update of the Last Revaluation Date due to a Manual Inflation Revaluatio







UPDATE_LAST_REVALUATION_DATE 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 UPDATE_LAST_REVALUATION_DATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM UPDATE_LAST_REVALUATION_DATE - UPDATE LAST REVALUATION DATE





CALL FUNCTION 'UPDATE_LAST_REVALUATION_DATE' "Update of the Last Revaluation Date due to a Manual Inflation Revaluation
  EXPORTING
    i_bwasl =                   " anbz-bwasl
    i_bukrs =                   " anbz-bukrs
    i_anln1 =                   " anbz-anln1
    i_anln2 =                   " anbz-anln2
    i_bzdat =                   " anbz-bzdat
    i_sgtxt =                   " anek-sgtxt
  TABLES
    t_anep =                    " anep
    t_anlb =                    " anlb
    .  "  UPDATE_LAST_REVALUATION_DATE

ABAP code example for Function Module UPDATE_LAST_REVALUATION_DATE





The ABAP code below is a full code listing to execute function module UPDATE_LAST_REVALUATION_DATE 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).

DATA:
it_t_anep  TYPE STANDARD TABLE OF ANEP,"TABLES PARAM
wa_t_anep  LIKE LINE OF it_t_anep ,
it_t_anlb  TYPE STANDARD TABLE OF ANLB,"TABLES PARAM
wa_t_anlb  LIKE LINE OF it_t_anlb .


DATA(ld_i_bwasl) = some text here

DATA(ld_i_bukrs) = some text here

DATA(ld_i_anln1) = some text here

DATA(ld_i_anln2) = some text here

DATA(ld_i_bzdat) = 20210129

SELECT single SGTXT
FROM ANEK
INTO @DATA(ld_i_sgtxt).


"populate fields of struture and append to itab
append wa_t_anep to it_t_anep.

"populate fields of struture and append to itab
append wa_t_anlb to it_t_anlb. . CALL FUNCTION 'UPDATE_LAST_REVALUATION_DATE' EXPORTING i_bwasl = ld_i_bwasl i_bukrs = ld_i_bukrs i_anln1 = ld_i_anln1 i_anln2 = ld_i_anln2 i_bzdat = ld_i_bzdat i_sgtxt = ld_i_sgtxt TABLES t_anep = it_t_anep t_anlb = it_t_anlb . " UPDATE_LAST_REVALUATION_DATE
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_i_bwasl  TYPE ANBZ-BWASL ,
it_t_anep  TYPE STANDARD TABLE OF ANEP ,
wa_t_anep  LIKE LINE OF it_t_anep,
ld_i_bukrs  TYPE ANBZ-BUKRS ,
it_t_anlb  TYPE STANDARD TABLE OF ANLB ,
wa_t_anlb  LIKE LINE OF it_t_anlb,
ld_i_anln1  TYPE ANBZ-ANLN1 ,
ld_i_anln2  TYPE ANBZ-ANLN2 ,
ld_i_bzdat  TYPE ANBZ-BZDAT ,
ld_i_sgtxt  TYPE ANEK-SGTXT .


ld_i_bwasl = some text here

"populate fields of struture and append to itab
append wa_t_anep to it_t_anep.

ld_i_bukrs = some text here

"populate fields of struture and append to itab
append wa_t_anlb to it_t_anlb.

ld_i_anln1 = some text here

ld_i_anln2 = some text here

ld_i_bzdat = 20210129

SELECT single SGTXT
FROM ANEK
INTO ld_i_sgtxt.

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 UPDATE_LAST_REVALUATION_DATE or its description.