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

SAP ODATA Service (for creating a record)

$
0
0

Dear All

 

We have developed a ODATA service to query data as entity set or Query data based on a key value.

It is working fine.

However, We like to have a following

 

1. We have a Z-table  ( Say contacts ).  This contains 10 to 11 fields

 

We need to create a odata service that inserts records into this z table. ( I developed one Z function to insert a record )

 

after creating the create method,

How i can get the 11 values from the request. 

 

Can someone give me a hint.

 

Regards,

Venkat


ODATA - Access Control Allow Orgin

$
0
0

Dear All

 

I have created a ODATA service and activated. 

 

Can you help me to set the

Access-Control-Allow-Orgin Parameter : "*"  in the request Header method of the service.

 

In which method, i should implement and how to.  Kindly help me

 

 

The reason is The service is blocked it from any http://localhost.... 

 

Regards,

Venkat

ODATA - Where to set the Header

$
0
0

Dear All

I have created a Odata service. It is working in browser.

 

However, It is not accessed from the Jquery Ajax

 

It is adviced that to include a

 

ls_header-name = 'Access-Control-Allow-Origin'.

ls_header-value = '<server>:<port>'.

/iwbep/if_mgw_conv_srv_runtime~set_header( ls_header ).

 

.

But, I am confused in which method I should add it.

 

Can Someone help me

 

My Class name

ZCL_ZGL2_DPC_EXT

My mehtod for entityt set GLLISTSET_GET_ENTITYSET

 

do i need to add it inthis method?

 

Regards,

Venkat

Since your browser does not support JavaScript, you must press the Continue button

$
0
0

Hello,

We have created a dummy Odata service in our PRM system and all is fine when executing the service URL in browser:

 

https://[myServer]/sap/opu/odata/sap/MY_SERVICE/SuccessMessageWithSyUnameCollection

 

Now we would need to do a POST on this one using some REST service tester pluggin.

Selecting Chrome or Firefox we alway get a response like this which always includes that note and button.

 

<html><head><meta http-equiv="cache-control" content="no-cache" /><meta http-equiv="pragma" content="no-cache" /></head><body onload="javascript:document.forms[0].submit()"><noscript><p><strong>Note:</strong> Since your browser does notsupport JavaScript, you must press the Continuebutton once to</p></noscript><form method="POST" action="https://[here 's my Identity provider].sap.com"><input type="hidden" name="SAMLRequest" value="PHNhbWxwOkF1dGhuUmVx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bacoreeuoaafsovzdtcbrrevux"><noscript><input type="submit" value="Continue"></noscript></form></body></html>

 

How could we have the redirection to the Identity provider automated (if that is possible) ?

 

Please advise

Update Operation for Sales Order header and Item Details

$
0
0

Hi Team,

 

I have created a gateway service for Sales Order (CRUD) Operation. I want to change Sales order header and Item but i was not able to receive the data passed as XML from Rest Client/GW Client. Please suggest how to do the SO change as i can see tutorials for simple update.(Need to know the method which we have to redefine as like Create deep entity)

 

Regards,

Satish

Does the SAP Gateway Service Builder support Lambda Operators?

$
0
0

OData defines two operators "any" and "all" that evaluate a Boolean expression on a collection. They can work on either collection properties or collection of entities.  Does SAP support these operators?  I can't find any documentation / examples / discussions that mention Lambda Operators.

Gateway(SP08) Content ID Referencing Support

$
0
0

I have been attempting to discover if SAP supports content ID referencing in Gateway oData calls.  The answer appears to be no.

 

Firstly sorry Thomas Jung for stuffing up your chi in the XSODATA threads, http://scn.sap.com/thread/3604817should have posted here instead

 

If you're working with say, a .net application using Microsoft library System.data.services.client (v3.5.00) that forms up your oData batch calls, you can't create a deep entity structure the same way we do with JSON for example.

 

Instead the Microsoft library has to rely on "setLink" or "addLink" which refers to the content ID referencing method for processing $batch calls.

 

Our older documentation states it's not supported but there were rumours this functionality may have been planned for support, but clearly ( as the below code suggests ) we're not there yet with Gateway SP08 (740)?

 

 

Class:          /IWFND/CL_SODATA_PROCESSOR

Method:      check_content_reference.

  DATA:  lv_char                TYPE char1,        lv_path_translated     TYPE string,        lx_mgw_busi_exception  TYPE REF TO /iwfnd/cx_mgw_busi_exception.
