BAPI_PTP02 SAP (Structure of Travel Expenses Table PTRV_HEAD) Structure details
Description: Structure of Travel Expenses Table PTRV_HEAD
Structure field list including key, data, relationships and ABAP select examples
BAPI_PTP02 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 Travel Expenses Table PTRV_HEAD" 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_BAPI_PTP02 TYPE BAPI_PTP02.
The BAPI_PTP02 table consists of various fields, each holding specific information or linking keys about Structure of Travel Expenses Table PTRV_HEAD data available in SAP. These include TRIPNO (Trip Number), HEADER_VERSION (Sequential Number of Travel Expenses Table THEADER), COUNTRY_GROUPING (Country Grouping), TRIP_PROVISION_VARIANT (Trip Provision Variant).. 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: Cannot Be Enhanced
SAP BAPI_PTP02 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 |
PERSON_NO | Personnel Number | PERNR_D | NUMC | 8 | PERNR | PER | |||
TRIPNO | Trip Number | REINR | NUMC | 10 | REINR | ||||
HEADER_VERSION | Sequential Number of Travel Expenses Table THEADER | PTRV_HDVRS | NUMC | 2 | PTRVNUMC2 | ||||
COUNTRY_GROUPING | Country Grouping | MOLGA | CHAR | 2 | T500L | MOLGA | MOL | ||
TRIP_PROVISION_VARIANT | Trip Provision Variant | MOREI | CHAR | 2 | T702N | MOREI | MOR | ||
T_SCHEMA | Trip schema | RSCHE | CHAR | 2 | T706S | RSCHE | |||
TT_STATU | Trip Type: Statutory | KZREA | CHAR | 1 | T702G | KZREA | |||
TT_COMSP | Trip Type: Enterprise-Specific | BEREI | CHAR | 1 | T702X | BEREI | |||
T_ACTYPE | Trip Activity Type | KZTKT | CHAR | 1 | T702R | KZTKT | |||
LOCATION | Location | RZIEL | CHAR | 17 | RZIEL | ||||
COUNTRY | Trip Country / Trip Country Group | LNDGR | CHAR | 3 | T706O | LNDGR | |||
REGION | Region of Main Destination | HRGIO | CHAR | 5 | T702O | RGION | |||
NEW_DEPARTMENT | Name of new administrative office (P.S.) | PTRV_NDNST | CHAR | 25 | PTRV_CHAR25 | ||||
CUSTOMER | Reason for trip (e.g. customer/requisitioner) | RKUND | CHAR | 17 | RKUND | ||||
DEP_DATE | Beginning Date of Trip Segment | REBED | DATS | 8 | REDAT | ||||
DEP_TIME | Beginning Time of Trip Segment | REBEU | TIMS | 6 | REUHR | ||||
ARR_DATE | End Date of Trip Segment | REEND | DATS | 8 | REDAT | ||||
ARR_TIME | End Time of Trip Segment | REENU | TIMS | 6 | REUHR | ||||
OUT_DATE | Border Crossing (Trip Out): Date | DATGH | DATS | 8 | REDAT | ||||
OUT_TIME | Time: Border crossing(trip out) | UHRGH | TIMS | 6 | REUHR | ||||
RET_DATE | Border Crossing (Return Trip): Date | DATGZ | DATS | 8 | REDAT | ||||
RET_TIME | Time: Border crossing(return trip) | UHRGZ | TIMS | 6 | REUHR | ||||
RET_COUNTRY | Trip Country/Trip Country Group | RET_COUNTRY | CHAR | 3 | T706O | LNDGR | |||
RET_REGION | Region of Border Crossing: Return Trip | GRGIO | CHAR | 5 | T702O | RGION | |||
BORDER_CROSSING | Border crossing: Trip type enterprise-specific | PTRV_GRBER | CHAR | 1 | T702X | BEREI | |||
REIMB_REMOVAL_COSTS | Confirmation of Moving Costs Refund | PTRV_UZKVG | CHAR | 1 | UMZUGSKVG | ||||
DEPARTMENT_OF_REIMB | Admin. Office That Confirmed Moving Costs Compensation (PS) | PTRV_ZUSAG | CHAR | 25 | PTRV_CHAR25 | ||||
END_OF_FARE | Different End of Travel Allowance (in Separation Allowance) | PTRV_ENDRG | DATS | 8 | REDAT | ||||
MARK_OF_DEPARTURE | Departure from Residence or Place of Work | PTRV_DEPAR | CHAR | 1 | PTRV_CHAR1 | ||||
MARK_OF_ARRIVAL | Return Trip: Arrival at Place of Residence or Work | PTRV_ARRVL | CHAR | 1 | PTRV_CHAR1 | ||||
CH_ON | Changed On | AEDAT | DATS | 8 | DATUM | ||||
CH_ON_TIME | Time of Last Change | AEUHR | TIMS | 6 | ATIME | ||||
CHANGED_BY | Name of Person Who Changed Object | AENAM | CHAR | 12 | USNAM | ||||
CHANGED_BY_REPORT | Change Report | AEREP | CHAR | 40 | AEREP | ||||
NO_COMMENCEMENT_TRIP | Trip Number of Corresponding Trip to Start Work | PTRV_DANTN | NUMC | 10 | REINR | ||||
NO_OF_RETURNTRIP | Trip Number of Associated Business Trip Return | PTRV_FINTN | NUMC | 10 | REINR |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPI_PTP02 using ABAP code?
As BAPI_PTP02 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 BAPI_PTP02 as there is no data to select.How to access SAP table BAPI_PTP02
Within an ECC or HANA version of SAP you can also view further information about BAPI_PTP02 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