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