Sie sind auf Seite 1von 11

<?xml version="1.0" encoding="utf-8"?

>
<edmx:Edmx Version="1.0"
xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:sap="http://www.sap.com/Protocols/SAPData">
<edmx:DataServices m:DataServiceVersion="2.0">
<Schema Namespace="TRAVEL" sap:schema-version="1"
xml:lang="en" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
<!--Trip Data-->
<EntityType Name="Trip" sap:content-version="1">
<Key>
<PropertyRef Name="TripID"/>
</Key>
<Property MaxLength="10" Name="TripID"
Nullable="false" Type="Edm.String" sap:creatable="false" sap:label="Trip ID"
sap:updatable="false"/>
<Property MaxLength="80" Name="TripName"
Nullable="false" Type="Edm.String" sap:label="Trip Name"/>
<Property MaxLength="80" Name="Destination"
Type="Edm.String" sap:filterable="false" sap:label="Destination"
sap:semantics="city"
sap:sortable="false"/>
<Property MaxLength="80" Name="Status"
Nullable="false" Type="Edm.String" sap:label="statusl"/>
<Property MaxLength="80" Name="ProjectID"
Nullable="false" Type="Edm.String" sap:label="ProjectID"/>
<Property MaxLength="80" Name="ProjectName"
Nullable="false" Type="Edm.String" sap:label="ProjectName"/>
<Property MaxLength="30" Name="Purpose"
Type="Edm.String" sap:label="Purpose"/>

<Property MaxLength="30" Name="Activity"


Type="Edm.String" sap:label="Activity"/>
<Property MaxLength="10" Name="FromDate"
Type="Edm.DateTime" sap:label="From Date"/>
<Property MaxLength="10" Name="ToDate"
Type="Edm.DateTime" sap:label="To Date"/>
<Property MaxLength="80" Name="TripCost"
Nullable="false" Type="Edm.String" sap:label="Trip Cost"/>
<Property MaxLength="5" Name="CurrencyCode"
Nullable="false" Type="Edm.String" sap:label="Currency Code"
sap:semantics="currency-code"/>
<NavigationProperty
FromRole="FromRole_Assoc_Trip_Flight" Name="ToFlights"
Relationship="TRAVEL.Assoc_Trip_Flight"
ToRole="ToRole_Assoc_Trip_Flight"/>
<NavigationProperty
FromRole="FromRole_Assoc_Trip_Hotel" Name="ToHotels"
Relationship="TRAVEL.Assoc_Trip_Hotel"
ToRole="ToRole_Assoc_Trip_Hotel"/>
<NavigationProperty
FromRole="FromRole_Assoc_Trip_Rental" Name="ToRentals"
Relationship="TRAVEL.Assoc_Trip_Rental"
ToRole="ToRole_Assoc_Trip_Rental"/>
</EntityType>
<!--Flight Data-->
<EntityType Name="Flight" sap:content-version="1">
<Key>
<PropertyRef Name="TripID"/>
<PropertyRef Name="FlightConfNo"/>
</Key>

<Property MaxLength="10" Name="TripID"


Nullable="false" Type="Edm.String" sap:creatable="false" sap:label="Trip ID"
sap:updatable="false"/>
<Property MaxLength="10" Name="FlightConfNo"
Nullable="false" Type="Edm.String" sap:label="Confirmation Number"
sap:updatable="false"/>
<Property MaxLength="8" Name="FlightNo"
Nullable="false" Type="Edm.String" sap:label="Flight Number"/>
<Property MaxLength="20" Name="FlightName"
Nullable="false" Type="Edm.String" sap:label="Flight Name"/>
<Property MaxLength="20" Name="FromCity"
Nullable="false" Type="Edm.String" sap:label="From City" sap:semantics="city"/>
<Property MaxLength="20" Name="ToCity"
Nullable="false" Type="Edm.String" sap:label="To City" sap:semantics="city"/>
<Property ConcurrencyMode="Fixed" Name="DepartAt"
Precision="7" Type="Edm.DateTime" sap:creatable="false" sap:label="Depart At"
sap:updatable="false"/>
<Property ConcurrencyMode="Fixed" Name="ArriveAt"
Precision="7" Type="Edm.DateTime" sap:creatable="false" sap:label="Arrive At"
sap:updatable="false"/>
<Property MaxLength="80" Name="FlightCost"
Nullable="false" Type="Edm.String" sap:label="Flight Cost"/>
<Property MaxLength="5" Name="CurrencyCode"
Nullable="false" Type="Edm.String" sap:label="Currency Code"
sap:semantics="currency-code"/>
<NavigationProperty
FromRole="FromRole_Assoc_Trip_Flight" Name="ToFlight"
Relationship="TRAVEL.Assoc_Trip_Flight"
ToRole="ToRole_Assoc_Trip_Flight"/>
</EntityType>
<!--Hotel Data-->
<EntityType Name="Hotel" sap:content-version="1">

