Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

IT_KEY_TAB in GET_Entityset method

$
0
0

Hi All,

 

I have implemented GET_ENTITYSET method and I would like to invoke this method with IT_KEY_TAB filled.

Does anybody help how should I invoke GET_ENTITYSET method where I have values in IT_KEY_TAB?

 

I tried /sap/opu/odata/sap/ZGW_EPM_SALES_ORDER_SRV/SalesOrder(SoID='500000002') but it is invoking GET_ENTITY method and passing IT_KEY_TAB there but I want to invoke GET_ENTITYSET method.

 

Entity Set - SalesOrder in my case and Key is SoID.

 

 

 

MetaData -

 

 

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

 

-<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">

 

 

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

 

 

-<Schema Namespace="ZGW_EPM_SALES_ORDER_SRV" xml:lang="en" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">

 

 

-<EntityType Name="SalesOrder" sap:content-version="1" xmlns:sap="http://www.sap.com/Protocols/SAPData">

 

 

-<Key>

 

 

<PropertyRefName="SoID" />

 

</Key>

 

<PropertyName="SoID" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Sa. Ord. ID" />

 

 

<PropertyName="CurrencyCode" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Currency" sap:semantics="currency-code" />

 

 

<PropertyName="GrossAmount" Type="Edm.Decimal" Nullable="false" Precision="15" Scale="14" sap:label="Gross Amt." />

 

 

<PropertyName="NetAmount" Type="Edm.Decimal" Nullable="false" Precision="15" Scale="14" sap:label="Net Amt." />

 

 

<PropertyName="TaxAmount" Type="Edm.Decimal" Nullable="false" Precision="15" Scale="14" sap:label="Tax Amt." />

 

 

<NavigationPropertyName="SalesOrderItems" Relationship="ZGW_EPM_SALES_ORDER_SRV.OrderItems" FromRole="FromRole_OrderItems" ToRole="ToRole_OrderItems" />

 

</EntityType>

 

-<EntityType Name="SalesOrderItems" sap:content-version="1" xmlns:sap="http://www.sap.com/Protocols/SAPData">

 

 

-<Key>

 

 

<PropertyRefName="SoID" />

 

 

<PropertyRefName="SoItemPos" />

 

</Key>

 

<PropertyName="SoID" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Sa. Ord. ID" />

 

 

<PropertyName="SoItemPos" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="PO Item Pos" />

 

 

<PropertyName="ProductID" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Product ID" />

 

 

<PropertyName="Note" Type="Edm.String" Nullable="false" MaxLength="255" sap:label="Description" />

 

 

<PropertyName="CurrencyCode" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Currency" sap:semantics="currency-code" />

 

 

<PropertyName="GrossAmount" Type="Edm.Decimal" Nullable="false" Precision="15" Scale="14" sap:label="Gross Amt." />

 

 

<PropertyName="GrossAmountExt" Type="Edm.Decimal" Nullable="false" Precision="12" Scale="4" sap:label="Amount" />

 

 

<PropertyName="NetAmount" Type="Edm.Decimal" Nullable="false" Precision="15" Scale="14" sap:label="Net Amt." />

 

 

<PropertyName="NetAmountExt" Type="Edm.Decimal" Nullable="false" Precision="12" Scale="4" sap:label="Amount" />

 

 

<PropertyName="TaxAmount" Type="Edm.Decimal" Nullable="false" Precision="15" Scale="14" sap:label="Tax Amt." />

 

 

<PropertyName="TaxAmountExt" Type="Edm.Decimal" Nullable="false" Precision="12" Scale="4" sap:label="Amount" />

 

 

<PropertyName="DeliveryDate" Type="Edm.DateTime" Nullable="false" sap:label="Time Stamp" />

 

 

<PropertyName="Quantity" Type="Edm.Decimal" Nullable="false" Precision="7" Scale="3" sap:label="Quantity" />

 

 

<PropertyName="QuantityUnit" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Qty. Unit" sap:semantics="unit-of-measure" />

 

</EntityType>

 

-<Association Name="OrderItems" sap:content-version="1" xmlns:sap="http://www.sap.com/Protocols/SAPData">

 

 

<EndType="ZGW_EPM_SALES_ORDER_SRV.SalesOrder" Multiplicity="1" Role="FromRole_OrderItems" />

 

 

<EndType="ZGW_EPM_SALES_ORDER_SRV.SalesOrderItems" Multiplicity="*" Role="ToRole_OrderItems" />

 

 

-<ReferentialConstraint>

 

 

-<Principal Role="FromRole_OrderItems">

 

 

<PropertyRefName="SoID" />

 

</Principal>

 

-<Dependent Role="ToRole_OrderItems">

 

 

<PropertyRefName="SoID" />

 

</Dependent>

</ReferentialConstraint>

</Association>

 

-<EntityContainer Name="ZGW_EPM_SALES_ORDER_SRV" m:IsDefaultEntityContainer="true">

 

 

<EntitySetName="SalesOrderItems" EntityType="ZGW_EPM_SALES_ORDER_SRV.SalesOrderItems" sap:content-version="1" xmlns:sap="http://www.sap.com/Protocols/SAPData" />

 

 

<EntitySetName="SalesOrder" EntityType="ZGW_EPM_SALES_ORDER_SRV.SalesOrder" sap:content-version="1" xmlns:sap="http://www.sap.com/Protocols/SAPData" />

 

 

-<AssociationSet Name="OrderItems" Association="ZGW_EPM_SALES_ORDER_SRV.OrderItems" sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1" xmlns:sap="http://www.sap.com/Protocols/SAPData">

 

 

<EndEntitySet="SalesOrder" Role="FromRole_OrderItems" />

 

 

<EndEntitySet="SalesOrderItems" Role="ToRole_OrderItems" />

 

</AssociationSet>

</EntityContainer>

 

<atom:linkrel="self" href="<>:8000/sap/opu/odata/sap/ZGW_EPM_SALES_ORDER_SRV/$metadata" xmlns:atom="http://www.w3.org/2005/Atom" />

 

 

<atom:linkrel="latest-version" href="<>/sap/opu/odata/sap/ZGW_EPM_SALES_ORDER_SRV/$metadata" xmlns:atom="http://www.w3.org/2005/Atom" />

 

</Schema>

</edmx:DataServices>

</edmx:Edmx>

 

Regards,

Sid


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>