/OPT/S_INV_HDR SAP (VSS Staging Table: Invoice Header) Table details
Dictionary Type: Table
Description: VSS Staging Table: Invoice Header
Description: VSS Staging Table: Invoice Header
ABAP Code to SELECT data from /OPT/S_INV_HDR
Related tables to /OPT/S_INV_HDR
Access table /OPT/S_INV_HDR
Related tables to /OPT/S_INV_HDR
Access table /OPT/S_INV_HDR
Table field list including key, data, relationships and ABAP select examples
/OPT/S_INV_HDR is a standard SAP Table which is used to store VSS Staging Table: Invoice Header data and is available within R/3 SAP systems depending on the version and release level.
The /OPT/S_INV_HDR table consists of various fields, each holding specific information or linking keys about VSS Staging Table: Invoice Header data available in SAP. These include INVOICE_TYPE (Invoice Type), INVOICE_KEY (Invoice Key), SYNC_FLAG (Flag to indicate if this record is sync with outside db), INV_NO (Document Number of an Invoice Document).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP /OPT/S_INV_HDR table fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
INVOICE_TYPE | Invoice Type | /OPT/INVOICE_TYPE | CHAR | 5 | Assigned to domain | AWTYP | |||
INVOICE_KEY | Invoice Key | /OPT/INVOICE_KEY | CHAR | 20 | AWKEY | ||||
SYNC_FLAG | Flag to indicate if this record is sync with outside db | /OPT/SYNC_FLAG | CHAR | 1 | XFELD | ||||
INV_NO | Document Number of an Invoice Document | RE_BELNR | CHAR | 10 | ALPHA | BELNR | RBN | ||
INV_TYPE | Invoice Type | /OPT/INV_TYPE | CHAR | 1 | /OPT/INV_TYPE | ||||
FISCAL_YEAR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
INV_DATE | Document Date in Document | BLDAT | DATS | 8 | DATUM | ||||
TOTAL_AMT | Net Value in Document Currency | NETWR | CURR | 15(2) | WERTV8 | ||||
SIGN | Sign for positive (+) or negative(-) number | /OPT/SIGN | CHAR | 1 | /OPT/SIGN | ||||
CURRENCY | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
TAX | Tax amount in document currency | WMWST | CURR | 13(2) | WERT7 | ||||
VENDOR_REF | Reference Document Number | XBLNR | CHAR | 16 | XBLNR | ||||
PAYMENT_DUE | Due Date for Net Payment | NETDT | DATS | 8 | DATUM | ||||
PAYMENT_DATE | Probable Payment Date (Cash Discount 1 Due) | DZALDT | DATS | 8 | DATUM | ||||
BASELINE_DATE | Baseline Date for Due Date Calculation | DZFBDT | DATS | 8 | DATUM | ||||
PO_NO | Purchasing Document Number | EBELN | CHAR | 10 | EKKO | ALPHA | EBELN | BES | MEKK_C |
COMP_CODE | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
VENDOR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
REF_VENDOR | Account Number of the Branch | FILKD | CHAR | 10 | ALPHA | MAXKK | |||
INV_STATUS | Invoice Status | /OPT/INV_STATUS | CHAR | 4 | /OPT/STATMASTER | /OPT/STATUSCODE | |||
INV_PARA1 | Status Parameter 1 | /OPT/STATUSPARA1 | CHAR | 80 | /OPT/STATUSPARA | ||||
INV_PARA2 | Status Parameter 2 | /OPT/STATUSPARA2 | CHAR | 80 | /OPT/STATUSPARA | ||||
INV_PARA3 | Status Parameter 3 | /OPT/STATUSPARA3 | CHAR | 80 | /OPT/STATUSPARA | ||||
INV_PARA4 | Status Parameter 4 | /OPT/STATUSPARA4 | CHAR | 80 | /OPT/STATUSPARA | ||||
INV_ADD_INFO | Invoice Status Additional Info | /OPT/INVADDLINFO | CHAR | 132 | |||||
PAYMENTSTATUS | Payment Status | /OPT/PAY_STATUS | CHAR | 4 | /OPT/STATMASTER | /OPT/STATUSCODE | |||
PAYMENT_PARA1 | Payment Status Parameter 1 | /OPT/PAY_PARA1 | CHAR | 80 | /OPT/STATUSPARA | ||||
PAYMENT_PARA2 | Payment Status Parameter 2 | /OPT/PAY_PARA2 | CHAR | 80 | /OPT/STATUSPARA | ||||
PAYMENT_PARA3 | Payment Status Parameter 3 | /OPT/PAY_PARA3 | CHAR | 80 | /OPT/STATUSPARA | ||||
PAYMENT_PARA4 | Payment Status Parameter 4 | /OPT/PAY_PARA4 | CHAR | 80 | /OPT/STATUSPARA | ||||
PAY_ADD_INFO | Payment Status Additional Info | /OPT/PAYADDLINFO | CHAR | 132 | |||||
DELETED | Deleted flag | /OPT/DELETED | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP table /OPT/S_INV_HDR using ABAP code
The following ABAP code Example will allow you to do a basic selection on /OPT/S_INV_HDR to SELECT all data from the tableDATA: WA_/OPT/S_INV_HDR TYPE /OPT/S_INV_HDR.
SELECT SINGLE *
FROM /OPT/S_INV_HDR
INTO CORRESPONDING FIELDS OF WA_/OPT/S_INV_HDR
WHERE...
How to access SAP table /OPT/S_INV_HDR
Within an ECC or HANA version of SAP you can also view further information about /OPT/S_INV_HDR and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects