TDS_GENDOC SAP (CP_APPL_SLS: General Sales Document) Structure details
Description: CP_APPL_SLS: General Sales Document
Structure field list including key, data, relationships and ABAP select examples
TDS_GENDOC 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 "CP_APPL_SLS: General 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_GENDOC TYPE TDS_GENDOC.
The TDS_GENDOC table consists of various fields, each holding specific information or linking keys about CP_APPL_SLS: General Sales Document data available in SAP. These include VBELN (Sales and Distribution Document Number), TRVOG (Transaction Group), TRVOGT (Description), AUART (Sales Document 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:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP TDS_GENDOC 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 | KNA1 | ALPHA | KUNNR | VAG | |
ERDAT | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
AUDAT | Document Date (Date Received/Sent) | AUDAT | DATS | 8 | DATUM | ||||
BSTKD | Customer purchase order number | BSTKD | CHAR | 35 | BSTKD | ||||
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 | TVKO | VKORG | VKO | C_VKORG | |
VTWEG | Distribution Channel | VTWEG | CHAR | 2 | TVTW | VTWEG | VTW | C_VTWEG | |
SPART | Division | SPART | CHAR | 2 | TSPA | SPART | SPA | C_SPART | |
VKBUR | Sales Office | VKBUR | CHAR | 4 | TVBUR | VKBUR | VKB | ||
VKGRP | Sales Group | VKGRP | CHAR | 3 | TVKGR | 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 | ||||
DATAB | Quotation or contract valid from | DATAB_VI | DATS | 8 | DATUM | ||||
DATBI | Quotation or contract valid to | DATBI_VI | DATS | 8 | DATUM | ||||
F_ALL | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
F_OPEN | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
F_INC | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
F_DELBLOCK | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
F_BILLBLOCK | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
NAME_KUN | Name 1 | NAME1_GP | CHAR | 35 | NAME | ||||
NAME_ZPERS | Name 1 of a partner | NAME1_VP | CHAR | 35 | NAME | ||||
NAME1 | Name 1 | NAME1_GP | CHAR | 35 | NAME | ||||
VDATU | Requested delivery date | EDATU_VBAK | DATS | 8 | DATUM | ||||
ENAME | Formatted Name of Employee or Applicant | EMNAM | CHAR | 40 | TEXT40 | ||||
AUTLF | Complete delivery defined for each sales order? | AUTLF | CHAR | 1 | XFELD | ||||
AUGRU | Order reason (reason for the business transaction) | AUGRU | CHAR | 3 | Assigned to domain | AUGRU | |||
VSBED | Shipping Conditions | VSBED | CHAR | 2 | Assigned to domain | VSBED | |||
VSART | Shipping type | VSARTTR | CHAR | 2 | Assigned to domain | VERSART | |||
TRATY | Means-of-Transport Type | TRATY | CHAR | 4 | Assigned to domain | TRATY | |||
TRMTYP | Means of Transport | TRMTYP | CHAR | 18 | Assigned to domain | MATN1 | MATNR | ||
INCO1 | Incoterms (Part 1) | INCO1 | CHAR | 3 | Assigned to domain | INCO1 | |||
INCO2 | Incoterms (Part 2) | INCO2 | CHAR | 28 | INCO2 | ||||
BSARK | Customer purchase order type | BSARK | CHAR | 4 | Assigned to domain | BSARK | |||
BSTDK | Customer purchase order date | BSTDK | DATS | 8 | DATUM | ||||
DISPZPAVW | Partner Function | PARVW | CHAR | 2 | Assigned to domain | PARVW | PARVW | PAR |
Key field | Non-key field |
How do I retrieve data from SAP structure TDS_GENDOC using ABAP code?
As TDS_GENDOC 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_GENDOC as there is no data to select.How to access SAP table TDS_GENDOC
Within an ECC or HANA version of SAP you can also view further information about TDS_GENDOC 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