Quantcast
Channel: SCN : Unanswered Discussions - SAP Gateway
Viewing all 1745 articles
Browse latest View live

Consume OData Service with Android without SMP

$
0
0

Dear all,

We are looking to build an Android application consuming an OData service exposed on the SAP Gateway. Can this be done without using SMP at all? If yes, could you point me to some resources that explain how to go about it?

 

Thank you,

Nithya


Protect Odata WebServices using Google/Facebook Oauth 2.0 SAPUI5/Fiori

$
0
0

Hi,

 

I'm trying to develop SAP fiori application for which i need to create odata services in Gateway. I want to restrist the user when he tries to click on any application in the fiori lauchpad.

 

Once he clicks on the applciation the user should be able to redirect to Google get authenticated & get token and fetch the data from gateway and return to the SAP fiori launchpad application.

 

Any Solution ??

 

First of all is this possible with Google/Facebook Oauth ??

What should be defined in the scopes of Oauth in this scenario ??

 

 

Regards

karthik

Authorization object for POST Service

$
0
0

Dear Experts

 

We have a scenario where we have two kind of service.

 

POST Service , which updates data in SAP- Create Operation in Gateway

Other Read Service which only reads data from SAP - GetEntity(Read) or GetEntity(Query)

 

We need to restrict set of users who will have only POST service Authorization.

 

We tried by using Z Authorization object which will be maintained for POST Service users with activity 10 POST and coding AUTHORITY-CHECK OBJECT in POST Service.

 

But it is not working. Users who is not having POST service authorization, still they are able to access and post(Create) data in SAP.

 

Any Ideas on what is going wrong or how we can achieve the requirement?

 

Regards

Jitesh

Not getting result for odata service for utilities

$
0
0

Hi

 

 

I am trying to retrieve the data from odata service for utilities for Accounts Entity type, but I am not able to retrieve the data, its showing blank result.

 

 

Early response will be highly appreciated.

 

 

Thanks

UI Service Call Getting time out / Connection Lost Error

$
0
0

Hi All,

 

 

We are calling service from front end and during processing request/fetching data it is giving return code - 500. As service has lot of data to fetch & process before passing relevant data.

 

Any suggestion to handle this scenario.

 

 

 

Thanks & Regards,

Rajesh

SEGW Service: Runtime Objects are not recorded in Transport Requests

$
0
0

Hi Experts,

 

I have a small problem when I make any changes & record my Gateway Service Module(SEGW) into a Transport Request. Whenever I change my service (in SEGW) and hit "SAVE" & "GENERATE", only the SERVICE is recorded in my TRANSPORT REQUEST, but not the RUNTIME OBJECTS(Classes/Methods).

 

1. I change a service module (in SEGW) - Chnaged the length of one of the properties of an Entity Type.

     Changed the length of the property "CUSTOMER" from 8 to 10.

 

GW_26.01.2015.jpg

 

2. Then, I hit SAVE & GENERATE. Then, I can see below objects in my TR.

 

     GW_26.01.2015.jpg

 

3. When I transport this, I can see only the SERVICE MODULE changes. But, not the RUNTIME OBJECTS(INTERFACES/CLASSES).

 

Any idea how can I include the GENERATED RUNTIME OBJECTS also, so that all of them are recorded in my TR... something like below...

 

GW_26.01.2015.jpg

 

Thanks in advance.

 

Seyed Ismail MAC

CSRF token not returned to API Manager

$
0
0

Hi Gurus,

Please help me in the issue ,I am facing in API Manager

 

currently I created a service and was successfully able to get xcsrf token when i run the GET method in REST(chrome)

however,I am unable to get the x-csrf token back in the IBM API manager.

api.png

 

 

Any suggestions,on where I went wrong

 

Thanks in advance

Lakshmi

debug OData service

$
0
0

Hi,

I have tried external break point in MPC/DPC class, but somehow not been able to make it work, when I send request from web browser (Get entity Set). Any idea, what am I missing here?

 

thanks,

Pradeep


Hub Gateway & Custom Gateway Service Question

$
0
0

Hello,

 

The setup I am working with is a Hub Gateway and ERP backend.  I created a RFC enabled Function module on ERP and used it to map to my Gateway Service method QUERY (built in SEGW) on the Hub.

 

The issue is that when I run the GET method I get this error:

 

