SAP Function Modules

RECHERCHE_READ_TR_READ SAP Function module







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

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


Pattern for FM RECHERCHE_READ_TR_READ - RECHERCHE READ TR READ





CALL FUNCTION 'RECHERCHE_READ_TR_READ' "
  EXPORTING
    handle =                    " rkb1d-trhandle  Handle for reading from summarization data
*   read_actual = ' '           " ceddb-flag    Flag: current data from line items (CO-PA)
*   read_dirty = 'X'            " ceddb-flag    Flag: read without locking (only for READ_ACTUAL=X)
*   show_progress = 'X'         " ceddb-flag    Flag: display progress indicator
*   i_use_db_aggregation = 'X'  " ceddb-flag
    s_program_name =            " ceddb-program  Program that contains the processing routines
    s_form_name =               " ceddb-dataform  Routine for processing the data
  IMPORTING
    timestmp =                  " ceddb-timestmp  Time stamp of the data that was read (READ_DIRTY=' ')
  EXCEPTIONS
    HANDLE_INVALID = 1          "               Handle not valid
    FOREIGN_LOCK = 2            "               Summarization levels locked (for READ_DIRTY=' ')
    .  "  RECHERCHE_READ_TR_READ

ABAP code example for Function Module RECHERCHE_READ_TR_READ





The ABAP code below is a full code listing to execute function module RECHERCHE_READ_TR_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_timestmp  TYPE CEDDB-TIMESTMP .


DATA(ld_handle) = Check type of data required

DATA(ld_read_actual) = some text here

DATA(ld_read_dirty) = some text here

DATA(ld_show_progress) = some text here

DATA(ld_i_use_db_aggregation) = some text here

DATA(ld_s_program_name) = some text here

DATA(ld_s_form_name) = some text here . CALL FUNCTION 'RECHERCHE_READ_TR_READ' EXPORTING handle = ld_handle * read_actual = ld_read_actual * read_dirty = ld_read_dirty * show_progress = ld_show_progress * i_use_db_aggregation = ld_i_use_db_aggregation s_program_name = ld_s_program_name s_form_name = ld_s_form_name IMPORTING timestmp = ld_timestmp EXCEPTIONS HANDLE_INVALID = 1 FOREIGN_LOCK = 2 . " RECHERCHE_READ_TR_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_timestmp  TYPE CEDDB-TIMESTMP ,
ld_handle  TYPE RKB1D-TRHANDLE ,
ld_read_actual  TYPE CEDDB-FLAG ,
ld_read_dirty  TYPE CEDDB-FLAG ,
ld_show_progress  TYPE CEDDB-FLAG ,
ld_i_use_db_aggregation  TYPE CEDDB-FLAG ,
ld_s_program_name  TYPE CEDDB-PROGRAM ,
ld_s_form_name  TYPE CEDDB-DATAFORM .


ld_handle = Check type of data required

ld_read_actual = some text here

ld_read_dirty = some text here

ld_show_progress = some text here

ld_i_use_db_aggregation = some text here

ld_s_program_name = some text here

ld_s_form_name = 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 RECHERCHE_READ_TR_READ or its description.