# 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.

- Modules: SD
- Type: Function module
- Function group: V60A
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/rv-invoice-document-read/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| VBRK_I | VBRK | Billing document header key (VBRK) | Yes |
| KONV_READ | - | Read pricing conditions | - |
| ACTIVITY | TACT-ACTVT | Authorization activity | - |
| NO_NAST | - | Do not read output messages | - |
| I_NO_AUTHORITY_CHECK | - | Skip authorization check | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| VBRK_E | VBRK | Billing document header |
| VBUK_E | VBUK | Header status |

## Changing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| I_DATA_READ_FROM_ARCHIVE | C | Data read from archive | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| XVBRK | VBRKVB | Billing document headers | Yes |
| XVBRP | VBRPVB | Billing document items | Yes |
| XKOMV | KOMV | Pricing conditions | Yes |
| XVBPA | VBPAVB | Partners | Yes |
| XKOMFK | KOMFK | Billing due list (reference documents) | - |
| XTHEAD | THEADVB | Text headers | - |
| XVBFS | VBFS | Error log for collective processing | - |
| XVBSS | VBSS | Collective processing documents | - |

## Exceptions

- NO_AUTHORITY: No authorization

## Call template (ABAP)

```abap
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

KONV, VBPA, VBRK, VBRP

