TQ40 SAP (Definition of sample types) Table details
Dictionary Type: Table
Description: Definition of sample types
Description: Definition of sample types
Table field list including key, data, relationships and ABAP select examples
TQ40 is a standard SAP Table which is used to store Definition of sample types data and is available within R/3 SAP systems depending on the version and release level.
The TQ40 table consists of various fields, each holding specific information or linking keys about Definition of sample types data available in SAP. These include PRART (Physical-Sample Type), NUMKR (Number of the Number Range for Physical Samples), STSMA (Status Profile for Physical Samples), FB_ETIKETT (Function Module for Printing Labels).. 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: G - Customising table which is protected against SAP UpdateDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
Text table = TQ40T
SAP TQ40 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 | |||
PRART | Physical-Sample Type | QPRART | CHAR | 2 | QPRART | ||||
NUMKR | Number of the Number Range for Physical Samples | QPR_NK | CHAR | 2 | CHAR2 | ||||
STSMA | Status Profile for Physical Samples | QSTSMA_PRS | CHAR | 8 | TJ20 | J_STSMA | |||
FB_ETIKETT | Function Module for Printing Labels | QFBS_QPR1 | CHAR | 30 | TFDIR | FUNCNAME | |||
QKZ_ETDR | Print Physical-Sample Label Immediately | QKZ_ETDR | CHAR | 1 | QKZ | ||||
BS_SCHL | Screen Control Key for Physical Samples | QBSS_PROBE | CHAR | 2 | TQ46 | QBSS_PROBE |
Key field | Non-key field |
How do I retrieve data from SAP table TQ40 using ABAP code
The following ABAP code Example will allow you to do a basic selection on TQ40 to SELECT all data from the tableDATA: WA_TQ40 TYPE TQ40.
SELECT SINGLE *
FROM TQ40
INTO CORRESPONDING FIELDS OF WA_TQ40
WHERE...
How to access SAP table TQ40
Within an ECC or HANA version of SAP you can also view further information about TQ40 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