BAPITRMAIN SAP (Header data for a trip; Structure for BAPI interface) Structure details

Dictionary Type: Structure
Description: Header data for a trip; Structure for BAPI interface




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




Structure field list including key, data, relationships and ABAP select examples

BAPITRMAIN 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 "Header data for a trip; Structure for BAPI interface" 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_BAPITRMAIN TYPE BAPITRMAIN.

The BAPITRMAIN table consists of various fields, each holding specific information or linking keys about Header data for a trip; Structure for BAPI interface data available in SAP. These include DEP_TIME (Beginning Time of Trip Segment), ARR_DATE (End Date of Trip Segment), ARR_TIME (End Time of Trip Segment), CUSTOMER (Reason for Trip (for example, customer/requisitioner)).. 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 BAPITRMAIN 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
DEP_DATEBeginning Date of Trip Segment REBEDDATS8REDAT
DEP_TIMEBeginning Time of Trip Segment REBEUTIMS6REUHR
ARR_DATEEnd Date of Trip Segment REENDDATS8REDAT
ARR_TIMEEnd Time of Trip Segment REENUTIMS6REUHR
CUSTOMERReason for Trip (for example, customer/requisitioner) RKUNDECHAR59RKUNDE
LOCATIONLocation RZIELORTCHAR59RZIELORT
COUNTRYTrip Country / Trip Country Group LNDGRCHAR3T706OLNDGR
REGIONRegion of Main Destination HRGIOCHAR5T702ORGION
OUT_DATEBorder Crossing (Trip Out): Date DATGHDATS8REDAT
OUT_TIMETime: Border crossing(trip out) UHRGHTIMS6REUHR
RET_DATEBorder Crossing (Return Trip): Date DATGZDATS8REDAT
RET_TIMETime: Border crossing(return trip) UHRGZTIMS6REUHR
RET_COUNReturn trip from country RET_COUNCHAR3T706OLNDGR
RET_RGIOTrip country/trip country group/trip region RET_RGIOCHAR5T702ORGION
RET_TTCSTrip type: Enterprise-specific RET_TTCSCHAR1T702XBEREI
T_SCHEMATrip schema RSCHECHAR2T706SRSCHE
TT_COMSPTrip Type: Enterprise-Specific BEREICHAR1T702XBEREI
TT_STATUTrip Type: Statutory KZREACHAR1T702GKZREA
T_ACTYPETrip Activity Type KZTKTCHAR1T702RKZTKT
PD_MEALSPer-Diem Accounting for Meals VERPACHAR1VERPA
PD_ACCOMPer-Diem Accounting for Accommodations UEPKZCHAR1UEPKZ
NO_NIGHTNumber of Overnight Stays for Per-Diem Settlement ANUEPDEC2ANUEP
PSTLZPostal Code PSTLZCHAR10PSTLZ
ORT01City PAD_ORT01CHAR40PAD_ORT01
STRASStreet and House Number PAD_STRASCHAR60PAD_STRAS
STATESTATE (State, Province, County) REGIOCHAR3Assigned to domainREGIO
REQUESTIndicator for objects request, plan and expense report PTRV_OBJEKTCHAR1CHAR1
TRAVEL_PLANIndicator for objects request, plan and expense report PTRV_OBJEKTCHAR1CHAR1
EXPENSESIndicator for objects request, plan and expense report PTRV_OBJEKTCHAR1CHAR1
ORT02District PAD_ORT02CHAR40PAD_ORT01
CITY_CODECity code for city/street file AD_CITYNUMCHAR12Assigned to domainALPHACITY_CODE
TAX_PER_DIEMAutomatic Taxation of Meals Per Diems PTRV_TAX_PER_DIEM_CORECHAR1XFELD
TAX_PD_MANManually Triggered Taxation of Meals Per Diems PTRV_TAX_PD_MAN_CORECHAR1XFELD
TAX_OV_MANManually Triggered Taxation of Accommodations Per Diems PTRV_TAX_OV_MAN_CORECHAR1XFELD
EXCHANGE_DATEReference Date of Trip PTRV_DATTN_COREDATS8REDAT
ROUNDINGTravel Amounts Are Rounded (Indicator) PTRV_ROUNDING_CORECHAR1XFELD

Key field Non-key field



How do I retrieve data from SAP structure BAPITRMAIN using ABAP code?

As BAPITRMAIN 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 BAPITRMAIN as there is no data to select.

How to access SAP table BAPITRMAIN

Within an ECC or HANA version of SAP you can also view further information about BAPITRMAIN 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!