<Key>
<PropertyRef Name="TripID"/>
<PropertyRef Name="HotelConfNo"/>
</Key>
<Property MaxLength="10" Name="TripID"
Nullable="false" Type="Edm.String" sap:creatable="false" sap:label="Trip ID"
sap:updatable="false"/>
<Property MaxLength="255" Name="Description"
Type="Edm.String" sap:filterable="false" sap:label="Description"
sap:sortable="false"
sap:updatable="false"/>
<Property MaxLength="10" Name="HotelConfNo"
Nullable="false" Type="Edm.String" sap:creatable="false" sap:filterable="false"
sap:label="Hotel Confirmation Number"
sap:sortable="false" sap:updatable="false"/>
<Property MaxLength="80" Name="HotelName"
Type="Edm.String" sap:creatable="false" sap:label="Hotel Name"
sap:updatable="false"/>
<Property Name="Address" Nullable="false"
Type="TRAVEL.CT_Address"/>
<Property Name="HotelCharge" Precision="16"
Scale="3" Type="Edm.Decimal" sap:creatable="false" sap:label="Charge"
sap:unit="CurrencyCode"
sap:updatable="false"/>
<Property ConcurrencyMode="Fixed" Name="FromDate"
Precision="7" Type="Edm.DateTime" sap:creatable="false" sap:label="From Date"
sap:updatable="false"/>
<Property ConcurrencyMode="Fixed" Name="ToDate"
Precision="7" Type="Edm.DateTime" sap:creatable="false" sap:label="To Date"
sap:updatable="false"/>

<NavigationProperty
FromRole="FromRole_Assoc_Trip_Hotel" Name="ToHotel"
Relationship="TRAVEL.Assoc_Trip_Hotel"
ToRole="ToRole_Assoc_Trip_Hotel"/>
<!--<NavigationProperty
FromRole="ToRole_Assoc_BusinessPartner_SalesOrders"
Name="ToBusinessPartner"-->
<!-Relationship="/IWBEP/GWSAMPLE_BASIC.Assoc_BusinessPartner_SalesOrders"
ToRole="FromRole_Assoc_BusinessPartner_SalesOrders"/>-->
<!--<NavigationProperty
FromRole="FromRole_Assoc_SalesOrder_SalesOrderLineItems"
Name="ToLineItems"-->
<!-Relationship="/IWBEP/GWSAMPLE_BASIC.Assoc_SalesOrder_SalesOrderLineItems"
ToRole="ToRole_Assoc_SalesOrder_SalesOrderLineItems"/>-->
</EntityType>
<!--Rental Data-->
<EntityType Name="Rental" sap:content-version="1">
<Key>
<PropertyRef Name="TripID"/>
<PropertyRef Name="RentalConfNo"/>
</Key>
<Property MaxLength="10" Name="TripID"
Nullable="false" Type="Edm.String" sap:creatable="false" sap:label="Trip ID"
sap:updatable="false"/>
<Property MaxLength="10" Name="RentalConfNo"
Nullable="false" Type="Edm.String" sap:label="Confirmation Number"
sap:updatable="false"/>
<Property MaxLength="20" Name="RentalName"
Nullable="false" Type="Edm.String" sap:label="Rental Company Name"/>

<Property Name="Address" Nullable="false"


