SAP WSGR_HEAD_DB_TMP SRS GM: Temporary Persistence for Header Data Table data and field list

WSGR_HEAD_DB_TMP is a standard SAP Table which is used to store SRS GM: Temporary Persistence for Header Data data in SAP systems, such as SAP R/3, S/4HANA, depending on the version and release level.

The WSGR_HEAD_DB_TMP table consists of various fields, each holding specific information or linking keys about SRS GM: Temporary Persistence for Header Data data available in SAP. These include GUID_DB_TMP (Retail Store: Globally Unique Identifier Temp.Persistence), TIMESTAMP_DB_TMP (Retail Store: Temporary Persistence - Time Stamp), USERNAME (User Name), PLANT (Plant)... 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. .

WSGR_HEAD_DB_TMP table Technical Details:

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP WSGR_HEAD_DB_TMP table fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the WSGR_HEAD_DB_TMP table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient MANDTCLNT3Assigned to domainMANDT
GUID_DB_TMPRetail Store: Globally Unique Identifier Temp.Persistence WSRS_GUID_DB_TMPRAW16
TIMESTAMP_DB_TMPRetail Store: Temporary Persistence - Time Stamp WSRS_TIMESTAMP_DB_TMPDEC15TZNTSTMPS
USERNAMEUser Name SYUNAMECHAR12SYCHAR12
PLANTPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
REF_IDSAP Retail Store: Numeric Key for Reference Document STWB_REFNRCHAR4REF_ID
REF_DOC_NORetail Store GR: Reference Document Number WSGM_REF_DOC_NOCHAR20ALPHAWSGM_REF_DOC_NO
REF_DOC_YEARMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
VNDR_IDSAP Retail Store: Vendor or Plant Number WSRS_VENDOR_SITE_IDCHAR10
VNDR_TYPESAP Retail Store: Indicator Vendor or Plant WSRS_VENDOR_SITE_TYPECHAR1WSRS_VENDOR_SITE_TYPE
DELIVERY_NOTENumber of External Delivery Note LFSNR1CHAR16XBLNR1
GR_GI_SLIP_NRGoods Receipt/Issue Slip Number XABLNCHAR10ALPHABELNR
PSTNG_DATEPosting Date in the Document BUDATDATS8DATUM
DOC_DATEDocument Date in Document BLDATDATS8DATUM
MOVE_REASReason for Movement MB_GRBEWNUMC4Assigned to domainMB_GRBEW
STGE_LOCStorage Location LGORT_DCHAR4Assigned to domainLGORTLAG
SRS_CODESAP Retail Store Function Code SRS_CODECHAR4SRS_CODE

Key field Non-key field



How do I retrieve data from SAP table WSGR_HEAD_DB_TMP using ABAP code

The following ABAP code Example will allow you to do a basic selection on WSGR_HEAD_DB_TMP to SELECT all data from the table
DATA: WA_WSGR_HEAD_DB_TMP TYPE WSGR_HEAD_DB_TMP.

SELECT SINGLE *
FROM WSGR_HEAD_DB_TMP
INTO CORRESPONDING FIELDS OF WA_WSGR_HEAD_DB_TMP
WHERE...

How to access SAP table WSGR_HEAD_DB_TMP

Within an ECC or HANA version of SAP you can also view further information about WSGR_HEAD_DB_TMP and the data within it using relevant transactions such as

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