SD Function module Used the same way in S/4HANA

RV_INVOICE_DOCUMENT_READ Read Billing Document

Reads a complete billing document into internal tables: header, items, partners, pricing conditions and texts. Developers use it in invoice output programs, smart forms and reports that need the same data as VF03. Pass the document number in VBRK_I-VBELN and set KONV_READ when you need the conditions; handle the NO_AUTHORITY exception.

Function group
V60A
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
VBRK_IVBRKBilling document header key (VBRK)Yes
KONV_READ—Read pricing conditions—
ACTIVITYTACT-ACTVTAuthorization activity—
NO_NAST—Do not read output messages—
I_NO_AUTHORITY_CHECK—Skip authorization check—

Exporting parameters

ParameterTypeDescription
VBRK_EVBRKBilling document header
VBUK_EVBUKHeader status

Changing parameters

ParameterTypeDescriptionRequired
I_DATA_READ_FROM_ARCHIVECData read from archive—

Tables parameters

ParameterTypeDescriptionRequired
XVBRKVBRKVBBilling document headersYes
XVBRPVBRPVBBilling document itemsYes
XKOMVKOMVPricing conditionsYes
XVBPAVBPAVBPartnersYes
XKOMFKKOMFKBilling due list (reference documents)—
XTHEADTHEADVBText headers—
XVBFSVBFSError log for collective processing—
XVBSSVBSSCollective processing documents—

Exceptions

  • NO_AUTHORITY — No authorization

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'RV_INVOICE_DOCUMENT_READ'
  EXPORTING
    vbrk_i = lv_vbrk_i
  IMPORTING
    vbrk_e = lv_vbrk_e
    vbuk_e = lv_vbuk_e
  CHANGING
    i_data_read_from_archive = lv_i_data_read_from_archive
  TABLES
    xvbrk = lt_xvbrk
    xvbrp = lt_xvbrp
    xkomv = lt_xkomv
    xvbpa = lt_xvbpa
    xkomfk = lt_xkomfk
    xthead = lt_xthead
    xvbfs = lt_xvbfs
    xvbss = lt_xvbss
  EXCEPTIONS
    no_authority = 1
    OTHERS = 2.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report