/SCMTMS/VE_LocQuByPhysAdd
BOPF: Location Query By Physical Address
/SCMTMS/VE_LocQuByPhysAdd is a CDS View that provides data about "BOPF: Location Query By Physical Address" in SAP S/4HANA. It reads from 4 data sources (I_AddressEmailAddress_2, I_AddressFaxNumber_2, I_LocationBasic, adr2) and exposes 21 fields. It has 2 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_AddressEmailAddress_2 | _Email | left_outer |
| I_AddressFaxNumber_2 | _Fax | left_outer |
| I_LocationBasic | _Location | from |
| adr2 | _Phone | left_outer |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | adrc | _Address | _Address.addrnumber = _Location.AddressID and _Address.nation = ' ' |
| [0..1] | /SCMTMS/VE_LOCAD | _SelAddDet | _Location.Location = _SelAddDet.location_id |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | BOPF: Location Query By Physical Address | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| location_id | I_LocationBasic | Location | Text | |
| iatacode | I_LocationBasic | LocationIATACode | IATA Code | |
| unlocode | I_LocationBasic | LocationUNCode | UN/LOCODE | |
| country_code | _SelAddDet | country_code | Int. Veh. Reg. | |
| region | _SelAddDet | region | Venue Region | |
| house_id | _SelAddDet | house_id | ||
| city_name | _Address | mc_city1 | City | |
| street_name | _Address | mc_street | Street | |
| street | _Address | streetcode | Street Code | |
| care_of_name | _Address | name_co | c/o | |
| district | _Address | cityp_code | District Code | |
| city | _Address | city_code | Japan City Code | |
| building_id | _Address | building | Building code | |
| floor_id | _Address | floor | Floor | |
| room_id | _Address | roomnumber | Room Number | |
| region_group | _Address | regiogroup | Structure Group | |
| pobox_id | _Address | po_box | PO Box | |
| email_uri | I_AddressEmailAddress_2 | EmailAddress | E-Mail Address | |
| bp_completed | ||||
| AuthorizationGroup | I_LocationBasic | AuthorizationGroup | AuthorizGroup | |
| IsBusinessPurposeCompleted | I_LocationBasic | IsBusinessPurposeCompleted | Purpose Completed |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view /SCMTMS/VE_LocQuByPhysAdd.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW /SCMTMS/VE_LocQuByPhysAdd AS
SELECT
_Location.Location AS location_id,
_Location.LocationIATACode AS iatacode,
_Location.LocationUNCode AS unlocode,
_SelAddDet.country_code AS country_code,
_SelAddDet.region AS region,
_SelAddDet.house_id AS house_id,
_Address.mc_city1 AS city_name,
_Address.mc_street AS street_name,
_Address.streetcode AS street,
_Address.name_co AS care_of_name,
_Address.cityp_code AS district,
_Address.city_code AS city,
_Address.building AS building_id,
_Address.floor AS floor_id,
_Address.roomnumber AS room_id,
_Address.regiogroup AS region_group,
_Address.po_box AS pobox_id,
_Email.EmailAddress AS email_uri,
_Location._BusinessPartner.IsBusinessPurposeCompleted AS bp_completed,
_Location.AuthorizationGroup AS AuthorizationGroup,
_Location.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_LocationBasic AS _Location
LEFT OUTER JOIN I_AddressFaxNumber_2 AS _Fax ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adr2 AS _Phone ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AddressEmailAddress_2 AS _Email ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrc AS _Address ON _Address.addrnumber = _Location.AddressID AND _Address.nation = ' ' -- association [0..1]
LEFT OUTER JOIN /SCMTMS/VE_LOCAD AS _SelAddDet ON _Location.Location = _SelAddDet.location_id -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA