SAP EXPORT_RM_TO_MEMORY Function Module for Exportiert Daten von RM-Auswertungen ins Memory









EXPORT_RM_TO_MEMORY is a standard export rm to memory SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Exportiert Daten von RM-Auswertungen ins Memory 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 export rm to memory FM, simply by entering the name EXPORT_RM_TO_MEMORY into the relevant SAP transaction such as SE37 or SE38.

Function Group: JBRH
Program Name: SAPLJBRH
Main Program: SAPLJBRH
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXPORT_RM_TO_MEMORY 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 'EXPORT_RM_TO_MEMORY'"Exportiert Daten von RM-Auswertungen ins Memory
EXPORTING
* RHID = "Risikohierarchie-ID
* DATE = "Auswertungsdatum
* IS_JBRGAPPARAMETER = "Parameter der Gap-Selektion
* I_TABNAME = "Name der Recherchestruktur
* I_PROGNM = ' ' "Name des generierten Berichts

TABLES
* IT_JBRPHBAUM = "Baumstruktur der Portfoliohierarchie
* IT_HTEXT_TAB = "Namenstabelle für den Portfoliobaum
* IT_JBRRPBW = "Ergebnis Barwert
* IT_JBRRPHSVAR = "Ergebnis VaR
* IT_JBRRPHSGUV = "Ergebnis GuV
* IT_JBRREPGAP = "(Zwischen)Ergebnis Gap
* IT_JBRBP = "Basisportfolien, auf denen Ergebnis beruht
* IT_REP_SELTAB = "Selektionstabelle Reportingmerkmale
.



IMPORTING Parameters details for EXPORT_RM_TO_MEMORY

RHID - Risikohierarchie-ID

Data type: JBRRH-RHID
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATE - Auswertungsdatum

Data type: JBRHSSPARI-DATUM
Optional: Yes
Call by Reference: Yes

IS_JBRGAPPARAMETER - Parameter der Gap-Selektion

Data type: JBRGAPPARAMETER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TABNAME - Name der Recherchestruktur

Data type: RKB1X-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROGNM - Name des generierten Berichts

Data type: RS38M-PROGRAMM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EXPORT_RM_TO_MEMORY

IT_JBRPHBAUM - Baumstruktur der Portfoliohierarchie

Data type: JBRPHBAUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_HTEXT_TAB - Namenstabelle für den Portfoliobaum

Data type: JBRNAMEDAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_JBRRPBW - Ergebnis Barwert

Data type: JBRRPBW
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_JBRRPHSVAR - Ergebnis VaR

Data type: JBRRPHSVAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_JBRRPHSGUV - Ergebnis GuV

Data type: JBRRPHSGUV
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_JBRREPGAP - (Zwischen)Ergebnis Gap

Data type: JBRREPGAP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_JBRBP - Basisportfolien, auf denen Ergebnis beruht

Data type: JBRBP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_REP_SELTAB - Selektionstabelle Reportingmerkmale

Data type: CEDST
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXPORT_RM_TO_MEMORY 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_rhid  TYPE JBRRH-RHID, "   
lt_it_jbrphbaum  TYPE STANDARD TABLE OF JBRPHBAUM, "   
lv_date  TYPE JBRHSSPARI-DATUM, "   
lt_it_htext_tab  TYPE STANDARD TABLE OF JBRNAMEDAT, "   
lt_it_jbrrpbw  TYPE STANDARD TABLE OF JBRRPBW, "   
lv_is_jbrgapparameter  TYPE JBRGAPPARAMETER, "   
lv_i_tabname  TYPE RKB1X-TABNAME, "   
lt_it_jbrrphsvar  TYPE STANDARD TABLE OF JBRRPHSVAR, "   
lv_i_prognm  TYPE RS38M-PROGRAMM, "   SPACE
lt_it_jbrrphsguv  TYPE STANDARD TABLE OF JBRRPHSGUV, "   
lt_it_jbrrepgap  TYPE STANDARD TABLE OF JBRREPGAP, "   
lt_it_jbrbp  TYPE STANDARD TABLE OF JBRBP, "   
lt_it_rep_seltab  TYPE STANDARD TABLE OF CEDST. "   

  CALL FUNCTION 'EXPORT_RM_TO_MEMORY'  "Exportiert Daten von RM-Auswertungen ins Memory
    EXPORTING
         RHID = lv_rhid
         DATE = lv_date
         IS_JBRGAPPARAMETER = lv_is_jbrgapparameter
         I_TABNAME = lv_i_tabname
         I_PROGNM = lv_i_prognm
    TABLES
         IT_JBRPHBAUM = lt_it_jbrphbaum
         IT_HTEXT_TAB = lt_it_htext_tab
         IT_JBRRPBW = lt_it_jbrrpbw
         IT_JBRRPHSVAR = lt_it_jbrrphsvar
         IT_JBRRPHSGUV = lt_it_jbrrphsguv
         IT_JBRREPGAP = lt_it_jbrrepgap
         IT_JBRBP = lt_it_jbrbp
         IT_REP_SELTAB = lt_it_rep_seltab
. " EXPORT_RM_TO_MEMORY




ABAP code using 7.40 inline data declarations to call FM EXPORT_RM_TO_MEMORY

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 RHID FROM JBRRH INTO @DATA(ld_rhid).
 
 
"SELECT single DATUM FROM JBRHSSPARI INTO @DATA(ld_date).
 
 
 
 
"SELECT single TABNAME FROM RKB1X INTO @DATA(ld_i_tabname).
 
 
"SELECT single PROGRAMM FROM RS38M INTO @DATA(ld_i_prognm).
DATA(ld_i_prognm) = ' '.
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!