/OPT/S_GR_HDR SAP (VSS Staging Table: GR Header) Table details

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




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
MANDTClient MANDTCLNT3Assigned to domainMANDT
MBLNRNumber of Material Document MBLNRCHAR10ALPHABELNRMBN
MJAHRMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
SYNC_FLAGFlag to indicate if this record is sync with outside db /OPT/SYNC_FLAGCHAR1XFELD
SAP_DOC_NONumber of Material Document MBLNRCHAR10ALPHABELNRMBN
FISCAL_YEARMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
VENDORAccount Number of Vendor or Creditor LIFNRCHAR10Assigned to domainALPHALIFNRLIFKRED_C
DELIVERY_NOTENumber of External Delivery Note LFSNRCHAR16XBLNR
BILL_OF_LADINGNumber of bill of lading at time of goods receipt FRBNRCHAR16XBLNR
DOCUMENT_DATEDocument Date in Document BLDATDATS8DATUM
POSTING_DATEPosting Date in the Document BUDATDATS8DATUM
TOTAL_AMTNet Value in Document Currency NETWRCURR15(2) WERTV8
SIGNSign for positive (+) or negative(-) number /OPT/SIGNCHAR1/OPT/SIGN
CURRENCYCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
BUYERName of Default Purchasing Contact /OPT/BUYERCHAR40TEXT40
BUYER_EMAILE-Mail Address AD_SMTPADRCHAR241SXIDNAD_SMTPADR
STATUSCODEStatus Code /OPT/STATUSCODECHAR4Assigned to domain/OPT/STATUSCODE
GR_PARA1Status Parameter 1 /OPT/STATUSPARA1CHAR80/OPT/STATUSPARA
GR_PARA2Status Parameter 2 /OPT/STATUSPARA2CHAR80/OPT/STATUSPARA
GR_PARA3Status Parameter 3 /OPT/STATUSPARA3CHAR80/OPT/STATUSPARA
GR_PARA4Status Parameter 4 /OPT/STATUSPARA4CHAR80/OPT/STATUSPARA
GR_ADD_INFOPO Status Additional Info /OPT/POADDLINFOCHAR132
DELETEDDeleted flag /OPT/DELETEDCHAR1XFELD

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