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

Update/Create entityset

$
0
0

Hi experts,

 

I have the following question :

 

I made a gateway service via transaction segw.

and now i want to make an update and a creation for an entityset. what is the best place (method name) to put my code ?

 

The generated methods are only for an entity : create_entity/update_entity and delete_entity...

so i cant see any method about entityset ?

 

Thanks


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

Issue with URI when using Key predicates and filter option together with Navigation

$
0
0

Hi all,

 

I am trying to execute the following URI

 

http://<server>/sap/opu/odata/sap/VEHICLEAVAIL/SalesModelLists('TF4CKF3')?$filter=OrderStatus%20eq%20'S'/SalesModelListPOListNAV

 

but i am getting the error ‘Left hand expression of memberaccess operator invalid’ . This error is being issued by the component OPU-FND-CCL.

 

Details of above link:

  • VEHICLEAVAIL is my external service name
  • SalesModelLists is my entity set name which has one property as key which is being passed as the key predicate
  • OrderStatus is a property of the SalesModelLists which I want to pass as a filter. This property has the attribute filter marked in the entity.
  • SalesModelListPOListNAV is the navigation from entity SalesModelList to another entity POList

 

Note: without the filter the URI executes correctly and returns the results.

 

Not sure the filter option has been placed correctly in the URI. Please suggest.

 

Regards

Nitesh

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

Odata Create/Post Method Issue

$
0
0

Hello Experts ,

 

    Currently Issue is with SAP Netweaver Gateway Odata Services .

I am Trying to POST the Records into Database table Using Odata Create Method, For that I am Using T-Code SE80 and creating GW Data Model and Consumption Model ,generating the Model . Later on tried to Run the Odata service URL in the REST client . I am Getting the Error message as "System expected a value for the type g" . I am Using POST Method here and the Content-type = application/atom+xml and also Using x-csrf-token .

In The Request Header, Passing the Data Record to be created in XML Format as shown below.

 

XML Format:


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

<atom:entry xml:base="http://host:port/sap/opu/odata/sap/ZCUSTOMER_RFC/"

xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"                       

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"

xmlns:sap="http://www.sap.com/Protocols/SAPData">

           <atom:content >

                   <m:properties>

                   <d:empno>0000000020</d:empno>

                   <d:city>UK</d:city>

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

                 </m:properties>

           </atom:content>

   </atom:entry>

 

Could anyone suggest whether the Format and Procedure I am using is correct or not ? and also the reason for the error 500 Internal server error with code CX_ST_MATCH_TYPE and Message "System expected a value for the type g".

 

 

     Appreciate your Help.

 

 

 

Thanks,

Uday.

SENDER SY-UNAME NEED TO CHANGE TO OTHER eMAIL FOR PO FAX OUTPUT

$
0
0

Hi,

 

I have requirement like FAX SENDER for a PO output is always SY-UNAME as of now.

 

But as per new change request sender must be the EMAIL from T024-SMTP_ADDR (EKKO-EKGRP for the PO will pass it into T024 then get SMTP_ADDR/EMAIL). SO this mail id is set as SENDER of that FAX for the PO.

 

 

So can you guide me .

 

 

Regards,

Veera

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

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 .


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?

SAP UI5 on ABAP without Gateway?

$
0
0

Hi All,

    Within all the discussions about Gateway and OData sevices, I couldn't answer to a basic question I have... Hope someone here could answer it for me.

    We have a NW 701 ABAP system with the IW_BEP Addon installed. I understand that this is enough to create OData channels from ABAP.

 

    However, every blogs/articles goes ahead to GW_CORE as further steps to expose the OData channel as gateway services to the world. That's fine, but I'd like to know if I want to develop a UI5 application that's hosted right within the same ABAP server (using SAPUI5 runtime), then is there a way to consume these OData channels directly without the GW_CORE?

Can anyone refer me to any articles, wiki or blogs etc. that has such an information?

Crystal report in windows 7 64 bit

$
0
0

Hi,

 

We developed application using crystal report , MySQL and VS 2008 which runs fine on 32 bit windows 7 system.When we test in a 64 bit Windows 7 system ,the application crashed immediately.Since our application needs 32 and 64 bit MySQL ODBC drivers ,We installed both drivers in same system.We created 32 bit DSN. But whenever  we do odbc/database connection or operation, in design time  itself the crystal report crashes . We tested with other example applications which using crystal reports ,all applications crashed in same way.Please help us to resolve this issue.

 

Regards

 

SIBI.S

Error when executing Gateway service

$
0
0

Hi,

 

I have created an OData service using the standard BOR object Flight and doing the implementation using the method Flight.Getlist. This method does not have any mandatory input parameters therefore I am also not passing any input parameters and just reading the data returned in its export parameter FLIGHT_LIST. The implementation of the entity set has been done using this method (as mentioned above) of the BOR object.

 

When testing the service the OData Service document and the Metadata XML are generated correctly. However when i test the collection through the Gateway client (/IWFND/GW_CLIENT) or Explore Service function (In Maintain service option via SEGW) i am getting an HTTP 500 error (Internal Server Error).

 

Details of the Error Log

A parameter has an invalid value: Parameter <VALUE> has the invalid value 735116.

 

