Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all 1657 articles
Browse latest View live

Getting data from SAP backend into Gateway Hub

$
0
0

Dear all,

 

I am new to Netweaver Gateway. In my landscape the IWBEP component has been installed in the Gateway Hub system. In my custom OData service i want to get the data from my backend SAP ERP system using a BAPI.

 

I have created my custom OData service with the relevant components and have implemented the service using the BAPI method. While implementing the service i referred to the BAPI method from the SAP ERP backend system using the RFC destination (ABAP connection i.e. connection type 3)  to the SAP ERP system created in my Gateway hub.

 

Now when i test the service, the service document and metadata XML are generated correctly. However when i test the entity set, i find that the data is NOT being extracted from the SAP ERP backend system.

 

What configuration/settings need to be maintained in the custom OData service so that the service refers to the correct SAP backend system? How does the gateway service determine from which system it should extract the data?

 

regards

Nitesh


Unable to execute query operation

$
0
0

Hi Experts,

 

I have created an O data service via Gateway service builder (SEGW). I am able to execute the read operation(instance method).

 

When I try to execute the query operation (i e execute the entity sets), I am getting the following exception:-

 

  <code>F2/718</code>

  <code>/IWBEP/CX_SD_GEN_DPC_BUSINS</code>

  <message>No customer was found with these selection criteria.</message>

 

I have mapped BAPI_CUSTOMER_GETLIST (For read operartion),

                        BAPI_CUSTOMER_GETDETAIL2 (For query operation).

 

I have checked that the data is available in the back end database tables and proper backend configurations are also done in netweaver gateway system.

 

Please help me to resolve this.

 

Thanks and Regards,

 

Kawish.

Issue with Navigation/Association using SEGW

$
0
0

Hello All,

 

I have created gateway service using transaction SEGW with RFC as source, and also created its respective Navigation and Associations to display further details.

 

when I tried to test my application URL:

 

/sap/opu/odata/sap/ZTEST_DETAIL_SRV_01/test_msg('00000000000000601785')/test_details

 

in test environment (Sap NetWeaver Gateway Client) I am getting the below error msg:

 

-<errordetails>

-    <errordetail>

<code>/IWBEP/CX_MGW_NOT_IMPL_EXC</code>

<message>Method 'TEST_GET_ENTITY' not implemented in data provider class.</message>

<propertyref/>

<severity>error</severity>

</errordetail>

</errordetails>

 

In the documentation it is given that we will get a message stating that Method 'TEST_GET_ENTITYSET' not implemented in data provider class

instead of "TEST_GET_ENTITY"

 

Steps were provided in the documentation how to resolve the issue if we get the error with "TEST_GET_ENTITYSET" but not with "TEST_GET_ENTITY"

 

 

Thanks in advance.

Facing an exception while executing a query operation

$
0
0

Hi Experts,

 

I have created an Odata service through SEGW tcode. I am able to execute the read operation(instance method).

When I try to execute the query operation I am getting the following exception:-

 

  <code>F2/718</code>

  <message>No customer was found with these selection criteria</message>

  <code>/IWBEP/CX_SD_GEN_DPC_BUSINS</code>

 

I have mapped the following BAPIs,

 

BAPI_CUSTOMER_GETLIST( for Query Operation),

 

BAPI_CUSTOMER_GETDETAIL2( for Read Operation).

 

I have also checked that appropriate backend configurations are made and the data is present in backend database tables.

 

Please help me resolve this issue.

 

Thanks and regards,

 

Kawish

Eclipse: unable to create a Gateway Connection

$
0
0

Installed SW (Frontend)

 

Backend

  • AS ABAP 7.40

 

Hello Collegues,

 

I've created a NW Gateway Service on the backend (Service is working correctly) and now I want to create a UI5 Application on the Eclipse site.

Before creating the project I have to create a Gateway connection first. But I'm getting a "Network Connection Error".

 

error.PNG

Connection data (host, port) is correct, also tried with IP instead of hostname already.

I'm getting the same error if I'm using the (new) ES Workspace data (sapes1.sapdevcenter.com, Port 80?).

 

Tried also on another PC, same error.

 

Any ideas?

Data Provide implementation for RFC in SAP nw gateway web service using SEGW

$
0
0

Hello Everyone,

 

I am new to SAP net weaver gateway web service implementation.

I have written a function module on SAP R/3 system and want to call this function from SAP Netweaver Gateway system. This function will return a table and i want to pass this table to web service.The connection between two systems is tested and there in no problem with the connection.

 

I have created a project using t-code SEGW.

I have created Entity types and Entity set and have generated the service.

Now I am not clear how to call this remote function(which returns a table) from methods DPC_EXT/ DPC and what should be the syntax for the same?

 

