SAP Function Modules

RV_DOCUMENT_STATUS_UPDATE SAP Function module







RV_DOCUMENT_STATUS_UPDATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RV_DOCUMENT_STATUS_UPDATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V45V
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM RV_DOCUMENT_STATUS_UPDATE - RV DOCUMENT STATUS UPDATE





CALL FUNCTION 'RV_DOCUMENT_STATUS_UPDATE' "
* EXPORTING
*   f_vbeln = SPACE             " vbak-vbeln    Document number of the current document
  TABLES
    fxvbfa =                    " vbfavb        Corresponds to XVBFA
    fxvbuk =                    " vbukvb        Corresponds to XVBUK
    fxvbup =                    " vbupvb        Corresponds to XVBUP
    fyvbfa =                    " vbfavb        Corresponds to YVBFA
    fyvbuk =                    " vbukvb        Corresponds to YVBUK
    fyvbup =                    " vbupvb        Corresponds to YVBUP
    .  "  RV_DOCUMENT_STATUS_UPDATE

ABAP code example for Function Module RV_DOCUMENT_STATUS_UPDATE





The ABAP code below is a full code listing to execute function module RV_DOCUMENT_STATUS_UPDATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_fxvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_fxvbfa  LIKE LINE OF it_fxvbfa ,
it_fxvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_fxvbuk  LIKE LINE OF it_fxvbuk ,
it_fxvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_fxvbup  LIKE LINE OF it_fxvbup ,
it_fyvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_fyvbfa  LIKE LINE OF it_fyvbfa ,
it_fyvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_fyvbuk  LIKE LINE OF it_fyvbuk ,
it_fyvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_fyvbup  LIKE LINE OF it_fyvbup .


SELECT single VBELN
FROM VBAK
INTO @DATA(ld_f_vbeln).


"populate fields of struture and append to itab
append wa_fxvbfa to it_fxvbfa.

"populate fields of struture and append to itab
append wa_fxvbuk to it_fxvbuk.

"populate fields of struture and append to itab
append wa_fxvbup to it_fxvbup.

"populate fields of struture and append to itab
append wa_fyvbfa to it_fyvbfa.

"populate fields of struture and append to itab
append wa_fyvbuk to it_fyvbuk.

"populate fields of struture and append to itab
append wa_fyvbup to it_fyvbup. . CALL FUNCTION 'RV_DOCUMENT_STATUS_UPDATE' * EXPORTING * f_vbeln = ld_f_vbeln TABLES fxvbfa = it_fxvbfa fxvbuk = it_fxvbuk fxvbup = it_fxvbup fyvbfa = it_fyvbfa fyvbuk = it_fyvbuk fyvbup = it_fyvbup . " RV_DOCUMENT_STATUS_UPDATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_f_vbeln  TYPE VBAK-VBELN ,
it_fxvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_fxvbfa  LIKE LINE OF it_fxvbfa,
it_fxvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_fxvbuk  LIKE LINE OF it_fxvbuk,
it_fxvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_fxvbup  LIKE LINE OF it_fxvbup,
it_fyvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_fyvbfa  LIKE LINE OF it_fyvbfa,
it_fyvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_fyvbuk  LIKE LINE OF it_fyvbuk,
it_fyvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_fyvbup  LIKE LINE OF it_fyvbup.


SELECT single VBELN
FROM VBAK
INTO ld_f_vbeln.


"populate fields of struture and append to itab
append wa_fxvbfa to it_fxvbfa.

"populate fields of struture and append to itab
append wa_fxvbuk to it_fxvbuk.

"populate fields of struture and append to itab
append wa_fxvbup to it_fxvbup.

"populate fields of struture and append to itab
append wa_fyvbfa to it_fyvbfa.

"populate fields of struture and append to itab
append wa_fyvbuk to it_fyvbuk.

"populate fields of struture and append to itab
append wa_fyvbup to it_fyvbup.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RV_DOCUMENT_STATUS_UPDATE or its description.