SAP RV_XVBUK_MAINTAIN Function Module for NOTRANSL: Statusermittlung Kopf









RV_XVBUK_MAINTAIN is a standard rv xvbuk maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Statusermittlung Kopf 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 rv xvbuk maintain FM, simply by entering the name RV_XVBUK_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

Function Group: V45P
Program Name: SAPLV45P
Main Program: SAPLV45P
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RV_XVBUK_MAINTAIN 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 'RV_XVBUK_MAINTAIN'"NOTRANSL: Statusermittlung Kopf
EXPORTING
F_VBELN = "Number of primary document of transaction
F_VBTYP = "Document category
* F_XVBUV_BERUECKSICHTIGEN = 'X' "X - determine completion status. Define XVBUV
* TVRO_WA = ' ' "
* TVLK_WA = ' ' "
* F_LIKP = ' ' "
* F_VBAK = ' ' "
* F_CLEAR_VBUK_FOR_DEL_ITEMS = ' ' "
* F_VBTYP_EXT = ' ' "

IMPORTING
E_VBUK_CHANGE = "VBUK has been changed

TABLES
FXVBUK = "Corresponds to XVBUK (sorted)
FXVBUP = "Corresponds to XVBUP (sorted)
FXVBUV = "Corresponds to XVBUV
FYVBUK = "Corresponds to YVBUK
* FXVBFA = "
* FXFPLT = "
* FXVTTK = "Shipment header data (for transportation planning pt status)
* FXLIKP = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV45P_002 User Exit: Transfer of Conditions into Cost

IMPORTING Parameters details for RV_XVBUK_MAINTAIN

F_VBELN - Number of primary document of transaction

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

F_VBTYP - Document category

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

F_XVBUV_BERUECKSICHTIGEN - X - determine completion status. Define XVBUV

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

TVRO_WA -

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

TVLK_WA -

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

F_LIKP -

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

F_VBAK -

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

F_CLEAR_VBUK_FOR_DEL_ITEMS -

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

F_VBTYP_EXT -

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

EXPORTING Parameters details for RV_XVBUK_MAINTAIN

E_VBUK_CHANGE - VBUK has been changed

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

TABLES Parameters details for RV_XVBUK_MAINTAIN

FXVBUK - Corresponds to XVBUK (sorted)

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

FXVBUP - Corresponds to XVBUP (sorted)

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

FXVBUV - Corresponds to XVBUV

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

FYVBUK - Corresponds to YVBUK

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

FXVBFA -

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

FXFPLT -

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

FXVTTK - Shipment header data (for transportation planning pt status)

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

FXLIKP -

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

Copy and paste ABAP code example for RV_XVBUK_MAINTAIN 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:
lt_fxvbuk  TYPE STANDARD TABLE OF VBUKVB, "   
lv_f_vbeln  TYPE VBAK-VBELN, "   
lv_e_vbuk_change  TYPE VBAK, "   
lt_fxvbup  TYPE STANDARD TABLE OF VBUPVB, "   
lv_f_vbtyp  TYPE VBAK-VBTYP, "   
lt_fxvbuv  TYPE STANDARD TABLE OF VBUVVB, "   
lv_f_xvbuv_beruecksichtigen  TYPE VBUVVB, "   'X'
lt_fyvbuk  TYPE STANDARD TABLE OF VBUKVB, "   
lv_tvro_wa  TYPE TVRO, "   SPACE
lt_fxvbfa  TYPE STANDARD TABLE OF VBFAVB, "   
lv_tvlk_wa  TYPE TVLK, "   SPACE
lt_fxfplt  TYPE STANDARD TABLE OF FPLTVB, "   
lv_f_likp  TYPE LIKP, "   SPACE
lt_fxvttk  TYPE STANDARD TABLE OF VTTKVB, "   
lv_f_vbak  TYPE VBAK, "   SPACE
lt_fxlikp  TYPE STANDARD TABLE OF LIKPVB, "   
lv_f_clear_vbuk_for_del_items  TYPE CHAR1, "   SPACE
lv_f_vbtyp_ext  TYPE TDD_VBTYP_EXT. "   SPACE

  CALL FUNCTION 'RV_XVBUK_MAINTAIN'  "NOTRANSL: Statusermittlung Kopf
    EXPORTING
         F_VBELN = lv_f_vbeln
         F_VBTYP = lv_f_vbtyp
         F_XVBUV_BERUECKSICHTIGEN = lv_f_xvbuv_beruecksichtigen
         TVRO_WA = lv_tvro_wa
         TVLK_WA = lv_tvlk_wa
         F_LIKP = lv_f_likp
         F_VBAK = lv_f_vbak
         F_CLEAR_VBUK_FOR_DEL_ITEMS = lv_f_clear_vbuk_for_del_items
         F_VBTYP_EXT = lv_f_vbtyp_ext
    IMPORTING
         E_VBUK_CHANGE = lv_e_vbuk_change
    TABLES
         FXVBUK = lt_fxvbuk
         FXVBUP = lt_fxvbup
         FXVBUV = lt_fxvbuv
         FYVBUK = lt_fyvbuk
         FXVBFA = lt_fxvbfa
         FXFPLT = lt_fxfplt
         FXVTTK = lt_fxvttk
         FXLIKP = lt_fxlikp
. " RV_XVBUK_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM RV_XVBUK_MAINTAIN

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 VBELN FROM VBAK INTO @DATA(ld_f_vbeln).
 
 
 
"SELECT single VBTYP FROM VBAK INTO @DATA(ld_f_vbtyp).
 
 
DATA(ld_f_xvbuv_beruecksichtigen) = 'X'.
 
 
DATA(ld_tvro_wa) = ' '.
 
 
DATA(ld_tvlk_wa) = ' '.
 
 
DATA(ld_f_likp) = ' '.
 
 
DATA(ld_f_vbak) = ' '.
 
 
DATA(ld_f_clear_vbuk_for_del_items) = ' '.
 
DATA(ld_f_vbtyp_ext) = ' '.
 


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!