QPRS SAP (Master record for phys. samples) Table details
Dictionary Type: Table
Description: Master record for phys. samples
Description: Master record for phys. samples
Table field list including key, data, relationships and ABAP select examples
QPRS is a standard SAP Table which is used to store Master record for phys. samples data and is available within R/3 SAP systems depending on the version and release level.
The QPRS table consists of various fields, each holding specific information or linking keys about Master record for phys. samples data available in SAP. These include PHYNR (Physical Sample Number), OBJNR (Object number), STSMA (Status Profile for Physical Samples), PRART (Physical-Sample Type).. 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 QPRS 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 | T000 | MANDT | |||
PHYNR | Physical Sample Number | QPHYSPRNR | CHAR | 12 | ALPHA | QPHYSPRNR | QPN | ||
OBJNR | Object number | J_OBJNR | CHAR | 22 | ONR00 | J_OBJNR | ONR | ||
STSMA | Status Profile for Physical Samples | QSTSMA_PRS | CHAR | 8 | TJ20 | J_STSMA | |||
PRART | Physical-Sample Type | QPRART | CHAR | 2 | TQ40 | QPRART | |||
PRTYP | Sample Category | QPRTYP | CHAR | 1 | TQ44 | QPRTYP | |||
PN_NR | Sample-Drawing Number | QPZNR | NUMC | 12 | QPRN | NUMC12 | QPZ | ||
XMANU | Manually Created Sample | QPRB_MAN | CHAR | 1 | QKZ | ||||
GBTYP | Physical-Sample Container | QGEBINDET | CHAR | 6 | TQ42 | QGEBINDET | |||
MENGE | Size of the Physical Sample | QPHYSPRUM | QUAN | 13(3) | QMENGEPLOS | ||||
MEINH | Unit of Measure for Physical Sample Size | QPHYSPRME | UNIT | 3 | T006 | CUNIT | MEINS | ||
PLOS2 | Current or Last Inspection Lot for the Sample | QLOT_LATE | NUMC | 12 | QALS | QPLOS | QALS | ||
MATNR | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
REVLV | Revision Level | REVLV | CHAR | 2 | NUMCV | REVLV | RVS | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | MCH1 | CHARG | CHA | ||
KTEXT | Short Text for Physical Sample | QTEXT_PRS | CHAR | 80 | TEXT80 | ||||
QAUTH | Material Authorization Group for Activities in QM | QMATAUTH | CHAR | 6 | TQ01B | QMATAUTH | |||
PNVER | Sample-Drawing Procedure | QPRZIEHVER | CHAR | 8 | QPRVK | QPRZIEHVER | QPV | ||
PNVEV | Version No. of the Sample-Drawing Procedure | QVERSNPRZV | CHAR | 6 | QPRVK | ALPHA | QVERSNR | ||
PNPOS | Item Number in Sample-Drawing Procedure | QZAEHLPRZV | NUMC | 4 | NUM4 | ||||
GEBEH | Lot Container | QGEBEH | UNIT | 3 | T006 | CUNIT | MEINS | ||
TPBIS | Highest Partial Sample No. Valid for Instruction | QPROBNRBIS | NUMC | 3 | QPROBEPL | ||||
LGORT | Storage Location | LGORT_D | CHAR | 4 | T001L | LGORT | LAG | ||
ABORT | Storage Location for a Physical Sample | QAUFBEWORT | CHAR | 12 | TQ41 | QAUFBEWORT | |||
ABDAU | Storage Duration of the Physical Sample in Days | QAUFBDAUER | DEC | 5 | DEC5 | ||||
ABDAT | Storage Deadline for Physical Sample | QAUFBDATUM | DATS | 8 | DATUM | ||||
ABINF | Storage Information for the Physical Sample | QAUFBINFO | CHAR | 80 | TEXT80 | ||||
AENNA | Last User who Changed the Physical-Sample Record | QPRS_AEN | CHAR | 12 | QAENDERER | ||||
AENDT | Date the Physical Sample Was Changed | QPRS_AENDT | DATS | 8 | DATUM | ||||
AENZT | Time at Which Physical-Sample Record Changed | QPRS_AENZT | TIMS | 6 | QZEIT | ||||
VENUM | Internal Handling Unit Number | VENUM | CHAR | 10 | Assigned to domain | ALPHA | VENUM | VEL | |
VEPOS | Handling Unit Item | VEPOS | NUMC | 6 | Assigned to domain | VEPOS | |||
ADDON_DUMMY | Dummy Field for ADDON Structures in QM | QDUMMY | CHAR | 1 | QDUMMY | ||||
.INCLU--AP | 0 | ||||||||
PRIMPACK | Primary Packaging (Stability Study) | QPRIMPACK | CHAR | 8 | TQ45 | QPRIMPACK | |||
STABICON | Storage Condition | QSTABICON | CHAR | 8 | TQ43 | QSTABICON | |||
EINGDT | Date of Receipt of Initial Sample for Stability Study | QST_EINGDT | DATS | 8 | DATUM | ||||
EINLDT | Storage Date of Sample for Storage Condition | QST_EINLDT | DATS | 8 | DATUM | ||||
AUSLDT | Date of Removal from Storage of Sample for Storage Condition | QST_AUSLDT | DATS | 8 | DATUM | ||||
ENTORT | Location of Sample Drawing (Functional Location) | QPRSENTORT | CHAR | 30 | Assigned to domain | TPLNR | TPLNR | IFLM | |
INFEORT | Description of Sample-Drawing Location | QPRSINFEORT | CHAR | 60 | CHAR60 | ||||
ENTDATUM | Date of Sample Drawing | QPRSENTDATUM | DATS | 8 | DATUM | ||||
ENTZEIT | Time of Sample Drawing | QPRSENTZEIT | TIMS | 6 | QZEIT | ||||
BEARBEITER | Processor Responsible for the Sample, Sample Taker | QPRSBEARBEITER | CHAR | 20 | CHAR20 | ||||
LABOR | Work Center (Laboratory) | QLABOR | CHAR | 8 | QPLEXT_PRPLATZ |
Key field | Non-key field |
How do I retrieve data from SAP table QPRS using ABAP code
The following ABAP code Example will allow you to do a basic selection on QPRS to SELECT all data from the tableDATA: WA_QPRS TYPE QPRS.
SELECT SINGLE *
FROM QPRS
INTO CORRESPONDING FIELDS OF WA_QPRS
WHERE...
How to access SAP table QPRS
Within an ECC or HANA version of SAP you can also view further information about QPRS 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