Type="TRAVEL.CT_Address"/>
<Property MaxLength="20" Name="FromCity"
Nullable="false" Type="Edm.String" sap:label="City" sap:semantics="city"/>
<Property ConcurrencyMode="Fixed" Name="FromDate"
Precision="7" Type="Edm.DateTime" sap:creatable="false" sap:label="From Date"
sap:updatable="false"/>
<Property ConcurrencyMode="Fixed" Name="ToDate"
Precision="7" Type="Edm.DateTime" sap:creatable="false" sap:label="To Date"
sap:updatable="false"/>
<Property MaxLength="80" Name="RentalCost"
Nullable="false" Type="Edm.String" sap:label="Rental Cost"/>
<Property MaxLength="5" Name="CurrencyCode"
Nullable="false" Type="Edm.String" sap:label="Currency Code"
sap:semantics="currency-code"/>
<NavigationProperty
FromRole="FromRole_Assoc_Trip_Rental" Name="ToRental"
Relationship="TRAVEL.Assoc_Trip_Rental"
ToRole="ToRole_Assoc_Trip_Rental"/>
</EntityType>
<!--Contact Data-->
<EntityType Name="Contact" sap:content-version="1">
<Key>
<PropertyRef Name="ConfNo"/>
</Key>
<Property Name="Address" Nullable="false"
Type="TRAVEL.CT_Address"/>
<Property Name="ConfNo" Nullable="false"
Type="Edm.Guid" sap:creatable="false" sap:label="Confirmation Number"
sap:updatable="false"/>

<Property MaxLength="10" Name="Title"


Type="Edm.String" sap:label="Title"/>
<Property MaxLength="40" Name="FirstName"
Nullable="false" Type="Edm.String" sap:label="First Name"
sap:semantics="givenname"/>
<Property MaxLength="40" Name="MiddleName"
Type="Edm.String" sap:label="Middle Name" sap:semantics="middlename"/>
<Property MaxLength="40" Name="LastName"
Type="Edm.String" sap:label="Last Name" sap:semantics="familyname"/>
<Property MaxLength="40" Name="Nickname"
Type="Edm.String" sap:label="Nickname" sap:semantics="nickname"/>
<Property MaxLength="10" Name="Initials"
Type="Edm.String" sap:label="Initials"/>
<Property MaxLength="1" Name="Sex" Nullable="false"
Type="Edm.String" sap:label="Gender"/>
<Property MaxLength="30" Name="PhoneNumber"
Type="Edm.String" sap:label="Phone No." sap:semantics="tel"/>
<Property MaxLength="30" Name="FaxNumber"
Type="Edm.String" sap:label="Fax Number"/>
<Property MaxLength="255" Name="EmailAddress"
Type="Edm.String" sap:label="E-Mail" sap:semantics="email"/>
<Property MaxLength="2" Name="Language"
Type="Edm.String" sap:label="Language Key"/>
<Property Name="DateOfBirth" Precision="7"
Type="Edm.DateTime" sap:label="Date of Birth" sap:semantics="bday"/>
<!--<NavigationProperty
FromRole="ToRole_Assoc_BusinessPartner_Contacts" Name="ToBusinessPartner"-->
<!-Relationship="/IWBEP/GWSAMPLE_BASIC.Assoc_BusinessPartner_Contacts"
ToRole="FromRole_Assoc_BusinessPartner_Contacts"/>-->
</EntityType>
<ComplexType Name="CT_Address">

<Property MaxLength="40" Name="City"


Type="Edm.String" sap:label="City" sap:semantics="city"/>
<Property MaxLength="10" Name="PostalCode"
Type="Edm.String" sap:label="Postal Code" sap:semantics="zip"/>
<Property MaxLength="60" Name="Street"
Type="Edm.String" sap:label="Street" sap:semantics="street"/>
<Property MaxLength="10" Name="Building"
Type="Edm.String" sap:label="Building"/>
<Property MaxLength="3" Name="Country"
Type="Edm.String" sap:label="Country" sap:semantics="country"/>
<Property MaxLength="2" Name="AddressType"
Type="Edm.String" sap:label="Address Type"/>
</ComplexType>
<ComplexType Name="CT_String">
<Property Name="String" Nullable="false"
Type="Edm.String" sap:creatable="false" sap:filterable="false" sap:sortable="false"
sap:updatable="false"/>
</ComplexType>
<!--Defining Associations-->
<!--Association between Trip & Flight

-->

<Association Name="Assoc_Trip_Flight" sap:contentversion="1">


<End Multiplicity="1" Role="FromRole_Assoc_Trip_Flight"
Type="TRAVEL.Trip"/>
<End Multiplicity="*" Role="ToRole_Assoc_Trip_Flight"
Type="TRAVEL.Flight"/>
<ReferentialConstraint>
<Principal Role="FromRole_Assoc_Trip_Flight">
<PropertyRef Name="TripID"/>
</Principal>