RFC call ended with "Communication Failure" exception (Function call failed; could not find the function Z<function name>


When I debug the classes that are generated out of SEGW I can see that a variable,  lv_destination, in the  GET_ENTITYSET is not being set (if I set it manually when I am debugging the data returns properly).


My question is two fold.


1. Is the setup I am using adhering to Best Practices

2. Am I missing some config that is causing the Communication Failure" above?


Thanks, Mike


PS - I have created many services on Integrated Gateway setup, but obviously did not have to contend with the RFC call.

How to create a Mobile Application using SAP UI5

$
0
0

I want to create an mobile app using SAP UI5 and with JSON model..Looking for replies

 

Regards,

Anusha

ODATA Service Authentication Error 401

$
0
0

Dear All

Can you help me on following

 

I created a ODATA service and activated .

I am trying to browse it through Browser, it works

 

When I call the service from a Javascript from third party application, it gives authentication error.  401

 

Can someone help me, what changes should i made in SAP side to get this service accessed.

 

Please help me

 

Regards,

Venkat

ODATA Service at Production System

$
0
0

Dear All

 

May be a simple question, but not able to get it.

Can someone please explain the steps.

 

1. I created a ODATA service in the Development Client 103. (development client no data)

 

     How to use that url - to access data from client 102, (which is a testing client where data is there).

 

2. Once tested, how to transport the Service to Production system.

    or do i need to recreate it in production system

 

 

   

Regards,

Venkat

Odata Service in NWGW or ECC Backend

$
0
0

Hi All,

 

I am getting a little confused about whether the Odata service needs to be created in NWGW or ECC backend.

From what I have read in the documents it needs to be created at NWGW ie Front End. I followed step by step procedure to create Odata service and figured out that the Service Implementation Modal and data classes were also created in the FE. While when I take a look at the Fiori Odata services offered by SAP, the Modal and Data classes are in the Backend ECC.

Is it there something I am missing or something I am getting confused about? Pls share your expertise.

 

Thanks,

Parth Jhalani

Fiori oData Queries timeout errors

$
0
0

Dear All

We have extended the Fiori oData services to fit in our scenarios. Some of these services keep failing out giving Timeout errors.

 

The HTTP Connection Timeout in Gateway Server is kept high, so that it does not cause any timeout.

 

So the suspect is the queries are timing out in ECC itself. How do we check this, are there TCodes to confirm this?

 

I am assuming somewhere RFC timeout might be happening, before ECC returns the data back to Gateway. Or SQL timeouts in ECC

 

What are the options we have to investigate this issue and resolve (Assume the oData query is already optimized in ECC)

 

Appreciate if someone can help.

 

Thanks

Sandip

Consumeing SAP ODATA service from .Net

$
0
0

Dear All

I have created a odata service and registered it in Gateway.

 

http://myname:8000/sap/opu/odata/sap/ZGL2_SRV/GLListSet

 

I am able to get the output in browser.

 

But when I call this service from the .net application, I am getting 401 Authentication error.

Can someone help me ?

 

1. Any specific thing that I should supply in the request header..?

Or

2. Any server side authentication to be provided?

 

 

my .netcode is like this.

 

$.ajax({

 

 

                url: q,

                type: "GET",

                dataType: "xml",

                beforeSend: function (req) {

                    req.setRequestHeader("Authorization", "Basic dmVua2F0OjEwMDNNYXJjaCQ=");

                },

 

 

Regards,

Venkat


How multilpe developers can work parallely on Gateway project

$
0
0

Hi All,

 

Want to know is ther any way that multiple developers can work on same Gateway project, like I have a SEGW Project which having 3 entities.

 

Customer

Products

Salesorders

 

and if one developer working on Customer entity other 2 entities can't be accessable dude to locked by develoepr one, which is casuing really trobule of messing thiings between .

 

Thanks in advance

Rajesh

Gateway Query with too many filters

$
0
0

Hi Experts, Im trying to develop a query service to get material price from ECC, this requirements is for all items therefore I need to recieve in ECC header information, item information and price conditions for each item, as you can see there are a lot of properties fields that con not be received in 'get_entity_set' method  with filter option, does any body know any option to do that? I'm working in a Sap NetWeaver 7.4, using the SEGW transaction. Any sugestion would be appreciated.

How a different entities and linked to another GW project

$
0
0

Hi All,

 

I am confused how can call differnt entities can be called in another GW project...using Redfine or Include we can get enties of one project to another...but in that case we could able to see physically the entities we addedd.

 

But when I been through the below CRM GW project...I couldn't get this

 

GW CRM_TASK tree.JPG

from above image we can see only Tasks Entity has been declared and non we can't see except some FunctionImports.

But when I ran this from GW clinet I can get lot other Entites which we can't see from SEGW(where I am missing I dont know)

GW clinet for CRM_TASk.JPG

and the same I can assure from Fiori fron-end app, please see the below

Fiori app CRM Tasks.JPG

really helpfull to me if some one can explain how this can be done...which can answer how I can separte my projects and use them for one service.

 

Thanks in advance

Rajesh

Not able to update or create the data through oData Services

$
0
0

Hi

 

I am trying to update or create a entry in bank account under FPP2/3 Transaction through odata services, but I am not able to execute the odata services with both POST/PUT method, facing error like bad request or method not allowed.

 

I checked in metadata that for all entity showing creatable="false" sap:updatable="false" sap:deletable="false".

 

Early response will be highly appreciated.

 

Thanks!

URL format

$
0
0

Hi All,

When exposing a BAPI as an Odata Service it gives URL of format  /sap/opu/odata/sap/Project/BAPISet('0126514612'). Is there a way to reformat this url as /sap/opu/odata/sap/Z_ORDER_STATUS_SRV_01/AwardInfoSet/0126514612 so that the calling application can handle it as any other restful url.

 

serviceroot/resource .

 

Thanks,

Rahul.

Viewing all 1745 articles
Browse latest View live


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