Quantcast
Channel: SCN : Popular Discussions - SAP Gateway
Viewing all 1195 articles
Browse latest View live

Netweaver Gateway tutorials and guides

$
0
0

Hi guys,

I am new to Netweaver gateway and would like to know more about how to use it. I have connected to SAP Netweaver Gateway provided by SAP. But I have no clue on what to do next. can someone provide some LINKS to articles/tutorials explaining the same.

 

many thanks,


How to delete registered model and service?

$
0
0

After deleting a gateway service in SEGW, the generated objects are still present in the system.

 

Deleting the classes is no problem; you just go to SE24.

 

But how do you delete the generated objects of type R3TR IWMO and R3TR IWSV?

 

09_44_36-SAP NetWeaver Gateway Service Builder.png

Unable to setup SAP NetWeaver Gateway in Eclipse

$
0
0

Hi ,

I have developed some android application using eclipse juno 4.2 but, these application do not consume data from sap system.

Now i wanted to connect to sap system and get data to use in my application.

 

After searching i came across this awesome post by Gal Roter but, somehow i am not able to get the thing done.

 

List of things i have installed,

 

1) Installed Eclipse Juno .

2) SDK manager

3) Android version4.1.2( Jelly Bean )

4) Then i downloaded SAP NetWeaver Gateway plugin for eclipse.

 

Here is the problem i am facing,

 

I try to create new project using SAP NetWeaver Gateway under that i selected Starter application project

 

I enter all the details like: project name, project for android ,application name ,pacakage etc..

but, i am not able to select the Build Target dropdown because that dropdown is empty.

 

What to do..? How to go ahead..???

 

I have attached the snapshot of the error i am getting.

 

 

Thanks in advance,

Vishesh

ODate Create Entity or Create Stream

$
0
0

Hi,

 

I have a entity which contains a media link. So i have implemented the methods create entity and create stream. Since

I have to use POST against the collection URL for both cases I am wondering how I can decide what happens? In my case always

create stream is called. I found out that there is a flag in IS_REQUEST_DETAILS called "type" which always contains "stream" in my case.

If it would contain something else the create entity method would have been called.

 

So my question is how can I change this flag in my request?

 

I also do not understand why I have to use the same URL for both cases. For an update(PUT) of the media I have to use the URL that ends with "$value" with a specific entity of the collection.

 

 

Thanks in advance

Gateway Workflow Purchase Order

$
0
0

Hi,

I'm trying to expose Purchase Order workflow (WS20000075) from Material Management by gateway, it should be possible to accept or reject given purchase order.

 

I'm not sure how should I approach that problem i've tried few solutions but they were obsolete: ie.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01f6a02-5464-2e10-bd8b-efa13d7f20b6?QuickLink=index&overridelayout=true&50968377298223

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01f6a02-5464-2e10-bd8b-efa13d7f20b6?QuickLink=index&overridelayout=true&50968377298223

I've tried to follow this tutorial:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9050238c-6ae0-2e10-7eb8-d261a236092c?QuickLink=index&overridelayout=true&52596169518430

 

but I have my backend and gateway on the same machine instance. So I've configured as described in section 4.1, skipped 4.2 and in section 4.3 i skipped steps 1-5 and in step  7 as SAP System Alias i written LOCAL.

 

I also found this topic: http://scn.sap.com/thread/3377297, but I'm not sure if Purchase Order Workflow is using dialog screens.

 

Best Regards

Ireneusz

FIORI My Leave error

$
0
0

Hi there, I am getting following error when accessing FIORI My Leave App. Appreciate any help.

 

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

<code>SY/530</code>
<message
xml:lang
="en">Method
'TIMEENTRIES_GET_ENTITYSET' not implemented in data provider class.
</message>
-<innererror>
<transactionid>C62709E3096CF18F98B800505693690C</transactionid>
-<errordetails>
-<errordetail>
<code>/IWBEP/CX_MGW_NOT_IMPL_EXC</code>
<message>Method 'TIMEENTRIES_GET_ENTITYSET' not implemented in data provider
class.
</message>
<propertyref/>
<severity>error</severity>
</errordetail>
</errordetails>
</innererror>
</error>

clarity on Gateway setup

$
0
0

Hello Experts,

 

I have been trying to understand the set up of the Gateway. Is Gateway a separate server or this runs on top ECC (like deploying add-on). Can somebody explain me the difference in these two different set ups?

 

Thanks,

Balajii

The specified HTTP method is not allowed for the resource identified

$
0
0

Hello Experts,

                      Getting following error  for update operation

 

 

"The specified HTTP method is not allowed for the resource identified by the Data Service Request URI"

 

 

Please Suggest

 

Regards

Manish