<Dependent Role="ToRole_Assoc_Trip_Flight">
<PropertyRef Name="TripID"/>
</Dependent>
</ReferentialConstraint>
</Association>
<!--Association between Trip & Hotel

-->

<Association Name="Assoc_Trip_Hotel" sap:contentversion="1">


<End Multiplicity="1" Role="FromRole_Assoc_Trip_Hotel"
Type="TRAVEL.Trip"/>
<End Multiplicity="*" Role="ToRole_Assoc_Trip_Hotel"
Type="TRAVEL.Hotel"/>
<ReferentialConstraint>
<Principal Role="FromRole_Assoc_Trip_Hotel">
<PropertyRef Name="TripID"/>
</Principal>
<Dependent Role="ToRole_Assoc_Trip_Hotel">
<PropertyRef Name="TripID"/>
</Dependent>
</ReferentialConstraint>
</Association>
<!--Association between Trip & Rental

-->

<Association Name="Assoc_Trip_Rental" sap:contentversion="1">


<End Multiplicity="1" Role="FromRole_Assoc_Trip_Rental"
Type="TRAVEL.Trip"/>
<End Multiplicity="*" Role="ToRole_Assoc_Trip_Rental"
Type="TRAVEL.Rental"/>
<ReferentialConstraint>

<Principal Role="FromRole_Assoc_Trip_Rental">
<PropertyRef Name="TripID"/>
</Principal>
<Dependent Role="ToRole_Assoc_Trip_Rental">
<PropertyRef Name="TripID"/>
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="TRAVEL_Entities"
m:IsDefaultEntityContainer="true" sap:supported-formats="atom json xlsx">
<EntitySet EntityType="TRAVEL.Trip" Name="TripSet"
sap:content-version="1"/>
<EntitySet EntityType="TRAVEL.Flight" Name="FlightSet"
sap:content-version="1"/>
<EntitySet EntityType="TRAVEL.Hotel" Name="HotelSet"
sap:content-version="1"/>
<EntitySet EntityType="TRAVEL.Rental"
Name="RentalSet" sap:content-version="1"/>
<!--<EntitySet
EntityType="/IWBEP/GWSAMPLE_BASIC.Contact" Name="ContactSet" sap:contentversion="1"/>-->
<AssociationSet Association="TRAVEL.Assoc_Trip_Flight"
Name="Assoc_Trip_Flight_AssocSet" sap:content-version="1" sap:creatable="false"
sap:deletable="false" sap:updatable="false">
<End EntitySet="TripSet"
Role="FromRole_Assoc_Trip_Flight"/>
<End EntitySet="FlightSet"
Role="ToRole_Assoc_Trip_Flight"/>
</AssociationSet>
<AssociationSet Association="TRAVEL.Assoc_Trip_Hotel"
Name="Assoc_Trip_Hotel_AssocSet" sap:content-version="1" sap:creatable="false"

sap:deletable="false" sap:updatable="false">
<End EntitySet="TripSet"
Role="FromRole_Assoc_Trip_Hotel"/>
<End EntitySet="HotelSet"
Role="ToRole_Assoc_Trip_Hotel"/>
</AssociationSet>
<AssociationSet Association="TRAVEL.Assoc_Trip_Rental"
Name="Assoc_Trip_Rental_AssocSet" sap:content-version="1" sap:creatable="false"
sap:deletable="false" sap:updatable="false">
<End EntitySet="TripSet"
Role="FromRole_Assoc_Trip_Rental"/>
<End EntitySet="RentalSet"
Role="ToRole_Assoc_Trip_Rental"/>
</AssociationSet>
<FunctionImport Name="RegenerateAllData"
ReturnType="TRAVEL.CT_String" m:HttpMethod="POST">
<Parameter Mode="In" Name="NoOfTrips"
Type="Edm.Int32"/>
</FunctionImport>
</EntityContainer>
<atom:link
href="https://SAPES4.SAPDEVCENTER.COM:443/sap/opu/odata/TRAVEL/$metadata"
rel="self" xmlns:atom="http://www.w3.org/2005/Atom"/>
<atom:link
href="https://SAPES4.SAPDEVCENTER.COM:443/sap/opu/odata/TRAVEL/$metadata"
rel="latest-version"
xmlns:atom="http://www.w3.org/2005/Atom"/>
</Schema>
</edmx:DataServices>
</edmx:Edmx>

Das könnte Ihnen auch gefallen