/OPT/S_GR_HDR SAP (VSS Staging Table: GR Header) Table details
Dictionary Type: Table
Description: VSS Staging Table: GR Header
Description: VSS Staging Table: GR Header
ABAP Code to SELECT data from /OPT/S_GR_HDR
Related tables to /OPT/S_GR_HDR
Access table /OPT/S_GR_HDR
Related tables to /OPT/S_GR_HDR
Access table /OPT/S_GR_HDR
Table field list including key, data, relationships and ABAP select examples
/OPT/S_GR_HDR is a standard SAP Table which is used to store VSS Staging Table: GR Header data and is available within R/3 SAP systems depending on the version and release level.
The /OPT/S_GR_HDR table consists of various fields, each holding specific information or linking keys about VSS Staging Table: GR Header data available in SAP. These include MBLNR (Number of Material Document), MJAHR (Material Document Year), SYNC_FLAG (Flag to indicate if this record is sync with outside db), SAP_DOC_NO (Number of Material 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_GR_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 | |||
MBLNR | Number of Material Document | MBLNR | CHAR | 10 | ALPHA | BELNR | MBN | ||
MJAHR | Material Document Year | MJAHR | NUMC | 4 | GJAHR | GJAHR | MJA | ||
SYNC_FLAG | Flag to indicate if this record is sync with outside db | /OPT/SYNC_FLAG | CHAR | 1 | XFELD | ||||
SAP_DOC_NO | Number of Material Document | MBLNR | CHAR | 10 | ALPHA | BELNR | MBN | ||
FISCAL_YEAR | Material Document Year | MJAHR | NUMC | 4 | GJAHR | GJAHR | MJA | ||
VENDOR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
DELIVERY_NOTE | Number of External Delivery Note | LFSNR | CHAR | 16 | XBLNR | ||||
BILL_OF_LADING | Number of bill of lading at time of goods receipt | FRBNR | CHAR | 16 | XBLNR | ||||
DOCUMENT_DATE | Document Date in Document | BLDAT | DATS | 8 | DATUM | ||||
POSTING_DATE | Posting Date in the Document | BUDAT | 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 | ||
BUYER | Name of Default Purchasing Contact | /OPT/BUYER | CHAR | 40 | TEXT40 | ||||
BUYER_EMAIL | E-Mail Address | AD_SMTPADR | CHAR | 241 | SXIDN | AD_SMTPADR | |||
STATUSCODE | Status Code | /OPT/STATUSCODE | CHAR | 4 | Assigned to domain | /OPT/STATUSCODE | |||
GR_PARA1 | Status Parameter 1 | /OPT/STATUSPARA1 | CHAR | 80 | /OPT/STATUSPARA | ||||
GR_PARA2 | Status Parameter 2 | /OPT/STATUSPARA2 | CHAR | 80 | /OPT/STATUSPARA | ||||
GR_PARA3 | Status Parameter 3 | /OPT/STATUSPARA3 | CHAR | 80 | /OPT/STATUSPARA | ||||
GR_PARA4 | Status Parameter 4 | /OPT/STATUSPARA4 | CHAR | 80 | /OPT/STATUSPARA | ||||
GR_ADD_INFO | PO Status Additional Info | /OPT/POADDLINFO | 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_GR_HDR using ABAP code
The following ABAP code Example will allow you to do a basic selection on /OPT/S_GR_HDR to SELECT all data from the tableDATA: WA_/OPT/S_GR_HDR TYPE /OPT/S_GR_HDR.
SELECT SINGLE *
FROM /OPT/S_GR_HDR
INTO CORRESPONDING FIELDS OF WA_/OPT/S_GR_HDR
WHERE...
How to access SAP table /OPT/S_GR_HDR
Within an ECC or HANA version of SAP you can also view further information about /OPT/S_GR_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