SAP FIORI track purchase order application issue

$
0
0

Hi Masayuki Sekihara,

 

we are implementing FIORI for our big customer where we have started with PO tracking application. When we execute the application it takes 20 mins to fetch only 10 records from ECC. We also debugged the application and we find that time is taken in fetch next cursor statement in PO track application api methods.

 

Kindly help us in resolving the issue. we have applied all the notes.

OData: Create operation on entity with associated entity?

$
0
0

Given the following:

 

I am modeling a document that has both header and items.

 

This results in two entities with an association. So far so good.

 

When I try and create the document, I will ideally want to pass the header and items (i.e. the complete document) in one go (assumedly via an HTTP PUT).

 

Is this possible? In practice, how will my HTTP request look that creates the entity in its entirety?

 

Furthermore, (and this is my great concern): Will SAPUI5 support binding to an OData model in this way as to support this?

 

Let's assume the following simplistic model:

 

Header:

DocumentNumber

 

Items:

DocumentNumber

ItemNumber

Material

Quantity

Where to create users?

$
0
0

Hi

We want users created in Backend to access data via Gateway.

 

Should all users also be created in Gateway, or can we avoid that?

 

Thanks

Aikon

Example of CREATE Operation Request

$
0
0

Hi,

 

I want to get an example of request (SAP NW SP5),

because the old example does not work:

 

"x-requested-with: XMLHttpRequest\r\n

\r\n

<?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n

  <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">\r\n

      <content type="application/xml">\r\n

        <m:properties>\r\n

          <d:value>0209_US021200089</d:value> \r\n

          <d:scheme_id>Z_BANK_GEBO2</d:scheme_id> \r\n

          <d:scheme_agency_id>LOCAL</d:scheme_agency_id> \r\n

          <d:post_bank /> \r\n

          <d:bank_branch>Sacramento</d:bank_branch> \r\n

          <d:street>123 Main St.</d:street> \r\n

          <d:city>El Dorado Hills</d:city> \r\n

          <d:swift_code/>\r\n

          <d:region>CA</d:region> \r\n

          <d:bank_name>Bank of Gebo</d:bank_name> \r\n

          <d:pobk_curac /> \r\n

          <d:bank_group /> \r\n

          <d:addr_no /> \r\n

        </m:properties>\r\n

      </content>\r\n

</entry>\r\n"

 

I get then error mesage "<p>Your browser sent a request that this server could not understand.<br />\n"

 

Regards

Vladislav

How to pass a table (not a range table) input from URL for a RFC in get_entityset

$
0
0

Hi All,

 

There is a table input in a RFC which has to execute in get_entityset method. $Filter is allowing to take the input into range table but my input table is not a range table.

 

Is it possible to pass a non-range table data from URL for a gateway service?

 

Thanks,

 

Suresh Yerra.

Show label from Gateway in Response body

$
0
0

Hi

In the properties of Entity Types, we have set som label names.

How can we show thoese names, when we call the URL of the service?

 

Thanks,

 

Regards

Aikon

Gateway Costing and license issues

$
0
0

Hi

 

I'm sure this has been mentioned / blogged before, but i've tried searching and can't find the document anywhere.

 

I'm sure there was a change in SAP Gateway license last year to that any existing user licences were covered by the deployment of gateway

 

So for example if i wanted to download gateway install it on one of our test systems this would be free ?

 

So long as any users already had SAP licences ? 

 

I'd quite like to have a go at setting up the following application.

 

http://scn.sap.com/community/netweaver-gateway/blog/2013/01/09/developing-the-sap-workflow-app-for-ios-setting-the-wheels-in-motion

 

But i'm not sure of the costs of downloading and installing gateway at the moment

 

If anyone from SAP could advise that would be much appreciated

 

Many Thanks

 

James Ibbotson


Gateway OData Generator Tool

$
0
0

Hi All,

 

I am using the OData generator tool to create a simple query operation. However I keep on getting the below error when I try to consume in my web browser. Anyone seen this before?

 

Data Provider implementation 'Z_TIMESHEET_0001_PS' '01' '' does not exist

 

  • Z_TIMESHEET_0001_PS is the name of my gateway data model.

 

Thanks,

 

Megan

How to Post Multiple Rows at a time into Database table using Odata ...

$
0
0

Hello Experts ,

 

I want to Post Multiple Records into Database table using Odata Post Method for a Remote Enabled Function Module. For that, using SE80 I created a data model and Mapped fields for table using Function Module. Then Created a consumption Model and Activated the service . Then Calling the service from REST Client and tried to post using XML Content as shown below.

 

In the Below XML Content I tried to Post 2 Records into DB Table, But Showing error as"Error while parsing an XML stream".

