TDS_LAST_N SAP (Last n Sales Documents) Structure details
Description: Last n Sales Documents
Structure field list including key, data, relationships and ABAP select examples
TDS_LAST_N 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 "Last n Sales Documents" 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_LAST_N TYPE TDS_LAST_N.
The TDS_LAST_N table consists of various fields, each holding specific information or linking keys about Last n Sales Documents data available in SAP. These include TRVOG (Transaction Group), TRVOGT (Description), AUART (Sales Document Type), AUARTT (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 (character-type or numeric)
SAP TDS_LAST_N 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 | |||
TRVOGT | Description | BEZEI20 | CHAR | 20 | TEXT20 | ||||
AUART | Sales Document Type | AUART | CHAR | 4 | Assigned to domain | AUART | AUART | AAT | |
AUARTT | Description | BEZEI20 | CHAR | 20 | TEXT20 | ||||
KUNNR | Sold-to party | KUNAG | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | VAG | |
ERDAT | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
ZPAVW | Partner Function | PARVW | CHAR | 2 | Assigned to domain | PARVW | PARVW | PAR | |
ZPERS | Person responsible | DZPERS | NUMC | 8 | PERNR | ||||
ERNAM | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
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 | ||
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 | ||||
KUNNR_T | Customer description | KUNNR_TXT | CHAR | 35 | NAME | ||||
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 | ||||
VBTYP | SD document category | VBTYP | CHAR | 1 | VBTYP | ||||
VBTYP_T | Description of sales and distribution document category | VBTYP_TXT | CHAR | 60 | AS4TEXT | ||||
DATAB | Quotation or contract valid from | DATAB_VI | DATS | 8 | DATUM | ||||
DATBI | Valid To Date | DATBI | DATS | 8 | DATUM | ||||
BSTKD | Customer purchase order number | BSTKD | CHAR | 35 | BSTKD | ||||
AUDAT | Document Date (Date Received/Sent) | AUDAT | DATS | 8 | DATUM |
Key field | Non-key field |
How do I retrieve data from SAP structure TDS_LAST_N using ABAP code?
As TDS_LAST_N 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_LAST_N as there is no data to select.How to access SAP table TDS_LAST_N
Within an ECC or HANA version of SAP you can also view further information about TDS_LAST_N 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