SAP RECHERCHE_READ_TR_PREPARE Function Module for
RECHERCHE_READ_TR_PREPARE is a standard recherche read tr prepare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 recherche read tr prepare FM, simply by entering the name RECHERCHE_READ_TR_PREPARE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KEDC
Program Name: SAPLKEDC
Main Program: SAPLKEDC
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RECHERCHE_READ_TR_PREPARE 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 'RECHERCHE_READ_TR_PREPARE'".
EXPORTING
APPLCLASS = "
* SUBCLASS = '01' "
TABNAME = "
* ACTUAL_DATA_REQUIRED = 'X' "
* T_ORDER_BY_FIELDS = "
* CALLER_APPL = '00' "
* CALLER_DETAIL = ' ' "
* WRITE_PROTOCOL = 'X' "
* READ_MODE = "
IMPORTING
HANDLE = "
MODE = "
ACTUAL_DATA_POSSIBLE = "
TABLES
SELECTION_TABLE = "
* SELECTED_FIELDS = "
IMPORTING Parameters details for RECHERCHE_READ_TR_PREPARE
APPLCLASS -
Data type: TKETR-APPLCLASSOptional: No
Call by Reference: No ( called with pass by value option)
SUBCLASS -
Data type: TKETR-SUBCLASSDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABNAME -
Data type: TKETR-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
ACTUAL_DATA_REQUIRED -
Data type: CEDDB-FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
T_ORDER_BY_FIELDS -
Data type: KED1_T_ORDER_BYOptional: Yes
Call by Reference: Yes
CALLER_APPL -
Data type: TKETRPROT-CALLER_APPLDefault: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLER_DETAIL -
Data type: TKETRPROT-CALLER_DETAILDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WRITE_PROTOCOL -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_MODE -
Data type: RKE_READ_MODEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RECHERCHE_READ_TR_PREPARE
HANDLE -
Data type: RKB1D-TRHANDLEOptional: No
Call by Reference: No ( called with pass by value option)
MODE -
Data type: RKB1D-TRMODEOptional: No
Call by Reference: No ( called with pass by value option)
ACTUAL_DATA_POSSIBLE -
Data type: CEDDB-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RECHERCHE_READ_TR_PREPARE
SELECTION_TABLE -
Data type: CEDSTOptional: No
Call by Reference: No ( called with pass by value option)
SELECTED_FIELDS -
Data type: CFBSF01Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RECHERCHE_READ_TR_PREPARE 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_handle | TYPE RKB1D-TRHANDLE, " | |||
| lv_applclass | TYPE TKETR-APPLCLASS, " | |||
| lt_selection_table | TYPE STANDARD TABLE OF CEDST, " | |||
| lv_mode | TYPE RKB1D-TRMODE, " | |||
| lv_subclass | TYPE TKETR-SUBCLASS, " '01' | |||
| lt_selected_fields | TYPE STANDARD TABLE OF CFBSF01, " | |||
| lv_tabname | TYPE TKETR-TABNAME, " | |||
| lv_actual_data_possible | TYPE CEDDB-FLAG, " | |||
| lv_actual_data_required | TYPE CEDDB-FLAG, " 'X' | |||
| lv_t_order_by_fields | TYPE KED1_T_ORDER_BY, " | |||
| lv_caller_appl | TYPE TKETRPROT-CALLER_APPL, " '00' | |||
| lv_caller_detail | TYPE TKETRPROT-CALLER_DETAIL, " ' ' | |||
| lv_write_protocol | TYPE FLAG, " 'X' | |||
| lv_read_mode | TYPE RKE_READ_MODE. " |
|   CALL FUNCTION 'RECHERCHE_READ_TR_PREPARE' " |
| EXPORTING | ||
| APPLCLASS | = lv_applclass | |
| SUBCLASS | = lv_subclass | |
| TABNAME | = lv_tabname | |
| ACTUAL_DATA_REQUIRED | = lv_actual_data_required | |
| T_ORDER_BY_FIELDS | = lv_t_order_by_fields | |
| CALLER_APPL | = lv_caller_appl | |
| CALLER_DETAIL | = lv_caller_detail | |
| WRITE_PROTOCOL | = lv_write_protocol | |
| READ_MODE | = lv_read_mode | |
| IMPORTING | ||
| HANDLE | = lv_handle | |
| MODE | = lv_mode | |
| ACTUAL_DATA_POSSIBLE | = lv_actual_data_possible | |
| TABLES | ||
| SELECTION_TABLE | = lt_selection_table | |
| SELECTED_FIELDS | = lt_selected_fields | |
| . " RECHERCHE_READ_TR_PREPARE | ||
ABAP code using 7.40 inline data declarations to call FM RECHERCHE_READ_TR_PREPARE
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 TRHANDLE FROM RKB1D INTO @DATA(ld_handle). | ||||
| "SELECT single APPLCLASS FROM TKETR INTO @DATA(ld_applclass). | ||||
| "SELECT single TRMODE FROM RKB1D INTO @DATA(ld_mode). | ||||
| "SELECT single SUBCLASS FROM TKETR INTO @DATA(ld_subclass). | ||||
| DATA(ld_subclass) | = '01'. | |||
| "SELECT single TABNAME FROM TKETR INTO @DATA(ld_tabname). | ||||
| "SELECT single FLAG FROM CEDDB INTO @DATA(ld_actual_data_possible). | ||||
| "SELECT single FLAG FROM CEDDB INTO @DATA(ld_actual_data_required). | ||||
| DATA(ld_actual_data_required) | = 'X'. | |||
| "SELECT single CALLER_APPL FROM TKETRPROT INTO @DATA(ld_caller_appl). | ||||
| DATA(ld_caller_appl) | = '00'. | |||
| "SELECT single CALLER_DETAIL FROM TKETRPROT INTO @DATA(ld_caller_detail). | ||||
| DATA(ld_caller_detail) | = ' '. | |||
| DATA(ld_write_protocol) | = 'X'. | |||
Search for further information about these or an SAP related objects