SAP RV_REQUIREMENT_DELETE Function Module for Deleting a Single Requirements Record before the Availability Check









RV_REQUIREMENT_DELETE is a standard rv requirement delete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deleting a Single Requirements Record before the Availability Check 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 requirement delete FM, simply by entering the name RV_REQUIREMENT_DELETE into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_REQUIREMENT_DELETE 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_REQUIREMENT_DELETE'"Deleting a Single Requirements Record before the Availability Check
EXPORTING
AVBBD_TABIX = "
* LOGIC_CONT = "V03V: Control String for ATP Flow and Logic
* BEDARF_VERRECHNEN = ' ' "
BELEG = "
POSITION = "
* PZMNG_LOESCHEN = ' ' "
* PRUEFGRUPPE = "
* AUFRUFER = CHARB "
* VBTYP = ' ' "
* BPROC = "ATP: Business Transaction for ATP

IMPORTING
EF_POSGUID = "

TABLES
AVBBD = "
* XMVERF_POS = "
* XQUOT_VB = "Product Allocation:Product Allocation Contents from Document
* XQUOT_CH = "Product Allocation: Characteristics
* VVBFS = "Error Log for Collective Processing
.



IMPORTING Parameters details for RV_REQUIREMENT_DELETE

AVBBD_TABIX -

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

LOGIC_CONT - V03V: Control String for ATP Flow and Logic

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

BEDARF_VERRECHNEN -

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

BELEG -

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

POSITION -

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

PZMNG_LOESCHEN -

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

PRUEFGRUPPE -

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

AUFRUFER -

Data type: TMVFP-OBVFP
Default: CHARB
Optional: Yes
Call by Reference: No ( called with pass by value option)

VBTYP -

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

BPROC - ATP: Business Transaction for ATP

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

EXPORTING Parameters details for RV_REQUIREMENT_DELETE

EF_POSGUID -

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

TABLES Parameters details for RV_REQUIREMENT_DELETE

AVBBD -

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

XMVERF_POS -

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

XQUOT_VB - Product Allocation:Product Allocation Contents from Document

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

XQUOT_CH - Product Allocation: Characteristics

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

VVBFS - Error Log for Collective Processing

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

Copy and paste ABAP code example for RV_REQUIREMENT_DELETE 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_avbbd  TYPE STANDARD TABLE OF BV03V, "   
lv_ef_posguid  TYPE POSGUID, "   
lv_avbbd_tabix  TYPE BV03V-TABIX_BD, "   
lv_logic_cont  TYPE V03V_LOGIC_CONT, "   
lt_xmverf_pos  TYPE STANDARD TABLE OF V03V_XMVERF_POS, "   
lv_bedarf_verrechnen  TYPE V03V_XMVERF_POS, "   SPACE
lv_beleg  TYPE VBAK-VBELN, "   
lt_xquot_vb  TYPE STANDARD TABLE OF QUOT_VB, "   
lv_position  TYPE VBAP-POSNR, "   
lt_xquot_ch  TYPE STANDARD TABLE OF QUOT_CH, "   
lt_vvbfs  TYPE STANDARD TABLE OF VBFS, "   
lv_pzmng_loeschen  TYPE VBFS, "   SPACE
lv_pruefgruppe  TYPE TMVF-MTVFP, "   
lv_aufrufer  TYPE TMVFP-OBVFP, "   CHARB
lv_vbtyp  TYPE VBAK-VBTYP, "   SPACE
lv_bproc  TYPE TVAK-BPROC. "   

  CALL FUNCTION 'RV_REQUIREMENT_DELETE'  "Deleting a Single Requirements Record before the Availability Check
    EXPORTING
         AVBBD_TABIX = lv_avbbd_tabix
         LOGIC_CONT = lv_logic_cont
         BEDARF_VERRECHNEN = lv_bedarf_verrechnen
         BELEG = lv_beleg
         POSITION = lv_position
         PZMNG_LOESCHEN = lv_pzmng_loeschen
         PRUEFGRUPPE = lv_pruefgruppe
         AUFRUFER = lv_aufrufer
         VBTYP = lv_vbtyp
         BPROC = lv_bproc
    IMPORTING
         EF_POSGUID = lv_ef_posguid
    TABLES
         AVBBD = lt_avbbd
         XMVERF_POS = lt_xmverf_pos
         XQUOT_VB = lt_xquot_vb
         XQUOT_CH = lt_xquot_ch
         VVBFS = lt_vvbfs
. " RV_REQUIREMENT_DELETE




ABAP code using 7.40 inline data declarations to call FM RV_REQUIREMENT_DELETE

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 TABIX_BD FROM BV03V INTO @DATA(ld_avbbd_tabix).
 
 
 
DATA(ld_bedarf_verrechnen) = ' '.
 
"SELECT single VBELN FROM VBAK INTO @DATA(ld_beleg).
 
 
"SELECT single POSNR FROM VBAP INTO @DATA(ld_position).
 
 
 
DATA(ld_pzmng_loeschen) = ' '.
 
"SELECT single MTVFP FROM TMVF INTO @DATA(ld_pruefgruppe).
 
"SELECT single OBVFP FROM TMVFP INTO @DATA(ld_aufrufer).
DATA(ld_aufrufer) = CHARB.
 
"SELECT single VBTYP FROM VBAK INTO @DATA(ld_vbtyp).
DATA(ld_vbtyp) = ' '.
 
"SELECT single BPROC FROM TVAK INTO @DATA(ld_bproc).
 


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!