PTP66 SAP (Structure of return trip table) Structure details
Description: Structure of return trip table
Structure field list including key, data, relationships and ABAP select examples
PTP66 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 "Structure of return trip table" 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_PTP66 TYPE PTP66.
The PTP66 table consists of various fields, each holding specific information or linking keys about Structure of return trip table data available in SAP. These include DATH1 (Departure: Date), UHRH1 (Departure time), NACHN (Last Name), VORNA (First Name).. 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: Not classified
SAP PTP66 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 |
LFDNR | Number of trips home in the period (primary key) | PTRV_RTJNR | NUMC | 2 | NUMC2 | ||||
DATH1 | Departure: Date | PTRV_DATH1 | DATS | 8 | DATS | ||||
UHRH1 | Departure time | PTRV_UHRH1 | TIMS | 6 | PTRV_TIMS | ||||
NACHN | Last Name | NACHN | CHAR | 25 | NACHN | ||||
VORNA | First Name | VORNA | CHAR | 25 | VORNM | ||||
KMGES | Total Miles/Kilometers | KMGES | DEC | 5 | KMANZ | ||||
PUBLIC_TP | Public Transport Receipts Exist | PTRV_PUBTP | CHAR | 1 | CHAR1 | ||||
PRIVATE_TP | Indicator for private means of transportation | PTRV_PRVTP | CHAR | 1 | CHAR1 | ||||
DESTIN | Destination of trip home | PTRV_HZIEL | CHAR | 17 | CHAR17 | ||||
LAND | Country of trip home | PTRV_LANDH | CHAR | 3 | Assigned to domain | LAND1 | |||
RTJ_NUMBER | Number of allowed trips home in this period | PTRV_RETNR | NUMC | 1 | NUMC1 |
Key field | Non-key field |
How do I retrieve data from SAP structure PTP66 using ABAP code?
As PTP66 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 PTP66 as there is no data to select.How to access SAP table PTP66
Within an ECC or HANA version of SAP you can also view further information about PTP66 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