* PATH_TRANSLATED contains '$' as first character  lv_path_translated = io_request->get_header_field( if_http_header_fields_sap=>path_translated ).  lv_char = lv_path_translated.  IF lv_char <> '$'. EXIT. ENDIF.
* Create and raise a Business Exception  TRY.      CREATE OBJECT lx_mgw_busi_exception        EXPORTING          textid                 = /iwfnd/cx_mgw_tech_exception=>rfc_system_error          remote_error_unlimited = 'Referencing requests in a changeset not supported'. "#EC NOTEXT      RAISE EXCEPTION lx_mgw_busi_exception.    CATCH /iwfnd/cx_mgw_busi_exception INTO lx_mgw_busi_exception.      raise_business_error( lx_mgw_busi_exception ).  ENDTRY.

For anyone reading this, what I'm referring to by Content-ID referencing, an example batch call is below ( I've hacked this down so it's clearer but should illustrate the process ):

 

POST /service.svc/Customers HTTP/1.1
Host: host 
Content-Type: application/atom+xml;type=entry
Content-Length: ###
Content-ID: 1

 


POST /service.svc/Address HTTP/1.1
Host: host 
Content-Type: application/atom+xml;type=entry
Content-Length: ###
Content-ID: 2

 

 

Content-Type: application/http
Content-Transfer-Encoding: binary

POST $1/$links/SOME_NAV_ID_HERE HTTP/1.1
Content-Type: application/json

 

 

You're basically wanting the Gateway framework to understand that Customers is linked to Addresses ( Content ID 1 and Content ID ) and we should create a deep insert if this is sent in a payload.

 

POST $1/$links/SOME_NAV_ID_HERE HTTP/1.1

This line is the most interesting, as when the standard SAP method check_content_reference is called, it will ALWAYS raise an exception as the line starts with "$".   This is the link between the two objects in the payload and the exception tells me content ID referencing is not supported.

 

 

Do we have some definitive statements on when/if/why this will be supported?

 

 

Cheers

 

Leigh

OData Session Management and Metadata Hostnames

$
0
0


Hi Experts,

 

Two quick questions:

 

1/ In my oData read / GET response, the id and uri properties contain fully qualified URLs that represent the resource accessed, such as:

 

