SAP RDB_RESULTS_WRITE Function Module for RDB Summensätze schreiben: Alle Werte (Verbuchung)
RDB_RESULTS_WRITE is a standard rdb results write SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RDB Summensätze schreiben: Alle Werte (Verbuchung) 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 rdb results write FM, simply by entering the name RDB_RESULTS_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RDB_INTF_RESULTS_WRITE
Program Name: SAPLRDB_INTF_RESULTS_WRITE
Main Program: SAPLRDB_INTF_RESULTS_WRITE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RDB_RESULTS_WRITE 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 'RDB_RESULTS_WRITE'"RDB Summensätze schreiben: Alle Werte (Verbuchung).
EXPORTING
* I_NSUM_GENVALUES_T = "Nichtadditive generische Werte
* I_KFCAT_TAB = "Kennzahltypen für spezifische Tabellen
* I_EXTERNAL_COMMIT = RDBIF_CON_FLAGS-TRUE "Externer Commit Work
* I_NSUM_CURRVALUES_T = "Nichtadditive Werte mit Währung
* I_SUM_GENVALUES_T = "Additive generische Werte
* I_SUM_CURRVALUES_T = "Additive Werte mit Währung
* I_NSUM_GENVALUES_RATIO_T = "Results Database Interface Table Type: Ratio Key Figures
I_KEYDATE = "Stichtag
I_APPLICATION = "Analyzer-Anwendung
I_EVALPROC_2 = "Analyzer-Auswertungsverfahren 2
* I_PHIERA = "Portfoliohierarchie
TABLES
* I_SPECIFIC_DATA_T1 = "Spezielle Daten
* I_SPECIFIC_DATA_T10 = "Spezielle Daten
* I_SPECIFIC_DATA_T2 = "Spezielle Daten
* I_SPECIFIC_DATA_T3 = "Spezielle Daten
* I_SPECIFIC_DATA_T4 = "Spezielle Daten
* I_SPECIFIC_DATA_T5 = "Spezielle Daten
* I_SPECIFIC_DATA_T6 = "Spezielle Daten
* I_SPECIFIC_DATA_T7 = "Spezielle Daten
* I_SPECIFIC_DATA_T8 = "Spezielle Daten
* I_SPECIFIC_DATA_T9 = "Spezielle Daten
EXCEPTIONS
INIT_ERROR = 1 INTERNAL_ERROR = 2 DUPLICATE_KEYS = 3
IMPORTING Parameters details for RDB_RESULTS_WRITE
I_NSUM_GENVALUES_T - Nichtadditive generische Werte
Data type: RDB_INTF_NSUM_GENVALUES_TABOptional: Yes
Call by Reference: Yes
I_KFCAT_TAB - Kennzahltypen für spezifische Tabellen
Data type: AFWKF_KFCATEGORY_TOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXTERNAL_COMMIT - Externer Commit Work
Data type: RDBIF_FLAGDefault: RDBIF_CON_FLAGS-TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NSUM_CURRVALUES_T - Nichtadditive Werte mit Währung
Data type: RDB_INTF_NSUM_CURRVALUES_TABOptional: Yes
Call by Reference: Yes
I_SUM_GENVALUES_T - Additive generische Werte
Data type: RDB_INTF_SUM_GENVALUES_TABOptional: Yes
Call by Reference: Yes
I_SUM_CURRVALUES_T - Additive Werte mit Währung
Data type: RDB_INTF_SUM_CURRVALUES_TABOptional: Yes
Call by Reference: Yes
I_NSUM_GENVALUES_RATIO_T - Results Database Interface Table Type: Ratio Key Figures
Data type: RDB_INTF_NSUM_GENVALUES_RAT_TOptional: Yes
Call by Reference: Yes
I_KEYDATE - Stichtag
Data type: AFW_KEYDATEOptional: No
Call by Reference: No ( called with pass by value option)
I_APPLICATION - Analyzer-Anwendung
Data type: AFW_APPLICATIONOptional: No
Call by Reference: No ( called with pass by value option)
I_EVALPROC_2 - Analyzer-Auswertungsverfahren 2
Data type: AFWGO_EVALPROC_2Optional: No
Call by Reference: No ( called with pass by value option)
I_PHIERA - Portfoliohierarchie
Data type: AFW_PHIERAOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RDB_RESULTS_WRITE
I_SPECIFIC_DATA_T1 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T10 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T2 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T3 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T4 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T5 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T6 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T7 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T8 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
I_SPECIFIC_DATA_T9 - Spezielle Daten
Data type:Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
INIT_ERROR - Keine oder fehlerhafte Initialisierung
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Fehler in der Verarbeitung
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DUPLICATE_KEYS - Doppelte Sätze auf der DB: Nichts verbucht
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RDB_RESULTS_WRITE 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_init_error | TYPE STRING, " | |||
| lv_i_nsum_genvalues_t | TYPE RDB_INTF_NSUM_GENVALUES_TAB, " | |||
| lt_i_specific_data_t1 | TYPE STANDARD TABLE OF RDB_INTF_NSUM_GENVALUES_TAB, " | |||
| lv_i_kfcat_tab | TYPE AFWKF_KFCATEGORY_T, " | |||
| lt_i_specific_data_t10 | TYPE STANDARD TABLE OF AFWKF_KFCATEGORY_T, " | |||
| lv_i_external_commit | TYPE RDBIF_FLAG, " RDBIF_CON_FLAGS-TRUE | |||
| lv_internal_error | TYPE RDBIF_FLAG, " | |||
| lt_i_specific_data_t2 | TYPE STANDARD TABLE OF RDBIF_FLAG, " | |||
| lv_i_nsum_currvalues_t | TYPE RDB_INTF_NSUM_CURRVALUES_TAB, " | |||
| lv_duplicate_keys | TYPE RDB_INTF_NSUM_CURRVALUES_TAB, " | |||
| lv_i_sum_genvalues_t | TYPE RDB_INTF_SUM_GENVALUES_TAB, " | |||
| lt_i_specific_data_t3 | TYPE STANDARD TABLE OF RDB_INTF_SUM_GENVALUES_TAB, " | |||
| lt_i_specific_data_t4 | TYPE STANDARD TABLE OF RDB_INTF_SUM_GENVALUES_TAB, " | |||
| lv_i_sum_currvalues_t | TYPE RDB_INTF_SUM_CURRVALUES_TAB, " | |||
| lt_i_specific_data_t5 | TYPE STANDARD TABLE OF RDB_INTF_SUM_CURRVALUES_TAB, " | |||
| lv_i_nsum_genvalues_ratio_t | TYPE RDB_INTF_NSUM_GENVALUES_RAT_T, " | |||
| lv_i_keydate | TYPE AFW_KEYDATE, " | |||
| lt_i_specific_data_t6 | TYPE STANDARD TABLE OF AFW_KEYDATE, " | |||
| lv_i_application | TYPE AFW_APPLICATION, " | |||
| lt_i_specific_data_t7 | TYPE STANDARD TABLE OF AFW_APPLICATION, " | |||
| lv_i_evalproc_2 | TYPE AFWGO_EVALPROC_2, " | |||
| lt_i_specific_data_t8 | TYPE STANDARD TABLE OF AFWGO_EVALPROC_2, " | |||
| lv_i_phiera | TYPE AFW_PHIERA, " | |||
| lt_i_specific_data_t9 | TYPE STANDARD TABLE OF AFW_PHIERA. " |
|   CALL FUNCTION 'RDB_RESULTS_WRITE' "RDB Summensätze schreiben: Alle Werte (Verbuchung) |
| EXPORTING | ||
| I_NSUM_GENVALUES_T | = lv_i_nsum_genvalues_t | |
| I_KFCAT_TAB | = lv_i_kfcat_tab | |
| I_EXTERNAL_COMMIT | = lv_i_external_commit | |
| I_NSUM_CURRVALUES_T | = lv_i_nsum_currvalues_t | |
| I_SUM_GENVALUES_T | = lv_i_sum_genvalues_t | |
| I_SUM_CURRVALUES_T | = lv_i_sum_currvalues_t | |
| I_NSUM_GENVALUES_RATIO_T | = lv_i_nsum_genvalues_ratio_t | |
| I_KEYDATE | = lv_i_keydate | |
| I_APPLICATION | = lv_i_application | |
| I_EVALPROC_2 | = lv_i_evalproc_2 | |
| I_PHIERA | = lv_i_phiera | |
| TABLES | ||
| I_SPECIFIC_DATA_T1 | = lt_i_specific_data_t1 | |
| I_SPECIFIC_DATA_T10 | = lt_i_specific_data_t10 | |
| I_SPECIFIC_DATA_T2 | = lt_i_specific_data_t2 | |
| I_SPECIFIC_DATA_T3 | = lt_i_specific_data_t3 | |
| I_SPECIFIC_DATA_T4 | = lt_i_specific_data_t4 | |
| I_SPECIFIC_DATA_T5 | = lt_i_specific_data_t5 | |
| I_SPECIFIC_DATA_T6 | = lt_i_specific_data_t6 | |
| I_SPECIFIC_DATA_T7 | = lt_i_specific_data_t7 | |
| I_SPECIFIC_DATA_T8 | = lt_i_specific_data_t8 | |
| I_SPECIFIC_DATA_T9 | = lt_i_specific_data_t9 | |
| EXCEPTIONS | ||
| INIT_ERROR = 1 | ||
| INTERNAL_ERROR = 2 | ||
| DUPLICATE_KEYS = 3 | ||
| . " RDB_RESULTS_WRITE | ||
ABAP code using 7.40 inline data declarations to call FM RDB_RESULTS_WRITE
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.| DATA(ld_i_external_commit) | = RDBIF_CON_FLAGS-TRUE. | |||
Search for further information about these or an SAP related objects