BAPI_PTP42 SAP (Structure of transp. table PTRV_PERIO) Structure details
Description: Structure of transp. table PTRV_PERIO
Structure field list including key, data, relationships and ABAP select examples
BAPI_PTP42 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 transp. table PTRV_PERIO" 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_PTP42 TYPE BAPI_PTP42.
The BAPI_PTP42 table consists of various fields, each holding specific information or linking keys about Structure of transp. table PTRV_PERIO data available in SAP. These include TRIPNO (Trip Number), TRAVEL_PERIOD_NO (Trip Period Number), PERIOD_VERSION (Sequential Number of Period), HEADER_VERSION (Sequential Number of Travel Expenses Table THEADER).. 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_PTP42 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 | ||||
TRAVEL_PERIOD_NO | Trip Period Number | PTRV_PEROD | NUMC | 3 | PTRV_PEROD | ||||
PERIOD_VERSION | Sequential Number of Period | PTRV_PDVRS | NUMC | 2 | NUMC2 | ||||
HEADER_VERSION | Sequential Number of Travel Expenses Table THEADER | PTRV_HDVRS | NUMC | 2 | PTRVNUMC2 | ||||
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 | ||||
PRINTED | Trip Print Status | P_PRINT | CHAR | 1 | P_PRINT | ||||
APPROVED | Travel Request or Trip Approved (Indicator) | ANTRG | CHAR | 1 | ANTRG | ||||
ACCOUNT | Open / To be Settled / Settled (Indicator) | ABREC | CHAR | 1 | ABREC | ||||
TRAN_PAY | HR Payroll Transfer (Indicator) | UEBLG | CHAR | 1 | UEBLG | ||||
TRAN_FI | FI Transfer (Indicator) | UEBRF | CHAR | 1 | UEBRF | ||||
TRAN_DME | Data Medium Exchange Transfer (Indicator) | UEBDT | CHAR | 1 | UEBDT | ||||
CHECK_TRAVEL_LOCKED | Indicator: Trip locked | PTRV_TLOCK | CHAR | 1 | PTRV_TLOCK | ||||
CURRENCY | Currency Key | WAERS | CUKY | 5 | TCURC | WAERS | FWS | ||
CURRENCY_ISO | ISO currency code | ISOCD | CHAR | 3 | ISOCD | ||||
PAYROLL_YEAR | Payroll Year | PABRJ | NUMC | 4 | GJAHR | GJAHR | |||
PAYROLL_PERIOD | Payroll Period | PABRP | NUMC | 2 | PABRP | ||||
PERIOD_MODIFIER | Period modifier | IPERM | CHAR | 2 | CHAR2 | ||||
PAYROLL_AREA | Payroll Area | ABKRS | CHAR | 2 | T549A | ABKRS | ABK | ||
BEGIN_ACCOUNTING_PERIOD | Start of Settlement Period | PTRV_BEGP1 | DATS | 8 | PTRV_BEGP1 | ||||
END_ACCOUNTING_PERIOD | End of Settlement Period | PTRV_ENDP1 | DATS | 8 | PTRV_ENDP1 | ||||
PAYROLL_YEAR_2 | Settlement Year | PABRJ2 | NUMC | 4 | GJAHR | GJAHR | |||
PAYROLL_PERIOD_2 | Accounting Period | PABRP2 | NUMC | 2 | PABRP | ||||
PERIOD_MODIFIER_2 | Period Modifier | IPERM2 | CHAR | 2 | CHAR2 | ||||
PAYROLL_AREA_2 | Accounting Area | ABKRS2 | CHAR | 2 | T549A | ABKRS | ABK | ||
BEGIN_ACCOUNTING_PERIOD_2 | Start of Settlement Period | PTRV_BEGP2 | DATS | 8 | PTRV_BEGP2 | ||||
END_ACCOUNTING_PERIOD_2 | End of Settlement Period | PTRV_ENDP2 | DATS | 8 | PTRV_ENDP2 | ||||
DATE_TRAVEL_ACCOUNTING | Trip Settlement Date | PTRV_ACCDT | DATS | 8 | PTRV_BEGP1 | ||||
TIME_TRAVEL_ACCOUNTING | Trip Settlement Time | PTRV_ACCTM | TIMS | 6 | REUHR | ||||
ID_OF_POSTING_RUN | Sequential number of posting run | TR_EVNUM | NUMC | 10 | NUMC10 | ||||
PD_MEALS | Per-Diem Accounting for Meals | VERPA | CHAR | 1 | VERPA | ||||
PD_ACCOM | Per-Diem Accounting for Accommodations | UEPKZ | CHAR | 1 | UEPKZ | ||||
NO_NIGHT | Number of Overnight Stays for Per-Diem Settlement | ANUEP | DEC | 2 | ANUEP | ||||
NO_MILES | Indicator: No repeat of travel costs accounting | PTRV_NO_MILES_ACCOUNTING | CHAR | 1 | CHAR1 |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPI_PTP42 using ABAP code?
As BAPI_PTP42 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_PTP42 as there is no data to select.How to access SAP table BAPI_PTP42
Within an ECC or HANA version of SAP you can also view further information about BAPI_PTP42 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