TDS_LAST_N SAP (Last n Sales Documents) Structure details

Dictionary Type: Structure
Description: Last n Sales Documents




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




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
VBELNSales and Distribution Document Number VBELNCHAR10Assigned to domainALPHAVBELNAUN
TRVOGTransaction Group TRVOG_GENCHAR1TRVOG_GENVTV
TRVOGTDescription BEZEI20CHAR20TEXT20
AUARTSales Document Type AUARTCHAR4Assigned to domainAUARTAUARTAAT
AUARTTDescription BEZEI20CHAR20TEXT20
KUNNRSold-to party KUNAGCHAR10Assigned to domainALPHAKUNNRVAG
ERDATDate on Which Record Was Created ERDATDATS8DATUM
ZPAVWPartner Function PARVWCHAR2Assigned to domainPARVWPARVWPAR
ZPERSPerson responsible DZPERSNUMC8PERNR
ERNAMName of Person who Created the Object ERNAMCHAR12USNAM
VKORGSales Organization VKORGCHAR4Assigned to domainVKORGVKOC_VKORG
VTWEGDistribution Channel VTWEGCHAR2Assigned to domainVTWEGVTWC_VTWEG
SPARTDivision SPARTCHAR2Assigned to domainSPARTSPAC_SPART
VKBURSales Office VKBURCHAR4Assigned to domainVKBURVKB
VKGRPSales Group VKGRPCHAR3Assigned to domainVKGRPVKG
WAERKSD Document Currency WAERKCUKY5Assigned to domainWAERSFWS
NETWRNet Value of the Sales Order in Document Currency NETWR_AKCURR15(2) WERTV8
AWAHRSales probability AWAHR_AKNUMC3AWAHR
KUNNR_TCustomer description KUNNR_TXTCHAR35NAME
PZPERS_TName of Employee Responsible PZPERS_BEZCHAR35NAME
PARVW_TDescription of partner function PARVW_BEZCHAR20TEXT20
VKORG_TDescription of sales organization VKORG_BEZCHAR20TEXT20
VTWEG_TDescription of distribution channel VTWEG_BEZCHAR20TEXT20
SPART_TDescription of division SPART_BEZCHAR20TEXT20
VKBUR_TDescription of sales office VKBUR_BEZCHAR20TEXT20
VKGRP_TDescription of Sales Group VKGRP_BEZCHAR20TEXT20
VBTYPSD document category VBTYPCHAR1VBTYP
VBTYP_TDescription of sales and distribution document category VBTYP_TXTCHAR60AS4TEXT
DATABQuotation or contract valid from DATAB_VIDATS8DATUM
DATBIValid To Date DATBIDATS8DATUM
BSTKDCustomer purchase order number BSTKDCHAR35BSTKD
AUDATDocument Date (Date Received/Sent) AUDATDATS8DATUM

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 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!