Hi Experts,
I have a requirement that in a page there are 10 dropdowns. I want to make only 1 service call and bind the respective dropdown.
But I am not getting how do I make 1 entity for 10 different data.
Please help!!
Thanks,
Mansi
Hi Experts,
I have a requirement that in a page there are 10 dropdowns. I want to make only 1 service call and bind the respective dropdown.
But I am not getting how do I make 1 entity for 10 different data.
Please help!!
Thanks,
Mansi
Hi experts,
In most of the eTAG scenarios, field like UPDATED_AT is used as the check field. IF-MATCH ill compares whether the value of this field is changed or not to see whether someone else changed this data. But in some cases, there is no such fields in the DB table that can indicates changes happen, does this mean eTAG cannot be used in this case?
Hi,
Can anyone guide me on creation of fiori like app from AMDP.
Just we have to create list view in UI5.
-Amit
Hi there
I have the following $expand query with filter option:
/sap/opu/odata/sap/ZMYSERVICE_SRV/entitySet('ABC')?$format=json&$expand=parent/child1/childOfChild&$filter=parent/child1/childOfChild/propertyOfchildOfChild eq 4
I tried to use the filter with parent/propertyOfParent, which was working. Is it possible to use $filter with nested ($expand) structures like my example?
thanks for your reply
Sandro
Hi,
I am facing issue with mapping fields to my RFC(BAPI) in service implementation - FOR Get_entity-READ
Lets suppose we have 3 Fields as input for BAPI. 2 of which are mandatory and remaining 1 is optional.
Now, Data model->entity type, allows only Primary keys to be part of input paramters to the BAPI under mapping.
Can anyone share how can we pass this optional parameter (in case of Read-Get_entity) to bapi without setting it as Key under entity type.
Thanks in advance,
PavanG
I have an entity type with quite some fields. When we want to update the data for this entity type we only sent over the changed fields for performance reasons. In the implementation we only update the fields that have a value. We run into the problem that if we want to update a property back to the initial value, the implementation does not see this as an update.
Can I find out which fields are passed as a payload in the update?
If this is not possible, how should I solve this issue?
Do we always have to sent all fields for the update?
Thanks, Paul Lauwers
Applicaiton Engineer
IFF
I would like to know how I can get the HTTP_METHOD in the GET_ENTITY method. When the HTTP_METHOD is a patch I can skip a lot of ABAP code in the implementation. This would benefit performance. When I debug, I can see the IO_TECH_REQUEST_CONTEXT having a attribute MR_REQUEST. This contains the HTTP_METHOD.
I have not been able to retrieve this data.
Can anyone help me?
Hello Experts,
For a customer project, we have to implement a Sales Order Creation in OData. I created a Gateway project based on the BAPI_SALESORDER_CREATE2. I created the 3 entities I need (Header, Item and Partner).
I tested the BAPI with my data and everything is fine.
Now I tried to test it through the GW_CLIENT.
I got already a lot of errors that I was able to correct with SCN messages (thanks a lot !) but now I have a 'Error while parsing an XML stream: 'BOM / charset detection failed'.
I understood something is wrong with my XML file but the "Check XML" is ok and I have no idea what can be wrong in my simple XML test file !
Any help is appreciated.
Here is the file:
<?xml version="1.0" encoding="UTF-8"?>
<entry xml:base="http://xx/sap/opu/odata/sap/Z_SALESORDER_CREATE2_SRV/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrderSalesHeader" type="application/atom+xml;type=feed" title="Z_SALESORDER_CREATE2_SRV.OrderSalesHeader">
<m:inline>
<feed>
<entry>
<content type="application/xml">
<m:properties>
<d:DocType>TA</d:DocType>
<d:SalesOrg>1100</d:SalesOrg>
<d:DistrChan>01</d:DistrChan>
<d:Division>01</d:Division>
</m:properties>
</content>
</entry>
</feed>
</m:inline>
</link>
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/HeaderItem" type="application/atom+xml;type=feed" title="Z_SALESORDER_CREATE2_SRV.HeaderToItem">
<m:inline>
<feed>
<entry>
<content type="application/xml">
<m:properties>
<d:Material>AIGL0232</d:Material>
<d:TargetQu>100</d:TargetQu>
</m:properties>
</content>
</entry>
</feed>
</m:inline>
</link>
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/HeaderPartner" type="application/atom+xml;type=feed" title="Z_SALESORDER_CREATE2_SRV.HeaderToPartner">
<m:inline>
<feed>
<entry>
<content type="application/xml">
<m:properties>
<d:PartnRole>SP</d:PartnRole>
<d:PartnNumb>YOU001</d:PartnNumb>
</m:properties>
</content>
</entry>
</feed>
</m:inline>
</link>
</entry>
Thanks,
Luc
Hi Experts,
Need your urgent help to resolve below issue.
I am getting error No service found for namespace /SAP/ when i execute URL to test odata services.
Odata services is created in gateway client in T code SEGW.We are calling RFC from remote system ECC I am getting proper output in
development gateway.
Services are active in SICF, system alias is maintained for services ,RFC are there in Backend pre prod system.
i am getting proper response with all property names but on passing with entity set name i am getting no service error.
Below is URL I am using
same URL is working on Development gateway but not in Pre Prod gateway.
/sap/opu/odata/sap/ZAPI_OTC_ADD_AGENT_SRV/AddagentSet?$filter= ZBillNo eq '953323999' and ZCustomerNo eq 'HK00027878'
I am getting below error.
<?xml version="1.0" encoding="utf-8" ?>
- <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>/IWFND/MED/039</code>
<message xml:lang="en">No service found for namespace /SAP/, name ZAPI_OTC_ADD_AGENT_SRV, version 0001.</message>
- <innererror>
<transactionid>561C1FC9D8CC4751E10000000AFF1F8C</transactionid>
<errordetails />
</innererror>
</error>
Kindly suggest solution for this issue.
Regards,
Aditya
Hi Experts,
How do I fetch & view the files attached to parked invoices in MIR4/MIR7 using OData service? Files are in PDF/DOC/text format? Approver wishes to view the attachments in front-end Fiori app before approving the document?
Thanks, Saty
Hi,
I have to call or consume SOAP web service(EJB is exposed as web service in NW7.0) in OData service. This OData service provides JSON output which is used in Mobile application.
Can anybody suggest me with any kind of documents how to consume or call SOAP service in Odata service.
Any help please...
Thanks,
Srujana.
There is a standard OData Service in CRM 703 i.e CRM_BUPA which I am not able to add in Transaction SEGW and edit it's entities for various Get,Create,Update,Delete operation whereas the same service in SAP Dev Center provided by SAP works supporting all the operations.
There is a standard BW Odata Service which should be reading data from an Infocube ,
sap/opu/odata/sap/ZCOSTCENTER2_1_SRV/?$format=xml
When I try to access the Get Function and the Metadata the service works fine but when i try to access the Business Data of the entities nothing is visible , please help me with the same :
Get Function :
<?xml version="1.0" encoding="utf-8" ?>
-<app:service xml:lang="en" xml:base="http://BIW-DEV.pbi.global.pvt:8000/sap/opu/odata/sap/ZCOSTCENTER2_1_SRV/" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData">
-<app:workspace>
<atom:title type="text">Data</atom:title>
-<app:collection sap:label="Classical Infoset/Ttransient provider for BI queries(EPM Dem" sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1" href="E%4010D_NW_EPM_TRANSIENTResults">
<atom:title type="text">Classical Infoset/Ttransient provider for BI queries(EPM Dem</atom:title>
<sap:member-title>Classical Infoset/Ttransient provider for BI queries(EPM Dem</sap:member-title>
</app:collection>
</app:workspace>
<atom:linkrel="self" href="http://BIW-DEV.pbi.global.pvt:8000/sap/opu/odata/sap/ZCOSTCENTER2_1_SRV/" />
<atom:linkrel="latest-version" href="http://BIW-DEV.pbi.global.pvt:8000/sap/opu/odata/sap/ZCOSTCENTER2_1_SRV/" />
Metadata :
<?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="ZCOSTCENTER2_1_SRV" xml:lang="en" sap:schema-version="0000" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
-<EntityType Name="E@10D_NW_EPM_TRANSIENTResult" sap:label="Classical Infoset/Ttransient provider for BI queries(EPM Dem" sap:semantics="aggregate" sap:content-version="1">
-<Key>
<PropertyRefName="ID" />
</Key>
<PropertyName="ID" Type="Edm.String" Nullable="false" />
<PropertyName="TotaledProperties" Type="Edm.String" sap:aggregation-role="totaled-properties-list" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0011" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Total Gross Amount" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0012" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Total Gross Amount" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0014" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Total Net Amount" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0015" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Total Net Amount" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0027" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Quantity" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0029" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Total Tax Amount" />
<PropertyName="A@10D_NW_EPM_TRANSIENT@@@@@0030" Type="Edm.Double" sap:aggregation-role="measure" sap:label="EPM: Total Tax Amount" />
</EntityType>
-<EntityContainer Name="ZCOSTCENTER2_1_SRV_Entities" m:IsDefaultEntityContainer="true">
<EntitySetName="E@10D_NW_EPM_TRANSIENTResults" EntityType="ZCOSTCENTER2_1_SRV.E@10D_NW_EPM_TRANSIENTResult" sap:label="Classical Infoset/Ttransient provider for BI queries(EPM Dem" sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1" />
</EntityContainer>
<atom:linkrel="self" href="http://BIW-DEV.pbi.global.pvt:8000/sap/opu/odata/sap/ZCOSTCENTER2_1_SRV/$metadata" xmlns:atom="http://www.w3.org/2005/Atom" />
<atom:linkrel="latest-version" href="http://BIW-DEV.pbi.global.pvt:8000/sap/opu/odata/sap/ZCOSTCENTER2_1_SRV/$metadata" xmlns:atom="http://www.w3.org/2005/Atom" />
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Hi Experts,
I have consumed the gateway service into HANA Cloud Platform using HCI ODdata Provisioning and Cloud Connector by referring to the link http://scn.sap.com/community/gateway/blog/2013/09/09/how-to-connect-the-sap-business-suite-to-the-sap-hana-cloud-using-gateway-as-a-service-trial-edition. Now I want to consume a gateway service with input parameters into HANA Cloud Platform.Does any one have an idea. Please suggest on this.
Regards
Pallavi
Hi,
can any body help me to resolve this mapping problem for getEntitySet(Query).
Hi,
I have registered an FM with SEGW and implemented methods in it.
My service is created now. Can I call this service from within an ABAP code?
I want to do this so as to use the Gateway functions and security. All I know to execute this is via SEGW. Need some standard FM or classes via which I can call this _SRV service of the gateway and get the response back in my code.
Thanks,
Ags
Howdy fellow SAPers, I've come yet again with a new question for you guys.
Currently I've got a question regarding the usage of expanded_entityset.
I'm aware that the usage of $expand and Delta is not supported according to this document: How to Implement Basic Delta Query Support in SAP NetWeaver Gateway
I'm not sure how does Kaspel works, but basically we're trying to understand if we have the option to insert our logic into the tool or we're stuck with the standar. We've have a few doubts on how does Kaspel and PouchDB work for Deltas since we're trying to find a work around to perform the delta tracking for our offline store.
Our first question is that if there's a restriction that Kaspel will recognize only the GET_DELTA_ENTITYSET method when the URI contains a deltatoken.or if it's possible to define the way the URI should be structured/used in case a deltatoken is sent.
The reason is, we use expanded EntitySet for our requirement since we need to fetch all the information from all the associated clients to a sales person in one go, if we pass a delta token in the request, we noticed that expand has a "higher" priority then the Delta Token, so it calls the GET_EXPANDED_ENTITYSET instead of DELTA_ENTITYSET. At this point, we have managed to generate a delta entityset for our colections, the issue comes when we have deleted entities, as far as we have noticed, Delta has a way to manage deleted sets fetching only the ID of such entries and expand lacks a way to do so since we can only have one exporting table. We don't know if the offline store will recognize our method EXPANDED as an information provider for Deltas or if its possible to set it up to use it. Or if by default Kaspel would only recognize or call Delta Entityset, therefore we would like to validate if it's possible to assign Kaspel to use a defined URI if a deltatoken is provided.
If none of these options is availeable I'd like to verify if there's any real solution in order to use Delta and complex entities for the query.
I'm well aware these questions are a bit more SMP oriented but we want to validate at least to a code level if we can use a work around to fullfil our requirement. If any of you guys would kindly give us a few light on this issue, it would be amazing.
Thank you all in advance.
Best regards.
I have some strange behaviour with the deep insert. I have implemented it 2 times.
- a parent with one child (e.g. SalesOrderHeader with SalesOrderItems).
- a parent with two children (e.g. SalesOrderHeader with SalesOrderItems and Partners)
The used user defined entities, but the above examples are just to make it clear.
When I POST the first one, I get both the SalesOrderHeader with the SalesOrderItems returned.
When I POST the second one, I get only the SalesOrderHeader returned. I am sure that I pass the data to the output parameter "ER_DEEP_ENTITY"
If I pass for the second one only the SalesOrderItems, I get all data returned.
I need the output, because it contains the keyfields of the data created.
Am I doing something wrong? Is this a problem of SAP?
Regards, Paul Lauwers.
Application Engineer at IFF.
Hi Experts,
We can import vocabulary file to enable annotations in ODATA. And the technical object 'Annotation' itself is nothing but some tags (name and value pairs) to be added to the metadata file, if I am right. So the vocabulary file is somehing like template to generate some codes in MPC for these tags? and actually the tags like sap:label is also some kind of annotation. And SAP Gateway like the document is to add some SAP prefix tags to the odata file?
Some of my questions:
1 where in the MPC is for the annotation generation? In debug stack, i can only find get_model(). But it looks there is nothing about annotation generation in it.
2 For all the EntitySet settings in SEGW, all the configuration/setting will be transferred into a metadata xml when client access the service? So it is at runtime, all these entityset/properties will be transformed?
3 And is there any document about how to use the standard annotation vocabulary like /IWBEP/VOC_COMMON? For exmaple, if I imported it, I can go to annotation of each property and create a new instance in ValueSet. And set another EntitySet as a search help. But for other thing, i am not sure how to use it. if I want to map a Dropdown in UI5 and I need to set some annotation like sap:text. I have no idea how to set it with annotation file.