I have done further steps like registering service and testing the web service (OData) for local database values but not for the remote database values.So please help for implementation of RFC call .

Netweaver Gateway : Multiple Output Tables : Odata

$
0
0

Hi,

 

I have created a RFC in ECC system. The RFC reads certain values and returns data in three output tables. The corresponding data model has been created in netweaver gateway.

 

When the portal application is trying to consume this service, it has to specify a particular table in the odata. Thus, to get the data of the three tables, the portal application is hitting the SAP database 3 times.

 

Could anyone please advise, how can we get the data for all the 3 tables in one go.

 

Regards,

Jiten

How to use NetWeaver Gateway, Totally confused where to start

$
0
0

Dear experts,

 

I have installed the pre-packaged 90 day trial version of the SAP NW Gateway 2.0 SP6 system in one of our servers and now I am able to login to the system.

 

I have opted for the HUB mode of deployment of the NW Gateway system.

 

But after that I AM TOTALLY CONFUSED what to do next, where to start etc etc.

 

I have followed the following SAP Help and did the basic configuration up to creation of RFC destination to backend SAP system:

http://help.sap.com/saphelp_gateway20sp06/helpdata/en/4c/a670b0e36c4c01ae2b9a042056f9dc/frameset.htm

 

And also created service in SEGW as per the following guide:

http://scn.sap.com/docs/DOC-41416

 

But after that, WHAT TO DO NEXT? What does this service will do? How to implement it for the end users? I am really finding it hard to visualize.

 

I am a basis guy and have almost no idea of ABAP programming. So, does my job stops here? Should I hand over the system to ABAP developers and other front-end application developers?

 

Somebody kindly guide me with some basis starting points. If any training is available for implementation of this system, kindly send me link to it.

 

Regards,

Anupom


Network Connection Error

$
0
0

Hi

 

Network is not connecting to Demo Server which is being used  by SAP NetWeaver Gateway.

 

Demo Server Details

Host :  gw.esworkplace.sap.com

Port  :  80

Username : GW@ESW

Password : ESW4GW

 

 

Can anyone reply me with another server details so I can use SAP NetWeaver Gateway Plug-in for Eclipse for furthur learning.

Thanks in advance.

 

 

Regards,

Chanu.

Unable to consume odata service in UI5

$
0
0

Hello Collegues,      

   i am trying to consume the Nothwind odata service in my UI application. In the controller class, i have written the following block of code

 

var oModel1 = new sap.ui.model.odata.ODataModel("http://services.odata.org/Northwind/Northwind.svc/");

varoModel2 = new sap.ui.model.odata.ODataModel("proxy/http://services.odata.org/Northwind/Northwind.svc/");

 

 

In both the case in the debug mode I could see oMetadata of oModel1 and oModel2 is empty.

 

It should be filled with the metadata of the model.

 

Could any one help in this?

 

Thanks in Advance,

Mohan

I can´t loggin an application(android) using the sap netweaver gateway DEMO credentials

$
0
0

I was trying to test an android application developed with the gateway.

The service I used, which is provided by the gateway demo is RMTSAMPLEFLIGHT_2. It is a List/Details application.

I defined the connection settings in the sdk which I obtained from http://scn.sap.com/docs/DOC-31221 with no problems.

 

Connection Settings:

User: GW@ESW

Password: ESW4GW

Host: gw.esworkplace.sap.com

Port: 80

Client: default (800).

 

The problem arises when I run the app in an emulator(or real device) and I enter the same user and password(the ones in red).

I think I'm using the correct credentials, because if I enter other user/password a message of authentication error appears.

But when I use the ones in red, a socket time out exception occurs.

 

screen ap.jpg

 

Any solution for this problem?

 

Thanks!

How to use sdk in sap crm

$
0
0

Hi,everyone.I want to use a sdk in sap crm 7.0,the sdk name is EcpOpen-api-v2.2.0.jar.

But I don't know how to use it.

Does someone have experience,please tell me.

Thanks!

Unable to populate complex entity type

$
0
0

Hi,

 

I've been able to follow the how to guides http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109c15ed-d8a3-2e10-7c9f-dcb1168aa1ff?QuickLink=index&overridelayout=true&53047141075265 and http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50ad7227-68a9-2e10-b191-905cb9b6c31a?QuickLink=index&overridelayout=true&52175262718629

 

The complex entity type within Airport (GeoCoordinate) and Flight (Departure and Arrival, which both has complex type of Location) are populated correctly. So the next step is for me to try to create my own service.

 

It only has 1 entity (SalesOrder) which comes from VBAK table - Sales order, order date, order type, customer number and one complex entity: customer details which comes from KNA1 - Name, Street, City, Region and Country.

 

