QASPR SAP (Result and specification record for the sample) Structure details

Dictionary Type: Structure
Description: Result and specification record for the sample




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




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

QASPR is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Result and specification record for the sample" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_QASPR TYPE QASPR.

The QASPR table consists of various fields, each holding specific information or linking keys about Result and specification record for the sample data available in SAP. These include MERKNR (Inspection Characteristic Number), PROBENR (Sample Number), UPSLV (Data Base Access), MARK (Selection Field).. 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP QASPR structure 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
VORGLFNRCurrent Node Number from Order Counter APLZL QLFNKNNUMC8KNTNR
MERKNRInspection Characteristic Number QMERKNRPNUMC4QMERKNRP
PROBENRSample Number QPROBENRNUMC6Assigned to domainQPROBENRQPO
UPSLVData Base Access QUPSLCHAR1QUPSL
MARKSelection Field QMARKCHAR1QKZ
STATUSVSpecification Record Status QSTATUSCHAR1TQ76QSTATUS
ERSTELLERVName of User Who Created the Data Record QERSTELLERCHAR12QAENDERER
ERSTELLDAVDate on Which the Data Record Was Created QDATUMERSTDATS8DATUM
AENDERERVName of User who Most Recently Changed the Data Record QAENDERERCHAR12QAENDERER
AENDERDATVDate on Which Data Record Was Changed QDATUMAENDDATS8DATUM
ANNAHMEZAcceptance Number QANNAHMEZINT25QINT2NEG
RUECKWEZRejection Number QRUECKWEZINT25QANZAHL2
KFAKTORNIValue Not Initial if Set QNINITIALCHAR1QKZ
KFAKTORK-Factor for a Variable Inspection QKFAKTORFLTP16(16) QKFAKTOR
ANTVERFFraction Calculation QEANTVERFCHAR2Assigned to domainQEANTVERF
BEWREGELValuation Rule QBEWERTCHAR2QDFMQKEY1
FBNAMEName of Function Module QFBNAMECHAR30Assigned to domainFUNCNAME
KZATTRFEAttributive Inspection by Nonconforming Units QKZATTRFECHAR1QKZ
KZATTRFZAttributive Inspection by Number of Defects QKZATTRFZCHAR1QKZ
KZVARSVariable Inspection by S-Method QKZVARSCHAR1QKZ
KZCODValuation by Code QKZCODCHAR1QKZ
KZMANManual Valuation QKZMANCHAR1QKZ
KZQRKAcceptance Using Control Chart QKZQRKCHAR1QKZ
KZNULLInspection Against Specification Limits (k = 0) QKZKNULLCHAR1QKZ
FAKPLANMEFactor for Converting MatUnitOfMeasure to SampUnitOfMeasure QUMRENFLTP16(16) QUMRENFAK
FAKPROBMEFactor for Converting SampUnitOfMeasure to MatUnitOfMeasure QUMRENPMEFLTP16(16) QUMRENFAK
PROBMGFAKSample Unit Factor QPROBMGFAKDEC5(2) QPROBEFAK
PROBEMGEHSample Unit of Measure QPROBMEUNIT3T006CUNITMEINS
STIPROUMFSample Size that Must Be Inspected QSTIPROUMFINT410QANZAHL4
PRUEFUMFQuantity to Be Inspected QPRUEFUMFQUAN13(3) QMENGEPLOS
MENGENEINHBase Unit of Measure for the Sample Unit QPROBEMGEHUNIT3T006CUNITMEINS
QRKNRControl Chart Number QQRKNRNUMC12QASHQQRKNR
PRSTUFEInspection Stage QPRSTUFENUMC4Assigned to domainQPRSTUFE
PRSCHAERFEInspection Severity QPRSCHAERFNUMC3Assigned to domainQPRSCHAERF
UPSLRData Base Access QUPSLCHAR1QUPSL
STATUSRResults Record Status QBEASTATUSCHAR1TQ76QSTATUS
ATTRIBUTAttribute of the Results Record (Valid, Invalid,...) QATTRIBUTCHAR1QATTRIBUT
QERGDATHPLPlanned Results Data Origin QERGDATHPLCHAR2Assigned to domainQERGDATH
QERGDATHOrigin of Results Data QERGDATHCHAR2TQ73QERGDATH
ERSTELLERRName of User Who Created the Data Record QERSTELLERCHAR12QAENDERER
ERSTELLDARDate on Which the Data Record Was Created QDATUMERSTDATS8DATUM
AENDERERRName of User who Most Recently Changed the Data Record QAENDERERCHAR12QAENDERER
AENDERDATRDate on Which Data Record Was Changed QDATUMAENDDATS8DATUM
MBEWERTGInspection Result Valuation QMBEWERTGCHAR1QEEBEWERTG
DBEWERTGValuation of the Characteristic for Dynamic Modification QDBEWERTGCHAR1QEEBEWERTG
PRUEFERName of the Inspector QPRUEFERCHAR12QPRUEFERQPR
PRUEFDATUVInspection Start Date QPRUEFDATVDATS8DATUMQDV
PRUEFDATUBEnd Date of the Inspection QPRUEFDATBDATS8DATUM
PRUEFZEITVStarting Time of the Inspection QPRUEFZTVTIMS6QZEITQZV
PRUEFZEITBEnd Time of the Inspection QPRUEFZTBTIMS6QZEIT
PRUEFBEMKTShort Text QKURZTEXTCHAR40QKURZTEXT
PRLTEXTKZInspection Characteristic Long Text Exists QLTEXTKZCHAR1QKZ
LTEXTSPRLanguage Key SPRASLANG1T002ISOLASPRASSPRH_T002
PRFBEMSPRALong Text Language for Inspection Description QPRFBESPRALANG1Assigned to domainISOLASPRASH_T002
ISTSTPUMFNumber of Recorded Sample Units QISTSTPUMFINT410QANZAHL4
ANZFEHLEHNumber of Nonconforming Sample Units QANZFEHEH2INT25QANZAHL2
ANTEILNINot Initialized for Fraction QNIANTEILCHAR1QNOTINI
ANTEILEstimated Fraction of Nonconforming Sample Units QANTEILFLTP16(16) QSTATWERT
ANZFEHLERNumber of Defects Found QANZFEHL2INT25QANZAHL2
ANZWERTONumber of Measured Values Above the Tolerance Range QANZWERTO2INT25QANZAHL2
ANZWERTUNumber of Measured Values Below the Tolerance Range QANZWERTU2INT25QANZAHL2
ANZWERTGNumber of Inspected Sample Units QANZWERTG2INT25QANZAHL2
MAXWERTNIValue Not Initial if Set QNINITIALCHAR1QKZ
MEDIANNIValue Not Initial if Set QNINITIALCHAR1QKZ
MINWERTNIValue Not Initial if Set QNINITIALCHAR1QKZ
MITTELWNIValue Not Initial if Set QNINITIALCHAR1QKZ
VARIANZNIValue Not Initial if Set QNINITIALCHAR1QKZ
MOMENT3NIValue Not Initial if Set QNINITIALCHAR1QKZ
MOMENT4NIValue Not Initial if Set QNINITIALCHAR1QKZ
ANTEILONIValue Not Initial if Set QNINITIALCHAR1QKZ
ANTEILUNIValue Not Initial if Set QNINITIALCHAR1QKZ
MAXWERTMaximum Value of the Valid Measured Values QMAXWERTFLTP16(16) QSTATWERT
MEDIANWERTMedian of Valid Measured Values QMEDIANWRTFLTP16(16) QSTATWERT
MINWERTMinimum Value of the Valid Measured Values QMINWERTFLTP16(16) QSTATWERT
MITTELWERTArithmetic Mean of Valid Measured Values QMITTELWRTFLTP16(16) QSTATWERT
VARIANZDispersion (Variance) of Valid Measured Values QVARIANZFLTP16(16) QSTATWERT
MOMENT3Third Central Moment of Valid Measured Values QMOMENT3FLTP16(16) QSTATWERT
MOMENT4Fourth Central Moment of Valid Measured Values QMOMENT4FLTP16(16) QSTATWERT
ANTEILOEstimated Fraction Above the Tolerance Range QANTEILOFLTP16(16) QSTATWERT
ANTEILUEstimated Fraction Below the Tolerance Range QANTEILUFLTP16(16) QSTATWERT
KATALGART1Catalog Type of Assigned Code Group or Selected Set QKATAUSWCHAR1TQ15QKATARTQKT
GRUPPE1Code Group QCODEGRPCHAR8Assigned to domainQCODEGRPCGP
CODE1Code QCODECHAR4Assigned to domainQCODEQCODE
VERSION1Version Number QVERSNRCHAR6ALPHAQVERSNR
KATALGART2Catalog Type of Assigned Code Group or Selected Set QKATAUSWCHAR1TQ15QKATARTQKT
GRUPPE2Code Group QCODEGRPCHAR8Assigned to domainQCODEGRPCGP
CODE2Code QCODECHAR4Assigned to domainQCODEQCODE
VERSION2Version Number QVERSNRCHAR6ALPHAQVERSNR
KATALGART3Catalog Type of Assigned Code Group or Selected Set QKATAUSWCHAR1TQ15QKATARTQKT
GRUPPE3Code Group QCODEGRPCHAR8Assigned to domainQCODEGRPCGP
CODE3Code QCODECHAR4Assigned to domainQCODEQCODE
VERSION3Version Number QVERSNRCHAR6ALPHAQVERSNR
KATALGART4Catalog Type of Assigned Code Group or Selected Set QKATAUSWCHAR1TQ15QKATARTQKT
GRUPPE4Code Group QCODEGRPCHAR8Assigned to domainQCODEGRPCGP
CODE4Code QCODECHAR4Assigned to domainQCODEQCODE
VERSION4Version Number QVERSNRCHAR6ALPHAQVERSNR
KATALGART5Catalog Type of Assigned Code Group or Selected Set QKATAUSWCHAR1TQ15QKATARTQKT
GRUPPE5Code Group QCODEGRPCHAR8Assigned to domainQCODEGRPCGP
CODE5Code QCODECHAR4Assigned to domainQCODEQCODE
VERSION5Version Number QVERSNRCHAR6ALPHAQVERSNR
FEHLKLASDefect Class QFEHLKLASCHAR2TQ17QFEHLKLAS
STDABWNIValue Not Initial if Set QNINITIALCHAR1QKZ
STDABWStandard Deviation of Valid Measured Values QSTDAWFLTP16(16) QSTATWERT
SPANNWEINIValue Not Initial if Set QNINITIALCHAR1QKZ
SPANNWEITERange of Valid Measured Values QSPANNWEIFLTP16(16) QSTATWERT
SENDEFLAGCharacteristic Result Confirmation from Control Station QSENDEFLAGCHAR1QSENDEFLAG
MASCHINEGeneral Information QMASCHINECHAR18ALPHAQEQUNR
POSITIONTest Position QPRPOSNUMC4QPRPOS
KATERGCatalog Confirmations Available QKATERGCHAR1QKZ
AENDBELEGCreate Change Documents During Results Recording QKZAENBELCHAR1QKZ
KZBEWERTGValuation Copied or Forced QKZBEWERTGCHAR1QKZBEWERTG
ZEITERSTLTime at which data record was created QZEITERSTLTIMS6QZEIT
ZEITAENDTime at which data record was last changed QZEITAENDTIMS6QZEIT
PRUEFLOSInspection Lot Number QPLOSNUMC12Assigned to domainQPLOSQLSQALS
FECODSELESelected Defect Code for Autom. Generation of Defect Records QCODESELECHAR4Assigned to domainQCODE
FEGRPSELECode Group of the Default Record for Automatic Generation QGRPSELECHAR8Assigned to domainQCODEGRP
STATUSROLDQuality Status of Results Record Before Last Change QBEASTATODCHAR1Assigned to domainQSTATUS
ORIGINAL_INPUTOriginal Value Before Input Processing QORIGINAL_INPUTCHAR25CHAR25
DIFF_DEC_PLACESDifferent Number of Decimal Places QDIFF_DEC_PLACESINT25INT2
INPPROC_READYInput Processing Successfully Completed QINPPROC_READYCHAR1QKZ
SIGN_IDDigital Signature: Signature Number as GUID with 22 Chars. SIGN_GUID_22CHAR22SYSUUID_22
SIGN_STATEStatus of Signature Process SIGN_STATECHAR1SIGN_STATE

Key field Non-key field



How do I retrieve data from SAP structure QASPR using ABAP code?

As QASPR is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on QASPR as there is no data to select.

How to access SAP table QASPR

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