SAP BAPILOCATIONID Location table for event message input Table data and field list

BAPILOCATIONID 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 "Location table for event message input" 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_BAPILOCATIONID TYPE BAPILOCATIONID.

The BAPILOCATIONID table consists of various fields, each holding specific information or linking keys about Location table for event message input data available in SAP. These include LEADID (Leading Definition of Location), LOCCAT (Reference Point Code for Location), LOCCOD (Location Code Set), LOCID1 (Location Code ID, Part 1)... 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. .

BAPILOCATIONID structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP BAPILOCATIONID structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the BAPILOCATIONID table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
EVTCNTCounter for Event /SAPTRX/EVTCNTNUMC10NUM10
LEADIDLeading Definition of Location /SAPTRX/EV_LEADIDCHAR1/SAPTRX/EV_LEADID
LOCCATReference Point Code for Location /SAPTRX/EV_LOCCATCHAR2/SAPTRX/EV_LOCCAT
LOCCODLocation Code Set /SAPTRX/EV_LOCCODCHAR20/SAPTRX/EV_LOCCOD
LOCID1Location Code ID, Part 1 /SAPTRX/EV_LOCID1CHAR50/SAPTRX/LOCID
LOCID2Location Code ID, Part 2 /SAPTRX/EV_LOCID2CHAR50/SAPTRX/LOCID
LOCNAMLocation Name /SAPTRX/EV_LOCNAMCHAR50/SAPTRX/TEXT50
LOCZONValid Time Zone for Location /SAPTRX/EV_LOCZONCHAR6Assigned to domainTZNZONE
ROUTYPRoute Code Set /SAPTRX/EV_ROUTYPCHAR20/SAPTRX/EV_ROUTYP
ROUTIDRoute Code ID /SAPTRX/EV_ROUTIDCHAR50/SAPTRX/ROUTID
ADDNUMAddress Number /SAPTRX/ADDNUMNUMC10NUM10
DESNUMDescription Number /SAPTRX/DESNUMNUMC10NUM10
LAINUMLocation Additional Identifier Number /SAPTRX/LAINUMNUMC10NUM10

Key field Non-key field



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

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

How to access SAP table BAPILOCATIONID

Within an ECC or HANA version of SAP you can also view further information about BAPILOCATIONID and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).