I followed the steps listed in how to guides mentioned above. However, I'm unable to get the customer details populated. When I did the debug. the er_entityset contains the data for customer details.

 

Anyone know what did I miss?

 

Thanks for your help.

Application not connecting to Gateway system

$
0
0

Hello,

 

I have developed an HTML & Javascript application to consume a NetWeaver Gateway service, based on the below tutorial:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/505619a7-73bf-2e10-fe96-da9a86b23120?QuickLink=index&overridelayout=true&52239688165884

 

I have hosted the HTML & Javascript files on the same server as the Gateway system(using remote desktop). So I should not need a Web server configured as a reverse proxy.

 

However, on running the HTML application on the Gateway server, it gives the following error:

 

XMLHttpRequest cannot loadhttp://<GW server host>:<GW server port>/sap/opu/odata/sap/Z_…=100&sap-user=*****&sap-password=***&sap-language=EN. Origin null is not allowed by Access-Control-Allow-Origin.

 

However, the url in itself works fine and shows the Gateway service response in a browser.

 

Any inputs on what may be missing?

Is there some configuration on the Gateway system that prevents it from sending data back to the HTML app?

 

Regards,

Sudeep

Purchase Order Approval Process

$
0
0

Hi Guys

 

We are starting a new scenario for a project and i need info on that.

Whenever a Purchase Order is created with Release Strategy whoever approvers names are their data it should show in the mobile app.

From Gateway side i need information in which way i should get the data. I need to create workflow or it can be done through function module.

 

 

Thanks

Rajesh  


Data Provide implementation for RFC in SAP nw gateway web service using SEGW

$
0
0

Hello Everyone,

 

I am new to SAP net weaver gateway web service implementation.

I have written a function module on SAP R/3 system and want to call this function from SAP Netweaver Gateway system. This function will return a table and i want to pass this table to web service.The connection between two systems is tested and there in no problem with the connection.

 

I have created a project using t-code SEGW.

I have created Entity types and Entity set and have generated the service.

Now I am not clear how to call this remote function(which returns a table) from methods DPC_EXT/ DPC and what should be the syntax for the same?

 

I have done further steps like registering service and testing the web service (OData) for local database values but not for the remote database values.So please help for implementation of RFC call .

SAPUI5 Mobile - Gateway - OData Model Update fails

$
0
0

Hi everyone,

 

i´m trying to update an entityset from my SAPUI5 Mobile application but it dont works. I have created a gatewayservice

and redefined the update method.

 

The key of my entityset is a GUID and here is my problem. When i try to send an update with the GUID as key i get an error.

 

I tried it with the mozilla rest client like that:

 

(PUT) http://server:port/sap/opu/odata/sap/Zxx/Zexample(binary'0050568E41441EE2A0CEF4856C90D160')

 

and i get the status code: 415 Unsupported Media Type. If i try to read the entity with the same url (get) it works fine.

 

Does anybody know how to solve that? I would be very gratefull.

 

Thanks,

Waldemar

How to find Project name of default ODATA services?

$
0
0

Hello all,

 

I want to know the Project name for the default Odata services provided by SAP....I have tried in transaction SEGW but I am unable to find the default Projects in it...

 

Can anyone please help me on this.

 

Thanks in Advance.

Harsha

How to Compute logic for Arithmetic Expression in a string variable?

$
0
0

Hello all,

 

 

I am performing Arithmetic Operations on my Odata service and When I want to perform these operations dynamically in my Data Provider Class Ext(DPC_EXT), I am unable to do as the Query Operation is returning the Expression into a string variable, so I have to compute this expression dynamically and return  the expected result based on this operation.

 

 

For Eg: My string variable consists of  lv_str = ((Price + (( 6 + 6)/5)) > 800))

                              Where price is Field  of my Internal Table.

 

I have to compute this expression dynamically  and return the records which have price greater than 800...

 

The lv_str variable changes based on the Query Operation every time...

 

 

Can anyone please help me on this...

 

 

Thanks in Advance

Harsha

Facing an exception while executing a query operation

$
0
0

Hi Experts,

 

I have created an Odata service through SEGW tcode. I am able to execute the read operation(instance method).

When I try to execute the query operation I am getting the following exception:-

 

  <code>F2/718</code>

  <message>No customer was found with these selection criteria</message>

  <code>/IWBEP/CX_SD_GEN_DPC_BUSINS</code>

 

I have mapped the following BAPIs,

 

BAPI_CUSTOMER_GETLIST( for Query Operation),

 

BAPI_CUSTOMER_GETDETAIL2( for Read Operation).

 

I have also checked that appropriate backend configurations are made and the data is present in backend database tables.

 

Please help me resolve this issue.

 

Thanks and regards,

 

Kawish

Viewing all 1657 articles
Browse latest View live


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