Could you please suggest How to Pass Multiple Records At a time using Odata Create/Post Method , like we post Multiple Records at the time of Function Module Execution by clicking NewLine/DoubleLine in Tables Tab.


XML Content :


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

<entry xml:base="http://Server:port/sap/opu/odata/sap/Z_RFC_POST/z_rfc_postCollection/"

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">

<id>http://Server:port/sap/opu/odata/sap/Z_RFC_POST/z_rfc_postCollection/</id>

<title type="text">GoodsReceipt Status</title>

    <category term="/Z_RFC_POST./z_rfc_post"

scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

    <link href="z_rfc_postCollection" rel="self" title="/Z_RFC_POST"/>

    <content type="application/atom+xml">

    <m:properties>

    <d:empid>0000000050</d:empid>

    <d:ename>Ram</d:ename>

    <d:city>Chennai</d:city>

    <d:empid>0000000090</d:empid>

    <d:ename>Kumar</d:ename>

    <d:city>Bangalore</d:city>

    </m:properties>

    </content>

    </entry>

 

 

Appreciate your help.

 

 

 

Thanks,

Uday.

Create Deep EntitySet and JSON

$
0
0

I am using SAPUI5 and I am able to insert an Inline Data Feed when the data is formatted as XML, but face multiple issues when setting JSON to true. I believe this is not a SAPUI5 issue but a Gateway issue.

 

The entity i am posting has a 0:N relationship with the child entities.

 

The first thing i found was that i needed to have the array of child entities I am posting wrapped around a 'results' object. Not sure why SAPUI5 (Datajs) didn't do this.

 

eg.

{ "results": [ child1, child2 .. childn ]}

 

/IWCOR/CL_DS_EP_READER_JSON->/IWCOR/IF_DS_EP_READER~READ_ENTITY_SET

...
IF lv_standalone = abap_true.       json_start.       read_count_and_next(         EXPORTING           io_reader      = io_reader         IMPORTING           ev_inlinecount = ev_inlinecount           ev_next        = ev_next ).       json_array gc_results. <<this line
ELSE.

This appears consistent with http://www.odata.org/documentation/json-format-> 7. Representing Entries definition of OData V2

 

However when i manually wrap the 'results' object around the array, the parser triggers an exception way before, it is expecting an array to be associated with the navigation property not an object.


/IWCOR/CL_DS_EP_READER_JSON->READ_ENTITY_INTERNAL

..  " 3. "NavigationPropertyName":...  " Options:  " 1. "nav":{ "__deferred" :  " 2. "nav":[ - inline feed  " 3. "nav":{ - inline entry  io_reader->current_node( ).  IF io_reader->name = 'array' ##NO_TEXT. "  2. "nav":[ - inline feed    IF ld_nav_property->multiplicity <> /IWCOR/if_DS_edm=>gc_multiplicity_many.      RAISE EXCEPTION TYPE cx_sxml_parse_error        EXPORTING          xml_offset = io_reader->get_byte_offset( ).    ENDIF.
..

This would have been the logic for OData V1.

Further down the exception is triggered when it doesn't like the 1:N multiplicity.

 

ELSE.
.
" 3. "nav":{ - inline entry
 IF ld_nav_property->multiplicity = /IWCOR/if_DS_edm=>gc_multiplicity_many.      RAISE EXCEPTION TYPE cx_sxml_parse_error          EXPORTING             xml_offset = io_reader->get_byte_offset( ).
ENDIF.

Has anyone else come across this, is there a workaround or pending fix.

Cheers

John P

 

UPDATE: Just found Note 1751991 - OData Channel - Deep Insert in JSON Format Leads to Error which looks like it addresses this issue.

 


Could not able to pass parameters in URL

$
0
0

Hi,

 

I developed one custom RFC instead of using BAPI_ADDRESSEMP_GETLIST, as i have many custom fields in PA0006, i created this custom RFC.

After that I  used SEGW ,gateway service builder to import the RFC and created entity and entity set.

 

can you just help me in how to do mapping in GET_ENTITYSET and GET_ENTITY, what values to be passed and mapped and at the same time how to check the values in output URL like $filter, $select.

 

NoTE: In my Custom RFC importing parameter pernr is mandatory.

Query Operation: SAP Netweaver Gateway Wizard

$
0
0

Hello,

 

I have create a QUERY Service with the wizard from IDES BAPI, but there is one required Parameter in BAPI.

Now I set hard coded the default value of it, but I want to set it dynamically.

Has someone any idea how to pass it from user to NW Gateway Odata Service?

(with READ Operation it is quite simple)

 

Best Regards

Vladislav Shakhmatov

Viewing all 1195 articles
Browse latest View live


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