"__metadata": {

"id": "https:\\myinternalhost.com\sap\opu\odata\sap\SOME_SRV\SomeSet(A='1')",

"uri": "https:\\myinternalhost.com\sap\opu\odata\sap\SOME_SRV\SomeSet(A='1')",

...

 

myinternalhost.com is resolvable only within the internal network, not on the internet where this service is being consumed from.

 

How can persuade Gateway to either use a relative id and uri (such as "id" : "\sap\opu\odata\sap\SOME_SRV\SomeSet(A='1')" ) or, alternatively, use a different hostname in those urls - one that matches the hostname the clients connect to?

 

2/ If I have an internal batch application authenticating with Gateway via basic authentication header but NOT honoring the set-cookie directives on subsequent calls, are there any performance ramficiations? That is, in terms of speed and capacity, is it okay to have applications continually call into Gateway with a user:password but ignoring the cookies that Gateway returns? Does Gateway access an external credential store to check the password on each call, or is the credential cached in memory?

 

Thanks a lot. I've searched around for previous questions along these lines.


Gateway hub deployment - 2 or 3 instances ?

$
0
0

Hello,

 

I am wondering about pros and cons of having only 2 instances of GW (one for PRD, and one for DEV + TEST)

 

It will be necesary to stop developing or make other bypass during tests..

 

What are your opinions?

 

 

Lucas

Handling File Upload/Download using NW Gateway and SAP R/3 with attached DMS

$
0
0

Hey everyone,

 

first time posting here. I'm new to the SAP world (aside from my study years which were 10 years ago) and only have little experience in ABAP and SAP in general.

 

I currently have a requirement to have an oData Service which is capable of uploading / downloading files from SAP.

 

To be more precise: Documents (Word, Excel, PowerPoint, PDF, etc) shall be attached to internal orders as business documents and sent to the archive System, which is IXOS. I have already done some research and found out that my oData Service has to call 'ARCHIV_CONNECTION_INSERT' RFC at some point to link the document in the archive to the business document (internal order). But I have no idea how i can put the document there in the first place.

 

I have already created a Service with CRUD operations on internal orders (using COAS table, the RFCs i found didn't allow for update) which is working find. I need some guidance how i can extend this Service (or create a new one) to upload/download documents and send them to IXOS. The service shall later be consumed by an ASP.NET application.

 

Any hint into the right direction will be greatly appreciated!

 

Cheers.

NetWeaver Gateway - GW Client issue: "check the icf nodes in tx sicf"

$
0
0

At the time I'm facing a trouble with SAP NetWeaver Gateway and when I want to test the OData service from the tx GW_CLIENT it tells me: "check the icf nodes in tx sicf: at least one node is inactive". The system alias it's already configurated just as the rfc destionation. I attach an image of what happen to me.

a.png

Then I clicked "Cliente Gateway" and click on "Execute" and got this:

 

 

b.png

This happen with all the OData services.

 

Hope someone can help me. Best regards.

--

Ana María Velásquez

Error while trying to execute gateway service

$
0
0

Dear Expert's,

 

When i try to test a newly created gateway service, i get an 'unknown internal server error'.

 

On debugging, i see that expection /IWCOR/CX_DS_CP_ENTITY_ERROR have occurred within CREATE_FEED_PROVIDER method.

 

The gateway service that i created is an simple one, where a function module is called within the GET_ENTITYSET method and i see that, the data is getting passed to the exporting parameter ET_ENTITYSET successfully. But the data is not getting displayed in the browser because of the exception that have occurred.

 

Can someone help me to solve this issue ?

 

Thanks and Regards,

Gaurav.

 

How can I get the Username and Password from the oData service login, as input parameter into ( SEGW transaction ) oData service GET method ?

$
0
0

How can I get the Username and Password from the oData service login, as input parameter into ( SEGW transaction )oData service GET method ?

2015-02-06 22_05_41-Program Manager.png

So that inside the oData service GET method i can write function to Output entries from a table for that specific Username.

SEGW Package updation failing

$
0
0

Dear Experts,

I am trying to update the package of my model in SEGW from a package A to B. But after assigning when I regenrate the model it shows me that is again assinged back to the original package A. I moved all the classes and the interfaces to the package B as well. So can you kindly guide me that which step I am missing.

 

Regards

Raj

Visual studio add-on installation error

$
0
0

Hi,

I am getting an error that, Installer could not locate the Visual studio Project Template folder.
, when I try to install the Productivity accelerator for Visual studio.

 

I am on Visual studio 2013 (.Net Framework 4.5). I could try un-installing Visual studio and installing again as a last resort.

 

Any help appreciated.

 

Thanks,

Pradeep


Not getting Mulltiple records from ODATA Service

$
0
0

Hi ,



I am not getting the  Multiple records  for a Gateway ODATA service.


For example:

http://123.XXXX/sap/opu/odata/sap/ZXXX_ORDARRY_SRV/ORDDETSet(Userid='XYZ',Type='11')?$format=json


The requirement : I need to get multiple orders data from  based on the User id 'XYZ'.


If I give the  URL as  '['http://123.XXXX/sap/opu/odata/sap/ZXXX_ORDARRY_SRV/ORDDETSet",
| http://123.XXXX/sap/opu/odata/sap/ZXXX_ORDARRY_SRV/ORDDETSet]

I will get the multiple orders.


 Entity set Mapping  is  referred to a Function module where the User ID is passed to Custom table and we are able to get the  Multiple values in the Tables Parameter.


But still the ODATA service returns the Single record.


Thanks,
Shreedhar

instaling (basis) effort for gateway 7.40

$
0
0

Hello,

 

 

what is the effort in MD to install one instance of gateway 7.40 ?

Also i guess to have estimation for 3 instances i have to multiply * 3

 

BR

Lucas

How to access standard workflow in to ODATA Service

$
0
0

Hello Expert,

 

1) Is it Possible to access standard "Workflow" of purchase requisition in to ODATA web service to use this service in to mobile application.

 

2) Is it able to convert standard workflow of purchase requisition in to ODATA web service.

Thank's in advance....


Outlook add-in error

$
0
0

Hi,

I am getting below error, when was trying to import the Tasks into Outlook (GWM Visual studio add-in) using through back-end Service.

Any idea what am I missing here?

 

 

Outlook error.png

 

 

thanks,

Pradeep

SAP Netwaever gateway SUSR_LOGIN_CHECK_RFC Opeartion

$
0
0

Hi

 

I would like to create web service for SUSR_LOGIN_CHECK_RFC.

Can someone please suggest me which CRUD operation will use for the same.

 

 

Thanks

Surekha

Viewing all 1745 articles
Browse latest View live


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