Quantcast
Channel: SCN : All Content - SAP NetWeaver Gateway Developer Center
Viewing all 750 articles
Browse latest View live

Multi-origin error with JSON

$
0
0

Dears,

  I'm facing the following error "Inline component is not defined or not allowed (HTTP PUT)" at the time of executing a Request-URI with multi-origin.

 

/sap/opu/odata/zget_materials_SRV;mo/MaterialSet


{

"SAP__Origin":"My_001",
"Material":"0065",
"Werks":"0025",

"NavArti": [],

"NavValu": []

}

 

  The HTTP method is a POST one and it is redefined in method CREATE_DEEP_ENTITY

 

 

  Do you know if there are any kind of restrictions while using JSON format and method POST within CREATE_DEEP_ENTITY?

 

Thanks in advanced!


CORS Support For Gateway

$
0
0

We have been searching for a method to support CORS for Gateway services.  We have tried open source and vendor provided reverse proxy solutions, but all have come up short in one way or the other.  We have been focusing on using the SAP Web Dispatcher to enable CORS and have been able to make it work.  I would be interested if anyone else has also tried this and may have a cleaner method to enabling CORS support in Web Dispatcher.

 

Here are the rules that we have implemented.

 

SetResponseHeader Access-Control-Allow-Origin "https://someserver.company.com"

SetResponseHeader Access-Control-Allow-Credentials true

SetResponseHeader Access-Control-Allow-Methods "GET,POST,PUT,DELETE,OPTIONS"

SetResponseHeader Access-Control-Allow-Headers "accept,x-requested-with,maxdataserviceversion,x-csrf-token,slug"

 

 

If %{REQUEST_METHOD} stricmp "OPTIONS"

BEGIN

  RegIRewriteUrl (.*) /somelocation-noauth/file.html

else

  RegIRewriteUrl ^/cors(.*) /sap/opu/odata$1 [noescape]

End

 

One of the many fun things with CORS is that the OPTIONS call can't be authenticated.  We enabled an external alias for a simple web page and then modified the logon stack to require no authentication for that alias.  You can see that above.  It would have been nice just to return a 204 with no content in the rules, but we haven't been able to figure that out.  Anyone have something that has worked for them?

 

We would really like to make a more generic origin header response. We would like to use the origin header from the request if it meets some conditions, like *.company.com, but we have been unable to figure out how to do that.  Anyone have any ideas?

Time out error is coming in debugging ODATA service

$
0
0

Hi Experts,

 

I have registered the back end system ODATA service in Gateway hub system and it is running fine now.

 

I want to debug the ODATA service call in back end system and hence the set the external breakpoint and it is stopping.

I am triggering the URL through the Gateway client in hub system.

 

issue is while debugging the code, Connection time out is coming as shown below and hence not able to complete the debugging.

 

please suggest me how to resolve this error.

 

GW_Error.png

 

Regards,

Jagesh

SAP Gateway Hub configuration for OData service

$
0
0

Hello Experts,

 

I am new to OData service development. In our scenario, we have separate Gateway hub and back-end system. We developed OData service in back-end system.

 

My question is what configuration is required to consume this OData service and how we can transport this configuration to Quality and Production or we need to do this configuration in quality and production separately.

 

I found some documents related to this but most of the related to embedded deployment landscape. Could someone explain step by step procedure to achieve this?

 

Thanks.

GetAvailableFlights? returns noting.

Support for wild card search in SAP Gateway based Odata services

$
0
0

I understand there are some constraints with SAP Odata implementation, especially around the $filter command. Is it possible to do wildcard searches with Odata services implemented on SAP Gateway? One of the use cases we have is to look up customer account by customer name, for example a query that looks something like URL below.

 

https://<server>:<port>/sap/opu/odata/sap/ZCUSTOMER_HELP_SHIP_TO_SRV/Customerhelp_shiptoSet?$filter=contains(Mcod1,'BRK')

 

When we execute this query on SAP Gateway we get an error that states "contains" is invalid command with an SAP note that lists SAP's Odata implementation limitations.

 

Any suggestions on how we can get around this limitation?

 

Thanks in advance for your response!

Customer Exits (CMOD)

$
0
0

Hi Exports,

 

I am trying to create Project in CMOD transaction .... But its giving the below Error

 

" You do not have autorisation for forXXXX"

 

Could you please help to provide the access...

 

 

Regards

Selvi

OData: Unauthorized access error

$
0
0

Hi All,

I am a new learner to ODATA. I followed some tutorials for creating Sales Order OData service. But I am getting an error message as "Unauthorized to access the service". For more info please find the screen shot attached.

 

Regards,

Karthik.S


Why register service disabled in my system?

$
0
0

Hi,

 

When i go to service maintenance I see the register option disabled. What can be the reason for this?

Register fail.JPG

Metadata not appearing for newly created entityset for fiori app - My Timesheet.

$
0
0

I have a standard Fiori App- My Timesheet, as an OData project. There is a requirement to add an extra field in the app. For this, I have copied the standard project into my Zproject and created a new entity type and set. But newly created entityset is not coming in metadata. Kindly help !!

 

Entityset.PNGList of Entitysets in Metadata.PNG

Viewing all 750 articles
Browse latest View live


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