Details of the Application Log

1. Exception of type CX_PARAMETER_INVALID_RANGE has occurred. See details for more information

The details provided are "A parameter has an invalid value: Parameter <VALUE> has the invalid value 7 35116."


2. Exception of type /IWCOR/CX_DS_INTERNAL_ERROR has occurred. See details for more information

The details provided are "In the context of Data Services an unknown internal server error occurred."


I am not passing any parameters therefore am unable to figure out which parameter is causing this error.

 

Need the help of the experts out there to resolve this issue.

 

regards

Nitesh

how to escape a dot in a query URL?qu

$
0
0

Hi,

we have a parameter in our query URL which contains a number with a dot (SAP internal a DEC field). I tried to send a filter to the query by escaping it like this: '48.0'

I get the error message "Invalid parametertype used at function GE".

 

Does anybody know how I can escape the number?

 

Thanks and regards,

Martin

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

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


How to erase cache/session SAP Gateway (iOS)?

$
0
0

Are there any methods that can be called from our SAP Gateway application to not generate a session when user does the login, or logout when the user exit of the application?

 

 

We have created an application for iOS and Android devices using SAP Gateway. The connections code has been generated with the tools provided by SAP for Eclipse and Xcode.

 

Both Android and iOS have a screen on which the user does the login before accessing the data provided by the application.

 

When user introduce user and password we validate login with the SAP Gateway and if the login is correct we allow it access to the data of the application. The problem comes when once user have successfully logged and return back to the login screen and enter a another user with any password, the SAP Gateway system responds that user exists without validating username and password and shows their data. This error only occurs in the iOS app in Android works fine.

 

We have found that the SAP Gateway generates a session associated with the user and terminal of the first time that user does login. Thus when user login again with another user the SAP Gateway system really doesn't check user and password and we found with an SAP Gateway open session. The application doesn't call any method to save the connection cache on the phone and we ignore the connection cache.

 

Thank you very much!

Crystal report in windows 7 64 bit

$
0
0

Hi,

 

We developed application using crystal report , MySQL and VS 2008 which runs fine on 32 bit windows 7 system.When we test in a 64 bit Windows 7 system ,the application crashed immediately.Since our application needs 32 and 64 bit MySQL ODBC drivers ,We installed both drivers in same system.We created 32 bit DSN. But whenever  we do odbc/database connection or operation, in design time  itself the crystal report crashes . We tested with other example applications which using crystal reports ,all applications crashed in same way.Please help us to resolve this issue.

 

Regards

 

SIBI.S

Error when executing Gateway service

$
0
0

Hi,

 

I have created an OData service using the standard BOR object Flight and doing the implementation using the method Flight.Getlist. This method does not have any mandatory input parameters therefore I am also not passing any input parameters and just reading the data returned in its export parameter FLIGHT_LIST. The implementation of the entity set has been done using this method (as mentioned above) of the BOR object.

 

When testing the service the OData Service document and the Metadata XML are generated correctly. However when i test the collection through the Gateway client (/IWFND/GW_CLIENT) or Explore Service function (In Maintain service option via SEGW) i am getting an HTTP 500 error (Internal Server Error).

 

Details of the Error Log

A parameter has an invalid value: Parameter <VALUE> has the invalid value 735116.

 

Details of the Application Log

1. Exception of type CX_PARAMETER_INVALID_RANGE has occurred. See details for more information

The details provided are "A parameter has an invalid value: Parameter <VALUE> has the invalid value 7 35116."


2. Exception of type /IWCOR/CX_DS_INTERNAL_ERROR has occurred. See details for more information

The details provided are "In the context of Data Services an unknown internal server error occurred."


I am not passing any parameters therefore am unable to figure out which parameter is causing this error.

 

Need the help of the experts out there to resolve this issue.

 

regards

Nitesh

Access to restricted URI denied

$
0
0

Hello all,

 

I am trying to access a gateway service from javascript using datajs.

 

When I execute my demo application in Internet Explorer everything works fine, but when I try using Firefox my javascript function returns the following error message: "Access to restricted URI denied".

 

Is / Was anyone else confronted with this problem? It looks like a browser issue?

 

Thanks in advance and best regards,

Alej

Issue with URI when using Key predicates and filter option together with Navigation

$
0
0

Hi all,

 

I am trying to execute the following URI

 

http://<server>/sap/opu/odata/sap/VEHICLEAVAIL/SalesModelLists('TF4CKF3')?$filter=OrderStatus%20eq%20'S'/SalesModelListPOListNAV

 

but i am getting the error ‘Left hand expression of memberaccess operator invalid’ . This error is being issued by the component OPU-FND-CCL.

 

Details of above link:

  • VEHICLEAVAIL is my external service name
  • SalesModelLists is my entity set name which has one property as key which is being passed as the key predicate
  • OrderStatus is a property of the SalesModelLists which I want to pass as a filter. This property has the attribute filter marked in the entity.
  • SalesModelListPOListNAV is the navigation from entity SalesModelList to another entity POList

 

Note: without the filter the URI executes correctly and returns the results.

 

Not sure the filter option has been placed correctly in the URI. Please suggest.

 

Regards

Nitesh

Viewing all 1657 articles
Browse latest View live


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