SAP RM_READ_HIST_STATE_OF_DATA Function Module for RM: Lesen eines gesicherten Datenstandes von der Datenbank (V3 -> SFGDTs)









RM_READ_HIST_STATE_OF_DATA is a standard rm read hist state of data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RM: Lesen eines gesicherten Datenstandes von der Datenbank (V3 -> SFGDTs) 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 rm read hist state of data FM, simply by entering the name RM_READ_HIST_STATE_OF_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: JBRB
Program Name: SAPLJBRB
Main Program: SAPLJBRB
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RM_READ_HIST_STATE_OF_DATA 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 'RM_READ_HIST_STATE_OF_DATA'"RM: Lesen eines gesicherten Datenstandes von der Datenbank (V3 -> SFGDTs)
EXPORTING
HIST_STATE_ID = "ID des gesicherten Datenstandes

IMPORTING
SFGDT = "gesicherte (zurückgelesene) SFGDTs

TABLES
IT_FOB = "Objekttabelle: enthält alle zu lesenden Objekte
ERROR_ITAB = "Fehlertabelle

EXCEPTIONS
INPUT_DATA_ERROR = 1 NO_SUCH_STATE_OF_DATA = 2 SFGDT_REBUILD_ERROR = 3
.



IMPORTING Parameters details for RM_READ_HIST_STATE_OF_DATA

HIST_STATE_ID - ID des gesicherten Datenstandes

Data type: JBRSVKO-SV_STATE_ID
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for RM_READ_HIST_STATE_OF_DATA

SFGDT - gesicherte (zurückgelesene) SFGDTs

Data type: TVS_SFGDT_TAB
Optional: No
Call by Reference: Yes

TABLES Parameters details for RM_READ_HIST_STATE_OF_DATA

IT_FOB - Objekttabelle: enthält alle zu lesenden Objekte

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

ERROR_ITAB - Fehlertabelle

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

EXCEPTIONS details

INPUT_DATA_ERROR - FOB-Tabelle ist leer (Ausschluß Full Table Scan)

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

NO_SUCH_STATE_OF_DATA - keine Daten gefunden

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

SFGDT_REBUILD_ERROR - Fehler beim Wiederaufbau der SFGDTs

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

Copy and paste ABAP code example for RM_READ_HIST_STATE_OF_DATA 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_sfgdt  TYPE TVS_SFGDT_TAB, "   
lt_it_fob  TYPE STANDARD TABLE OF JBRFOB, "   
lv_hist_state_id  TYPE JBRSVKO-SV_STATE_ID, "   
lv_input_data_error  TYPE JBRSVKO, "   
lt_error_itab  TYPE STANDARD TABLE OF BAPIERR, "   
lv_no_such_state_of_data  TYPE BAPIERR, "   
lv_sfgdt_rebuild_error  TYPE BAPIERR. "   

  CALL FUNCTION 'RM_READ_HIST_STATE_OF_DATA'  "RM: Lesen eines gesicherten Datenstandes von der Datenbank (V3 -> SFGDTs)
    EXPORTING
         HIST_STATE_ID = lv_hist_state_id
    IMPORTING
         SFGDT = lv_sfgdt
    TABLES
         IT_FOB = lt_it_fob
         ERROR_ITAB = lt_error_itab
    EXCEPTIONS
        INPUT_DATA_ERROR = 1
        NO_SUCH_STATE_OF_DATA = 2
        SFGDT_REBUILD_ERROR = 3
. " RM_READ_HIST_STATE_OF_DATA




ABAP code using 7.40 inline data declarations to call FM RM_READ_HIST_STATE_OF_DATA

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 SV_STATE_ID FROM JBRSVKO INTO @DATA(ld_hist_state_id).
 
 
 
 
 


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!