SAP CO_BC_RSDB_READ_WITH_KEY Function Module for NOTRANSL: Besorgen der RSDB Daten zu einer Reservierung
CO_BC_RSDB_READ_WITH_KEY is a standard co bc rsdb read with key SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Besorgen der RSDB Daten zu einer Reservierung processing and below is the pattern details for this FM, 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 co bc rsdb read with key FM, simply by entering the name CO_BC_RSDB_READ_WITH_KEY into the relevant SAP transaction such as SE37 or SE38.
Function Group: COBC
Program Name: SAPLCOBC
Main Program: SAPLCOBC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_BC_RSDB_READ_WITH_KEY 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 'CO_BC_RSDB_READ_WITH_KEY'"NOTRANSL: Besorgen der RSDB Daten zu einer Reservierung.
EXPORTING
I_RSNUM = "Number of Reservation / Dependent Requirement
I_RSPOS = "Item Number of Reservation/Dependent Requirement
I_RSART = "Record Type
IMPORTING
ES_RSDB = "Buffer table structure RSDB
E_INDEX = "Internal Tables, Current Row Index
EXCEPTIONS
NOTHING_FOUND = 1
IMPORTING Parameters details for CO_BC_RSDB_READ_WITH_KEY
I_RSNUM - Number of Reservation / Dependent Requirement
Data type: RESB-RSNUMOptional: No
Call by Reference: Yes
I_RSPOS - Item Number of Reservation/Dependent Requirement
Data type: RESB-RSPOSOptional: No
Call by Reference: Yes
I_RSART - Record Type
Data type: RESB-RSARTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CO_BC_RSDB_READ_WITH_KEY
ES_RSDB - Buffer table structure RSDB
Data type: RSDBBOptional: No
Call by Reference: Yes
E_INDEX - Internal Tables, Current Row Index
Data type: SY-TABIXOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CO_BC_RSDB_READ_WITH_KEY 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_es_rsdb | TYPE RSDBB, " | |||
| lv_i_rsnum | TYPE RESB-RSNUM, " | |||
| lv_nothing_found | TYPE RESB, " | |||
| lv_e_index | TYPE SY-TABIX, " | |||
| lv_i_rspos | TYPE RESB-RSPOS, " | |||
| lv_i_rsart | TYPE RESB-RSART. " |
|   CALL FUNCTION 'CO_BC_RSDB_READ_WITH_KEY' "NOTRANSL: Besorgen der RSDB Daten zu einer Reservierung |
| EXPORTING | ||
| I_RSNUM | = lv_i_rsnum | |
| I_RSPOS | = lv_i_rspos | |
| I_RSART | = lv_i_rsart | |
| IMPORTING | ||
| ES_RSDB | = lv_es_rsdb | |
| E_INDEX | = lv_e_index | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| . " CO_BC_RSDB_READ_WITH_KEY | ||
ABAP code using 7.40 inline data declarations to call FM CO_BC_RSDB_READ_WITH_KEY
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 RSNUM FROM RESB INTO @DATA(ld_i_rsnum). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_e_index). | ||||
| "SELECT single RSPOS FROM RESB INTO @DATA(ld_i_rspos). | ||||
| "SELECT single RSART FROM RESB INTO @DATA(ld_i_rsart). | ||||
Search for further information about these or an SAP related objects