SAP RV_INVOICE_DOCUMENT_READ Function Module for









RV_INVOICE_DOCUMENT_READ is a standard rv invoice document read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 invoice document read FM, simply by entering the name RV_INVOICE_DOCUMENT_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_INVOICE_DOCUMENT_READ 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_INVOICE_DOCUMENT_READ'"
EXPORTING
* ACTIVITY = ' ' "
* KONV_READ = ' ' "
* NO_NAST = ' ' "
VBRK_I = "
* I_NO_AUTHORITY_CHECK = ' ' "
* OIA_UNZIP_FEES = "
* I_GV_ERDAT_SEL = "

IMPORTING
VBRK_E = "
VBUK_E = "

CHANGING
* I_DATA_READ_FROM_ARCHIVE = "

TABLES
XKOMV = "
XVBPA = "
XVBRK = "
XVBRP = "
* XKOMFK = "
* XVBFS = "
* XTHEAD = "Reference Structure for XTHEAD
* XVBSS = "Collective Processing: Sales Documents

EXCEPTIONS
NO_AUTHORITY = 1
.




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_SAPLV60A_001 Billing User Exit. Processing KIDNO (Payment Reference Number)
EXIT_SAPLV60A_002 Customer Function: Process Communication Table for the Bill. Document

IMPORTING Parameters details for RV_INVOICE_DOCUMENT_READ

ACTIVITY -

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

KONV_READ -

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

NO_NAST -

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

VBRK_I -

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

I_NO_AUTHORITY_CHECK -

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

OIA_UNZIP_FEES -

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

I_GV_ERDAT_SEL -

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

EXPORTING Parameters details for RV_INVOICE_DOCUMENT_READ

VBRK_E -

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

VBUK_E -

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

CHANGING Parameters details for RV_INVOICE_DOCUMENT_READ

I_DATA_READ_FROM_ARCHIVE -

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

TABLES Parameters details for RV_INVOICE_DOCUMENT_READ

XKOMV -

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

XVBPA -

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

XVBRK -

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

XVBRP -

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

XKOMFK -

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

XVBFS -

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

XTHEAD - Reference Structure for XTHEAD

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

XVBSS - Collective Processing: Sales Documents

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

EXCEPTIONS details

NO_AUTHORITY -

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

Copy and paste ABAP code example for RV_INVOICE_DOCUMENT_READ 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_xkomv  TYPE STANDARD TABLE OF KOMV, "   
lv_vbrk_e  TYPE VBRK, "   
lv_activity  TYPE TACT-ACTVT, "   ' '
lv_no_authority  TYPE TACT, "   
lv_i_data_read_from_archive  TYPE C, "   
lt_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lv_vbuk_e  TYPE VBUK, "   
lv_konv_read  TYPE VBUK, "   ' '
lt_xvbrk  TYPE STANDARD TABLE OF VBRKVB, "   
lv_no_nast  TYPE VBRKVB, "   ' '
lt_xvbrp  TYPE STANDARD TABLE OF VBRPVB, "   
lv_vbrk_i  TYPE VBRK, "   
lt_xkomfk  TYPE STANDARD TABLE OF KOMFK, "   
lv_i_no_authority_check  TYPE KOMFK, "   ' '
lt_xvbfs  TYPE STANDARD TABLE OF VBFS, "   
lv_oia_unzip_fees  TYPE CHAR1, "   
lt_xthead  TYPE STANDARD TABLE OF THEADVB, "   
lv_i_gv_erdat_sel  TYPE THEADVB, "   
lt_xvbss  TYPE STANDARD TABLE OF VBSS. "   

  CALL FUNCTION 'RV_INVOICE_DOCUMENT_READ'  "
    EXPORTING
         ACTIVITY = lv_activity
         KONV_READ = lv_konv_read
         NO_NAST = lv_no_nast
         VBRK_I = lv_vbrk_i
         I_NO_AUTHORITY_CHECK = lv_i_no_authority_check
         OIA_UNZIP_FEES = lv_oia_unzip_fees
         I_GV_ERDAT_SEL = lv_i_gv_erdat_sel
    IMPORTING
         VBRK_E = lv_vbrk_e
         VBUK_E = lv_vbuk_e
    CHANGING
         I_DATA_READ_FROM_ARCHIVE = lv_i_data_read_from_archive
    TABLES
         XKOMV = lt_xkomv
         XVBPA = lt_xvbpa
         XVBRK = lt_xvbrk
         XVBRP = lt_xvbrp
         XKOMFK = lt_xkomfk
         XVBFS = lt_xvbfs
         XTHEAD = lt_xthead
         XVBSS = lt_xvbss
    EXCEPTIONS
        NO_AUTHORITY = 1
. " RV_INVOICE_DOCUMENT_READ




ABAP code using 7.40 inline data declarations to call FM RV_INVOICE_DOCUMENT_READ

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 ACTVT FROM TACT INTO @DATA(ld_activity).
DATA(ld_activity) = ' '.
 
 
 
 
 
DATA(ld_konv_read) = ' '.
 
 
DATA(ld_no_nast) = ' '.
 
 
 
 
DATA(ld_i_no_authority_check) = ' '.
 
 
 
 
 
 


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!