/OPT/S_INV_HDR SAP (VSS Staging Table: Invoice Header) Table details

Dictionary Type: Table
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




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
MANDTClient MANDTCLNT3Assigned to domainMANDT
INVOICE_TYPEInvoice Type /OPT/INVOICE_TYPECHAR5Assigned to domainAWTYP
INVOICE_KEYInvoice Key /OPT/INVOICE_KEYCHAR20AWKEY
SYNC_FLAGFlag to indicate if this record is sync with outside db /OPT/SYNC_FLAGCHAR1XFELD
INV_NODocument Number of an Invoice Document RE_BELNRCHAR10ALPHABELNRRBN
INV_TYPEInvoice Type /OPT/INV_TYPECHAR1/OPT/INV_TYPE
FISCAL_YEARFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
INV_DATEDocument Date in Document BLDATDATS8DATUM
TOTAL_AMTNet Value in Document Currency NETWRCURR15(2) WERTV8
SIGNSign for positive (+) or negative(-) number /OPT/SIGNCHAR1/OPT/SIGN
CURRENCYCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
TAXTax amount in document currency WMWSTCURR13(2) WERT7
VENDOR_REFReference Document Number XBLNRCHAR16XBLNR
PAYMENT_DUEDue Date for Net Payment NETDTDATS8DATUM
PAYMENT_DATEProbable Payment Date (Cash Discount 1 Due) DZALDTDATS8DATUM
BASELINE_DATEBaseline Date for Due Date Calculation DZFBDTDATS8DATUM
PO_NOPurchasing Document Number EBELNCHAR10EKKOALPHAEBELNBESMEKK_C
COMP_CODECompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
VENDORAccount Number of Vendor or Creditor LIFNRCHAR10Assigned to domainALPHALIFNRLIFKRED_C
REF_VENDORAccount Number of the Branch FILKDCHAR10ALPHAMAXKK
INV_STATUSInvoice Status /OPT/INV_STATUSCHAR4/OPT/STATMASTER/OPT/STATUSCODE
INV_PARA1Status Parameter 1 /OPT/STATUSPARA1CHAR80/OPT/STATUSPARA
INV_PARA2Status Parameter 2 /OPT/STATUSPARA2CHAR80/OPT/STATUSPARA
INV_PARA3Status Parameter 3 /OPT/STATUSPARA3CHAR80/OPT/STATUSPARA
INV_PARA4Status Parameter 4 /OPT/STATUSPARA4CHAR80/OPT/STATUSPARA
INV_ADD_INFOInvoice Status Additional Info /OPT/INVADDLINFOCHAR132
PAYMENTSTATUSPayment Status /OPT/PAY_STATUSCHAR4/OPT/STATMASTER/OPT/STATUSCODE
PAYMENT_PARA1Payment Status Parameter 1 /OPT/PAY_PARA1CHAR80/OPT/STATUSPARA
PAYMENT_PARA2Payment Status Parameter 2 /OPT/PAY_PARA2CHAR80/OPT/STATUSPARA
PAYMENT_PARA3Payment Status Parameter 3 /OPT/PAY_PARA3CHAR80/OPT/STATUSPARA
PAYMENT_PARA4Payment Status Parameter 4 /OPT/PAY_PARA4CHAR80/OPT/STATUSPARA
PAY_ADD_INFOPayment Status Additional Info /OPT/PAYADDLINFOCHAR132
DELETEDDeleted flag /OPT/DELETEDCHAR1XFELD

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 table
DATA: 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 as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


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!