SAP RM_RC_VERSION_WRITE Function Module for RM: Schreiben der Versions-Tabellen Datums-abhängig









RM_RC_VERSION_WRITE is a standard rm rc version 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 RM: Schreiben der Versions-Tabellen Datums-abhängig 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 rc version write FM, simply by entering the name RM_RC_VERSION_WRITE into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_RC_VERSION_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 'RM_RC_VERSION_WRITE'"RM: Schreiben der Versions-Tabellen Datums-abhängig
EXPORTING
* I_DATE = SY-DATUM "
* I_IT_OBJNR = "

TABLES
I_IT_KO = "
I_IT_KOET = "
I_IT_ABEST = "
I_IT_OPTI = "
I_IT_BEWEG = "
I_IT_COMBEWEG = "hRM: Version Table BEWEG for Extended Cat. of Primary Trans.
I_IT_FML = "
I_IT_HIER = "

EXCEPTIONS
NO_DELETE = 1 ERROR_KO = 2 ERROR_KOET = 3 ERROR_ABEST = 4 ERROR_OPTI = 5 ERROR_BEWEG = 6 ERROR_FML = 7 ERROR_HIER = 8 ERROR_COMBEWEG = 9
.



IMPORTING Parameters details for RM_RC_VERSION_WRITE

I_DATE -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IT_OBJNR -

Data type: JBO01_BAPIOBJNR_TAB
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for RM_RC_VERSION_WRITE

I_IT_KO -

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

I_IT_KOET -

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

I_IT_ABEST -

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

I_IT_OPTI -

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

I_IT_BEWEG -

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

I_IT_COMBEWEG - hRM: Version Table BEWEG for Extended Cat. of Primary Trans.

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

I_IT_FML -

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

I_IT_HIER -

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

EXCEPTIONS details

NO_DELETE -

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

ERROR_KO -

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

ERROR_KOET -

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

ERROR_ABEST -

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

ERROR_OPTI -

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

ERROR_BEWEG -

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

ERROR_FML -

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

ERROR_HIER -

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

ERROR_COMBEWEG -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RM_RC_VERSION_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_i_date  TYPE SY-DATUM, "   SY-DATUM
lt_i_it_ko  TYPE STANDARD TABLE OF JBRHKO, "   
lv_no_delete  TYPE JBRHKO, "   
lv_error_ko  TYPE JBRHKO, "   
lt_i_it_koet  TYPE STANDARD TABLE OF JBRHKOET, "   
lv_i_it_objnr  TYPE JBO01_BAPIOBJNR_TAB, "   
lv_error_koet  TYPE JBO01_BAPIOBJNR_TAB, "   
lt_i_it_abest  TYPE STANDARD TABLE OF JBRHABEST, "   
lt_i_it_opti  TYPE STANDARD TABLE OF JBRHOPTI, "   
lv_error_abest  TYPE JBRHOPTI, "   
lv_error_opti  TYPE JBRHOPTI, "   
lt_i_it_beweg  TYPE STANDARD TABLE OF JBRHBEWEG, "   
lv_error_beweg  TYPE JBRHBEWEG, "   
lt_i_it_combeweg  TYPE STANDARD TABLE OF JBRHCOMBEWEG, "   
lt_i_it_fml  TYPE STANDARD TABLE OF JBRHFML, "   
lv_error_fml  TYPE JBRHFML, "   
lt_i_it_hier  TYPE STANDARD TABLE OF JBRHHIER, "   
lv_error_hier  TYPE JBRHHIER, "   
lv_error_combeweg  TYPE JBRHHIER. "   

  CALL FUNCTION 'RM_RC_VERSION_WRITE'  "RM: Schreiben der Versions-Tabellen Datums-abhängig
    EXPORTING
         I_DATE = lv_i_date
         I_IT_OBJNR = lv_i_it_objnr
    TABLES
         I_IT_KO = lt_i_it_ko
         I_IT_KOET = lt_i_it_koet
         I_IT_ABEST = lt_i_it_abest
         I_IT_OPTI = lt_i_it_opti
         I_IT_BEWEG = lt_i_it_beweg
         I_IT_COMBEWEG = lt_i_it_combeweg
         I_IT_FML = lt_i_it_fml
         I_IT_HIER = lt_i_it_hier
    EXCEPTIONS
        NO_DELETE = 1
        ERROR_KO = 2
        ERROR_KOET = 3
        ERROR_ABEST = 4
        ERROR_OPTI = 5
        ERROR_BEWEG = 6
        ERROR_FML = 7
        ERROR_HIER = 8
        ERROR_COMBEWEG = 9
. " RM_RC_VERSION_WRITE




ABAP code using 7.40 inline data declarations to call FM RM_RC_VERSION_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.

"SELECT single DATUM FROM SY INTO @DATA(ld_i_date).
DATA(ld_i_date) = SY-DATUM.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!