Skip to Content
0

How to insert data in Navigation Property "AddDestination" ???

Jan 26 at 06:41 PM

37

avatar image
I want to insert data in Entitytype name= AddDestination. show can you kindly help me??


            <EntityType Name="Travel" sap:content-version="1">
                <Key>
                    <PropertyRef Name="Id"/>
                </Key>
                <Property Name="EstimatedCost" Type="ZZSRA004_SRV.Amount" Nullable="false"/>
                <Property Name="Id" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Id" sap:sortable="false"/>
                <Property Name="Purpose" Type="Edm.String" MaxLength="59" m:FC_TargetPath="SyndicationTitle" m:FC_KeepInContent="true" sap:label="Purpose" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Departure" Type="Edm.DateTime" Nullable="false" Precision="7" sap:label="Departure" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Arrival" Type="Edm.DateTime" Nullable="false" Precision="7" sap:label="Arrival" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Location" Type="Edm.String" Nullable="false" MaxLength="59" sap:label="Location" sap:sortable="false" sap:filterable="false"/>
                <Property Name="CountryCode" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="CountryCode" sap:sortable="false" sap:filterable="false"/>
                <Property Name="CountryName" Type="Edm.String" Nullable="false" MaxLength="60" sap:label="CountryName" sap:sortable="false" sap:filterable="false"/>
                <Property Name="RegionCode" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="RegionCode" sap:sortable="false" sap:filterable="false"/>
                <Property Name="RegionName" Type="Edm.String" Nullable="false" MaxLength="25" sap:label="RegionName" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Approver" Type="Edm.String" Nullable="false" sap:label="Approver" sap:sortable="false" sap:filterable="false"/>
                <Property Name="ApproverPersonalNumber" Type="Edm.String" Nullable="false" MaxLength="8" sap:label="ApproverPersonalNumber" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Note" Type="Edm.String" Nullable="false" sap:label="Note" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Status" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Status" sap:sortable="false" sap:filterable="false"/>
                <Property Name="LastChangeDate" Type="Edm.DateTime" Nullable="false" Precision="7" ConcurrencyMode="Fixed" sap:label="LastChangeDate" sap:sortable="false"/>
                <Property Name="InlineCostAssignment" Type="Edm.String" sap:label="InlineCostAssignment" sap:creatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="TripActivity" Type="Edm.String" MaxLength="1" sap:label="TripActivity" sap:sortable="false" sap:filterable="false"/>
                <Property Name="TripActivityName" Type="Edm.String" MaxLength="40" sap:label="TripActivityName" sap:creatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Editable" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Editable" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Deletable" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Deletable" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="NumberOfAttachments" Type="Edm.Int32" sap:label="NumberOfAttachments" sap:creatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="AllowedAttachmentExt" Type="Edm.String" MaxLength="20" sap:label="AllowedAttachmentExt" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="UserAction" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="UserAction" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Allowedestimatedcost" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="AllowedEstimatedCost" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <NavigationProperty Name="CostAssignments" Relationship="ZZSRA004_SRV.Travel_CostAssignment" FromRole="FromRole_Travel_CostAssignment" ToRole="ToRole_Travel_CostAssignment"/>
                <NavigationProperty Name="Notes" Relationship="ZZSRA004_SRV.Travel_Note" FromRole="FromRole_Travel_Note" ToRole="ToRole_Travel_Note"/>
                <NavigationProperty Name="Attachments" Relationship="ZZSRA004_SRV.Travel_Attachment" FromRole="FromRole_Travel_Attachment" ToRole="ToRole_Travel_Attachment"/>
                <NavigationProperty Name="EstimatedCosts" Relationship="ZZSRA004_SRV.Travel_Estimated_Cost" FromRole="FromRole_Travel_Estimated_Cost" ToRole="ToRole_Travel_Estimated_Cost"/>
                <NavigationProperty Name="AddDestinations" Relationship="ZZSRA004_SRV.Travel_AddDestination" FromRole="FromRole_Travel_AddDestination" ToRole="ToRole_Travel_AddDestination"/>
            </EntityType>
            
            <EntityType Name="AddDestination" sap:content-version="1">
                <Key>
                    <PropertyRef Name="Id"/>
                </Key>
                <Property Name="Id" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Trip Number" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="KeyStop" Type="Edm.String" Nullable="false" MaxLength="2" sap:label="Dest.Assignment" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="StopType" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Destin." sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Datedep" Type="Edm.DateTime" Nullable="false" Precision="7" sap:label="Trip Begins On" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Timedep" Type="Edm.Time" Nullable="false" Precision="0" sap:label="Trip Begins At" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Customer" Type="Edm.String" Nullable="false" MaxLength="17" sap:label="Reason" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Location" Type="Edm.String" Nullable="false" MaxLength="17" sap:label="Destination" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Country" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Trip Country" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Region" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Trip Region" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="TtStatu" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Trip Type S" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="TtComsp" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Trip Type E" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="TActype" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Activity" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="PlanActivityType" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Activity Type" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="ReqItineraryNumber" Type="Edm.String" Nullable="false" MaxLength="2" sap:label="Trip segmentNo." sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="NoNight" Type="Edm.Decimal" Nullable="false" Precision="2" Scale="0" sap:label="PD Nights" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="AbsenceType" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Abs. Type" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="AllowanceType" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Allowance Type" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="SpouseSepAllw" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Spouse" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="ChargAccomm" Type="Edm.Boolean" Nullable="false" sap:label="Chargeable Accommod" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Adrnradr" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Address number" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Cityadr" Type="Edm.String" Nullable="false" MaxLength="40" sap:label="City" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="CityDistrictadr" Type="Edm.String" Nullable="false" MaxLength="40" sap:label="District" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="PostCodeadr" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Postal Code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="CityCodeadr" Type="Edm.String" Nullable="false" MaxLength="12" sap:label="City Code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Streetadr" Type="Edm.String" Nullable="false" MaxLength="60" sap:label="Street" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="HouseNumadr" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="House Number" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Countryadr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Country" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
              
  
            </EntityType>
            
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers