SAP Function Modules

GRPCRTA_SAP_CHANGE_LOG_READ SAP Function module - Read SAP Stanadard Change Log







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

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


Pattern for FM GRPCRTA_SAP_CHANGE_LOG_READ - GRPCRTA SAP CHANGE LOG READ





CALL FUNCTION 'GRPCRTA_SAP_CHANGE_LOG_READ' "Read SAP Stanadard Change Log
  EXPORTING
    i_objname =                 " ob_object     Object name
    i_fromdate =                " d
    i_fromtime = '000000'       " t
    i_todate =                  " d
    i_totime = '235959'         " t
  IMPORTING
    et_changelog =              " grpcrta_t_log  GRPC Change log
    e_return_code =             " sysubrc       Return Value, Return Value After ABAP Statements
    .  "  GRPCRTA_SAP_CHANGE_LOG_READ

ABAP code example for Function Module GRPCRTA_SAP_CHANGE_LOG_READ





The ABAP code below is a full code listing to execute function module GRPCRTA_SAP_CHANGE_LOG_READ 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:
ld_et_changelog  TYPE GRPCRTA_T_LOG ,
ld_e_return_code  TYPE SYSUBRC .

DATA(ld_i_objname) = 'Check type of data required'.
DATA(ld_i_fromdate) = 'Check type of data required'.
DATA(ld_i_fromtime) = 'Check type of data required'.
DATA(ld_i_todate) = 'Check type of data required'.
DATA(ld_i_totime) = 'Check type of data required'. . CALL FUNCTION 'GRPCRTA_SAP_CHANGE_LOG_READ' EXPORTING i_objname = ld_i_objname i_fromdate = ld_i_fromdate i_fromtime = ld_i_fromtime i_todate = ld_i_todate i_totime = ld_i_totime IMPORTING et_changelog = ld_et_changelog e_return_code = ld_e_return_code . " GRPCRTA_SAP_CHANGE_LOG_READ
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_et_changelog  TYPE GRPCRTA_T_LOG ,
ld_i_objname  TYPE OB_OBJECT ,
ld_e_return_code  TYPE SYSUBRC ,
ld_i_fromdate  TYPE D ,
ld_i_fromtime  TYPE T ,
ld_i_todate  TYPE D ,
ld_i_totime  TYPE T .

ld_i_objname = 'Check type of data required'.
ld_i_fromdate = 'Check type of data required'.
ld_i_fromtime = 'Check type of data required'.
ld_i_todate = 'Check type of data required'.
ld_i_totime = 'Check type of data required'.

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