cancel
Showing results for 
Search instead for 
Did you mean: 

Editing mockdata in SAP Web IDE

Former Member
0 Kudos

Hi there,

I recently started using SAP Web IDE.

I created a sample fiori starter application for mockdata following the steps provided by this blog - .


Now, I would like to edit the mockdata provided by the metadata.xml file.

I followed this documentation - SAP Web IDE Developer Guide

However, I don't find the option "Edit Mock Data" as mentioned in the developer guide.

My Web IDE version is 1.5


Could anybody please guide me here?


Please find the attached image for more information.

Best Regards,

Prerana

Accepted Solutions (1)

Accepted Solutions (1)

Andreas_Wiedema
Explorer
0 Kudos

Hi Prerana,

Could you please try to add <?xml version="1.0" encoding="utf-8"?> at the beginning of the metadata.xml file?

The metadata.xml should look somehow like this afterwards:


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

<edmx:Edmx Version="1.0"

    xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"

    xmlns:sap="http://www.sap.com/Protocols/SAPData">

    <edmx:DataServices

        xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0">

        <Schema

            xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="MySalesOrders">

            <EntityType Name="SalesOrder">

                <Key>

                    <PropertyRef Name="SalesOrderNumber" />

                </Key>

                <Property Name="SalesOrderNumber" Type="Edm.String" sap:label="Sales Order Number" Nullable="false" MaxLength="10" />

                <Property Name="TotalAmount" Type="Edm.Decimal" sap:label="Total Amount" Precision="16" Scale="3" sap:unit="Currency" MaxLength="10" />

                <Property Name="Currency" Type="Edm.String" sap:label="Currency" MaxLength="5" sap:semantics="currency-code" />

                <Property Name="CustomerID" Type="Edm.String" sap:label="Customer ID" MaxLength="10" />

                <Property Name="CustomerName" Type="Edm.String" sap:label="Customer Name" MaxLength="35" />

                <Property Name="NetPriceAmount" Type="Edm.Decimal" sap:label="Net Price Amount" Precision="16" Scale="3" sap:unit="Currency" />

                <Property Name="TaxAmount" Type="Edm.Decimal" sap:label="Tax Amount" Precision="16" Scale="3" sap:unit="Currency" />

                <Property Name="OrderDate" Type="Edm.String" sap:label="Order Date" />

                <Property Name="RequestedDate" Type="Edm.String" sap:label="Requested Date" />

                <Property Name="Status" Type="Edm.String" MaxLength="1" sap:label="Status" />

                <Property Name="SalesOrganization" Type="Edm.String" MaxLength="4" sap:label="Sales Organization" />

                <Property Name="SalesOrganizationName" Type="Edm.String" MaxLength="20" sap:label="SalesOrganizationName" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

                <Property Name="DistributionChannel" Type="Edm.String" MaxLength="4" sap:label="Distribution Channel" />

                <Property Name="Division" Type="Edm.String" MaxLength="2" sap:label="Division" />

                <Property Name="DistributionChannelName" Type="Edm.String" MaxLength="20" sap:label="DistributionChannelName" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

                <Property Name="DivisionName" Type="Edm.String" MaxLength="20" sap:label="DviisionName" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

            </EntityType>

            <EntityContainer Name="MySalesOrders_Entities" m:IsDefaultEntityContainer="false">

                <EntitySet Name="SalesOrders" EntityType="MySalesOrders.SalesOrder" sap:searchable="true" sap:requires-filter="true" />

            </EntityContainer>

        </Schema>

    </edmx:DataServices>

</edmx:Edmx>

Kind regards,

Andreas

Former Member
0 Kudos

Hi Andreas,

Thanks a lot for your reply!

How silly of me on overlooking at this solution.

Have a great day!

Regards,

Prerana

Answers (0)