PEG_TSTK SAP (Pegging: Stock table) Table details

Dictionary Type: Table
Description: Pegging: Stock table




ABAP Code to SELECT data from PEG_TSTK
Related tables to PEG_TSTK
Access table PEG_TSTK




Table field list including key, data, relationships and ABAP select examples

PEG_TSTK is a standard SAP Table which is used to store Pegging: Stock table data and is available within R/3 SAP systems depending on the version and release level.

The PEG_TSTK table consists of various fields, each holding specific information or linking keys about Pegging: Stock table data available in SAP. These include WERKS (Plant), MATNR (Material Number), GRPNR (Grouping WBS element), REPOBJ (Object number of replenishment elem. used for static pegging).. 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: Can be enhanced (character-type or numeric)


SAP PEG_TSTK 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
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
GRPNRGrouping WBS element GRPSPNRNUMC8Assigned to domainKONPRPS_POSNRPSP
REPOBJObject number of replenishment elem. used for static pegging PGREPOBJCHAR22Assigned to domainJ_OBJNR
CHARGBatch Number CHARG_DCHAR10Assigned to domainCHARGCHA
EINDTItem Delivery Date EINDTDATS8DATUM
TLLONRDocument Number of Transfer/Loan TBLP_BELNRNUMC10TBLP_BELNR
SQLABValuated Unrestricted-Use Stock LABSTQUAN13(3) MENG13V
SQINSStock in Quality Inspection INSMEQUAN13(3) MENG13V
SQSPEBlocked Stock SPEMEQUAN13(3) MENG13V
LQTYAssigned, Missing Quantity LQTYQUAN13(3) MENG13V
SCPQTYAssigned Scrap Quantity SCPQTYQUAN13(3) MENG13
MEINSBase Unit of Measure MEINSUNIT3Assigned to domainCUNITMEINS
WOCOSTTransfer without Costs WOCOSTCHAR1WOCOST
LOEVMDeletion Indicator LOEVMCHAR1XFELD
UPDATDate on which object was last changed UPDATDATS8DATUM

Key field Non-key field



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

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

SELECT SINGLE *
FROM PEG_TSTK
INTO CORRESPONDING FIELDS OF WA_PEG_TSTK
WHERE...

How to access SAP table PEG_TSTK

Within an ECC or HANA version of SAP you can also view further information about PEG_TSTK 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!