TDS_SALESDOC SAP (Lean Order: Sales Document) Structure details
Description: Lean Order: Sales Document
Structure field list including key, data, relationships and ABAP select examples
TDS_SALESDOC 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 "Lean Order: Sales Document" 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_TDS_SALESDOC TYPE TDS_SALESDOC.
The TDS_SALESDOC table consists of various fields, each holding specific information or linking keys about Lean Order: Sales Document data available in SAP. These include TRVOG (Transaction Group), TRVOG_T (Description), AUART (Sales Document Type), AUART_T (Description).. 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 (Deep)
SAP TDS_SALESDOC 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 |
VBELN | Sales and Distribution Document Number | VBELN | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
TRVOG | Transaction Group | TRVOG_GEN | CHAR | 1 | TRVOG_GEN | VTV | |||
TRVOG_T | Description | BEZEI20 | CHAR | 20 | TEXT20 | ||||
AUART | Sales Document Type | AUART | CHAR | 4 | Assigned to domain | AUART | AUART | AAT | |
AUART_T | Description | BEZEI20 | CHAR | 20 | TEXT20 | ||||
KUNAG | Sold-to party | KUNAG | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | VAG | |
KUNAG_T | Name 1 | AD_NAME1 | CHAR | 40 | TEXT40 | ||||
BSTKD | Customer purchase order number | BSTKD | CHAR | 35 | BSTKD | ||||
ERDAT | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
ERNAM | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
ZPAVW | Partner Function | PARVW | CHAR | 2 | Assigned to domain | PARVW | PARVW | PAR | |
ZPERS | Person responsible | DZPERS | NUMC | 8 | PERNR | ||||
VKORG | Sales Organization | VKORG | CHAR | 4 | Assigned to domain | VKORG | VKO | C_VKORG | |
VTWEG | Distribution Channel | VTWEG | CHAR | 2 | Assigned to domain | VTWEG | VTW | C_VTWEG | |
SPART | Division | SPART | CHAR | 2 | Assigned to domain | SPART | SPA | C_SPART | |
VKBUR | Sales Office | VKBUR | CHAR | 4 | Assigned to domain | VKBUR | VKB | ||
VKGRP | Sales Group | VKGRP | CHAR | 3 | Assigned to domain | VKGRP | VKG | ||
DATAB | Quotation or contract valid from | DATAB_VI | DATS | 8 | DATUM | ||||
DATBI | Quotation or contract valid to | DATBI_VI | DATS | 8 | DATUM | ||||
WAERK | SD Document Currency | WAERK | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
NETWR | Net Value of the Sales Order in Document Currency | NETWR_AK | CURR | 15(2) | WERTV8 | ||||
AWAHR | Sales probability | AWAHR_AK | NUMC | 3 | AWAHR | ||||
PZPERS_T | Name of Employee Responsible | PZPERS_BEZ | CHAR | 35 | NAME | ||||
PARVW_T | Description of partner function | PARVW_BEZ | CHAR | 20 | TEXT20 | ||||
VKORG_T | Description of sales organization | VKORG_BEZ | CHAR | 20 | TEXT20 | ||||
VTWEG_T | Description of distribution channel | VTWEG_BEZ | CHAR | 20 | TEXT20 | ||||
SPART_T | Description of division | SPART_BEZ | CHAR | 20 | TEXT20 | ||||
VKBUR_T | Description of sales office | VKBUR_BEZ | CHAR | 20 | TEXT20 | ||||
VKGRP_T | Description of Sales Group | VKGRP_BEZ | CHAR | 20 | TEXT20 | ||||
SPSTG | Overall blocked status | SPSTG | CHAR | 1 | STATV | ||||
ABSTK | Overall rejection status of all document items | ABSTK | CHAR | 1 | STATV | ||||
GBSTK | Overall processing status of document | GBSTK | CHAR | 1 | STATV | ||||
UVALS | Total incompletion status of all items in general | UVALL_SU | CHAR | 1 | STATV | ||||
UVALL | General incompletion status of the header | UVALL_UK | CHAR | 1 | STATV | ||||
UVVLS | Total incompletion status of all items: Delivery | UVVLS_SU | CHAR | 1 | STATV | ||||
UVFAS | Total incompletion status of all items: Billing | UVFAK_SU | CHAR | 1 | STATV | ||||
UVVLK | Header incompletion status concerning delivery | UVVLK_UK | CHAR | 1 | STATV | ||||
UVFAK | Header incompletion status with respect to billing | UVFAK_UK | CHAR | 1 | STATV | ||||
UVPRS | Document is incomplete with respect to pricing | UVPRS_UK | CHAR | 1 | STATV | ||||
CMGST | Overall status of credit checks | CMGST | CHAR | 1 | CMGST | ||||
LFSTK | Delivery status | LFSTK | CHAR | 1 | STATV | ||||
FSSTK | Overall billing block status | FSSTK | CHAR | 1 | STATV | ||||
LSSTK | Overall delivery block status | LSSTK_G | CHAR | 1 | STATV | ||||
AUGRU | Order reason (reason for the business transaction) | AUGRU | CHAR | 3 | Assigned to domain | AUGRU | |||
AUDAT | Document Date (Date Received/Sent) | AUDAT | DATS | 8 | DATUM | ||||
VSBED | Shipping Conditions | VSBED | CHAR | 2 | Assigned to domain | VSBED | |||
GUEBG | Valid-from date (outline agreements, product proposals) | GUEBG | DATS | 8 | DATUM | ||||
GUEEN | Valid-to date (outline agreements, product proposals) | GUEEN | DATS | 8 | DATUM | ||||
BSTDK | Customer purchase order date | BSTDK | DATS | 8 | DATUM | ||||
INCO1 | Incoterms (Part 1) | INCO1 | CHAR | 3 | Assigned to domain | INCO1 | |||
INCO2 | Incoterms (Part 2) | INCO2 | CHAR | 28 | INCO2 | ||||
ZTERM | Terms of Payment Key | DZTERM | CHAR | 4 | ZTERM | ||||
ZTERM_T | Description of terms of payment | DZTERM_BEZ | CHAR | 30 | TEXT30 | ||||
VBTYP | SD document category | VBTYP | CHAR | 1 | VBTYP | ||||
VBTYP_T | Description of sales and distribution document category | VBTYP_TXT | CHAR | 60 | AS4TEXT | ||||
POSNR | Sales Document Item | POSNR_VA | NUMC | 6 | Assigned to domain | POSNR | APO | ||
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
ARKTX | Short text for sales order item | ARKTX | CHAR | 40 | TEXT40 | ||||
KWMENG | Cumulative Order Quantity in Sales Units | KWMENG | QUAN | 15(3) | MENG15 | ||||
VRKME | Sales unit | VRKME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
KBMENG | Cumulative confirmed quantity in sales unit | KBMENG | QUAN | 15(3) | MENG15 | ||||
KDMAT | Material Number Used by Customer | MATNR_KU | CHAR | 35 | IDNEX | ||||
ABGRU | Reason for rejection of quotations and sales orders | ABGRU_VA | CHAR | 2 | Assigned to domain | ABGRU_VA | |||
ABGRU_T | Description of reason for rejection | ABGRU_BEZ | CHAR | 40 | TEXT40 | ||||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
ZMENG | Target quantity in sales units | DZMENG | QUAN | 13(3) | MENG13 | ||||
ZWERT | Target Value for Outline Agreement in Document Currency | DZWERT | CURR | 13(2) | WERT7 | ||||
ZIEME | Target quantity UoM | DZIEME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
NETPR | Net price | NETPR | CURR | 11(2) | WERTV6 | ||||
WERKS | Plant (Own or External) | WERKS_EXT | CHAR | 4 | Assigned to domain | WERKS | WRK | SH_T001W_EXTS | |
UMZIZ | Factor for converting sales units to base units (target qty) | UMZIZ | DEC | 5 | UMBSZ | ||||
UMZIN | Factor for converting sales units to base units (target qty) | UMZIN | DEC | 5 | UMBSN | ||||
POSEX | Item Number of the Underlying Purchase Order | POSEX | CHAR | 6 | ALPHA | POSEX | |||
FAKSP | Billing block for item | FAKSP_AP | CHAR | 2 | Assigned to domain | FAKSP | |||
CMPRE | Item credit price | CMPRE | CURR | 11(2) | WERTV6 | ||||
BEDAE | Requirements type | BEDAE | CHAR | 4 | Assigned to domain | BEDAE | BDA | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
PSTYV | Sales document item category | PSTYV | CHAR | 4 | Assigned to domain | PSTYV | |||
PSTYV_T | Description of item category | PSTYV_BEZ | CHAR | 20 | TEXT20 | ||||
UMVKZ | Numerator (factor) for conversion of sales quantity into SKU | UMVKZ | DEC | 5 | UMBSZ | ||||
UMVKN | Denominator (Divisor) for Conversion of Sales Qty into SKU | UMVKN | DEC | 5 | UMBSN | ||||
VBELV | Originating document | VBELV | CHAR | 10 | Assigned to domain | ALPHA | VBELN | ||
POSNV | Originating item | POSNV | NUMC | 6 | Assigned to domain | POSNR | |||
VGBEL | Document number of the reference document | VGBEL | CHAR | 10 | Assigned to domain | ALPHA | VBELN | ||
VGPOS | Item number of the reference item | VGPOS | NUMC | 6 | Assigned to domain | POSNR | |||
VGTYP | Document category of preceding SD document | VBTYP_V | CHAR | 1 | VBTYP | ||||
PRCTR | Profit Center | PRCTR | CHAR | 10 | Assigned to domain | ALPHA | PRCTR | PRC | PRCTR_EMPTY |
OBJNR | Object number at item level | OBJPO | CHAR | 22 | Assigned to domain | J_OBJNR | |||
PS_PSP_PNR | Work Breakdown Structure Element (WBS Element) | PS_PSP_PNR | NUMC | 8 | Assigned to domain | KONPR | PS_POSNR | ||
POSID | Work Breakdown Structure Element (WBS Element) | PS_POSID | CHAR | 24 | PROJN | PS_POSID | PRO | ||
POST1 | PS: Short description (1st text line) | PS_POST1 | CHAR | 40 | TEXT40 |
Key field | Non-key field |
How do I retrieve data from SAP structure TDS_SALESDOC using ABAP code?
As TDS_SALESDOC 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 TDS_SALESDOC as there is no data to select.How to access SAP table TDS_SALESDOC
Within an ECC or HANA version of SAP you can also view further information about TDS_SALESDOC 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