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

Need advise on SAP Netweaver gateway/Odata/Eclipse

$
0
0

Hi All,

 

I am bit confused with all these terminology. Could you please advise me how do I make app for mobile using SAP netweaver gateway/Odata/Eclipse ..?I think that Eclipse is the way forward .....

 

I have SAP netweaver gateway system 2.0 installed and have Eclipse Kepler. Recently I have seen GWPA ..how and where can I get that ? and I am not able to install SAP Netweaver Gateway Plugin for Eclipse..can you please advise..

 

Kind Regards

Rama


Huge bug on signup page! Urgent

$
0
0

Hello,

 

I was following this doc:Getting started with the SAP Netweaver Gateway Service Consumption System

 

 

Where I got to From:

 

SAP Netweaver Gateway Demo System

 

Where I got to From:

 

Getting Started with Kapsel - Part 1

 

 

So, I attempt to follow the links and get to:

 

https://supsignformssapicl.hana.ondemand.com/SUPSignForms/

 

 

Then, when I submit the sign-up form, I get the following bug:
https://supsignformssapicl.hana.ondemand.com/SUPSignForms/error.jsp

 

 

The system is not accessible please have a look at the Operations Document for the system status or check back later.
Thank you for your understanding

 

 

So - What do I do? I get no email and I have no way to get credentials to access the demo-data to set up the management cockpit for my Kapsel apps... please help!

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

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?

Error in using key predicates

$
0
0

Hi all,

 

When executing the service URL with key predicates i am getting an error raised by exception /IWBEP/CX_MGW_TECH_EXCEPTION (message Internal error occurred, contact your system.).

 

The Associations, Referential constraints and Navigation properties have been maintained correctly.

 

The key predicates being passed are:

Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00'

 

The complete URL looks like:

http://<host>:<port>/sap/opu/odata/SAP/FLIGHTLISTDCR/FlightLists(Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00')/FlightDetail where FlightLists is the name of the Entity set and FlightDetail is the name of the Navigation property. Without the key predicates the entity set  returns the desired result.

 

Metadata

 

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

 

-<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"

 

 

-<edmx:DataServices m:DataServiceVersion="2.0">

 

 

-<Schema Namespace="FLIGHTLISTDCR" xml:lang="en" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">

 

 

-<EntityType Name="FlightDetail" sap:content-version="1">

 

 

-<Key>

 

 

<PropertyRefName="Airlineid" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Flightdate" />

 

</Key>

 

<PropertyName="Flighttime" Type="Edm.Int32" Nullable="false" sap:label="Flight time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Distance" Type="Edm.Decimal" Nullable="false" Precision="9" Scale="4" sap:label="Distance"
sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Econofree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Businfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Firstfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"
sap:filterable="false" />

 

 

<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"
sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare" sap:creatable="false"
sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

</EntityType>

 

-<EntityType Name="FlightList" sap:content-version="1">

 

 

-<Key>

 

 

<PropertyRefName="Flightdate" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Airlineid" />

 

</Key>

 

<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"
    sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"
    sap:filterable="false" />

 

 

<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare"
    sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<NavigationPropertyName="FlightDetail" Relationship="FLIGHTLISTDCR.FlightListFlightDetail"
FromRole="FromRole_FlightListFlightDetail" ToRole="ToRole_FlightListFlightDetail" />

 

</EntityType>

 

-<Association Name="FlightListFlightDetail" sap:content-version="1">

 

 

<EndType="FLIGHTLISTDCR.FlightList" Multiplicity="1" Role="FromRole_FlightListFlightDetail" />

 

 

<EndType="FLIGHTLISTDCR.FlightDetail" Multiplicity="1" Role="ToRole_FlightListFlightDetail" />

 

 

-<ReferentialConstraint>

 

 

-<Principal Role="FromRole_FlightListFlightDetail">

 

 

<PropertyRefName="Flightdate" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Airlineid" />

 

</Principal>

 

-<Dependent Role="ToRole_FlightListFlightDetail">

 

 

<PropertyRefName="Flightdate" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Airline" />

 

</Dependent>

</ReferentialConstraint>

</Association>

 

-<EntityContainer Name="FLIGHTLISTDCR" m:IsDefaultEntityContainer="true">

 

 

<EntitySetName="FlightDetails" EntityType="FLIGHTLISTDCR.FlightDetail" sap:pageable="false" sap:addressable="false"
sap:content-version="1" />

 

 

<EntitySetName="FlightLists" EntityType="FLIGHTLISTDCR.FlightList" sap:requires-filter="true" sap:content-version="1" />

 

 

-<AssociationSet Name="AssocSet_FlightListFlightDetail" Association="FLIGHTLISTDCR.FlightListFlightDetail"
sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1">

 

 

<EndEntitySet="FlightLists" Role="FromRole_FlightListFlightDetail" />

 

 

<EndEntitySet="FlightDetails" Role="ToRole_FlightListFlightDetail" />

 

</AssociationSet>

</EntityContainer>

 

<atom:linkrel="self" href="http://<host>:8000/sap/opu/odata/sap/FLIGHTLISTDCR/$metadata"
    xmlns:atom="http://www.w3.org/2005/Atom" />

 

 

<atom:linkrel="latest-version" href="http://<host>:8000/sap/opu/odata/sap/FLIGHTLISTDCR/$metadata"
    xmlns:atom="http://www.w3.org/2005/Atom" />

 

</Schema>

</edmx:DataServices>

</edmx:Edmx>

 

 

The Error log message is vague and is as follows:

Internal error occurred, contact your system administrator.

 

Shall be grateful for any hints which could help me resolve this issue.

 

regards

Nitesh

Odata Service Creation Using SEGW Transaction

$
0
0


Hi All,

 

I am trying to create an Odata service using one RFC that takes three input parameters and returns one structure as output parameter.

When I am trying to do mapping of Get Entity Set it is saying that key variable does not have output mapping. But my key variable is input parameter so I am unable to change the mapping direction of key variable.

Please some body suggest how to change the mapping direction of mandatory import parameters in get entity set query.

 

 

 

With Regards

Neha Pandey

/IWFND/MED180 - Database lock for Service ... could not be set

$
0
0

Hello,

 

 

We are on HANA Revision 74.03 and Kernel 7.41 PL36. I created odata service and redefined GET_ENTITY method used by SAP UI 5 application.

The application is calling my odata service asynchronously multiple time (20-30) every minute to refresh page content. It is working fine,
but the NW Gateway Error log is growing. The error I am getting: /IWFND/MED180 - "Database lock for Service 'MY_SERVICE' could not be set." I am
getting 2-3 error log entries per refresh. It is not consistent. I am not able to reproduce the issue when testing the failed service call. Please, help.

 

 

Best Regards,

Zachary

Huge bug on signup page! Urgent

$
0
0

Hello,

 

I was following this doc:Getting started with the SAP Netweaver Gateway Service Consumption System

 

 

Where I got to From:

 

SAP Netweaver Gateway Demo System

 

Where I got to From:

 

Getting Started with Kapsel - Part 1

 

 

So, I attempt to follow the links and get to:

 

https://supsignformssapicl.hana.ondemand.com/SUPSignForms/

 

 

Then, when I submit the sign-up form, I get the following bug:
https://supsignformssapicl.hana.ondemand.com/SUPSignForms/error.jsp

 

 

The system is not accessible please have a look at the Operations Document for the system status or check back later.
Thank you for your understanding

 

 

So - What do I do? I get no email and I have no way to get credentials to access the demo-data to set up the management cockpit for my Kapsel apps... please help!


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

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

Access to trial Gateway service

$
0
0

I am tring to sign up to - SAP Netweaver Gateway Service Consumption System - 11th Nov 2014. It responds that the service is down. Is anyone else experiencing this problem?

Working with datetimeoffset datatype

$
0
0

Hi Folks,

 

From my mobile client, I also want to send the minutes offset  along with date time.

 

I observed that datetimeoffset  datatype accepts number (offset minutes from UTC). Does that mean I should send offset minutes in a separate field with datatype datetimeoffset.?

 

Is this the correct way?

 

Will Gateway sp9 automatically handle this??  or do i have to redefine any method and implement my own logic?

 

Thanks and Regards,

Kawish.

Internal error when redefinind service with entity types and associations

$
0
0

Dear gateway specialists,

 

I have created a gateway service with several entity types and several associations together with corresponding navigation properties.

Then I have created another service in which I want to redefine the first service with all the entity types and associations.

But the redefinition ends with an internal error (message no. /IWBEP/SBCM001) and the navigation properties are not imported (entities and associations seem to be o.k.).

 

What could be the reason for the error? And why might the navigations not be imported?

 

 

Thanks!

 

Regards,

Juergen

 

 

 

P.S. I found SAP note 2027049 "Service Builder Redefiniton - Extend of Odata service with Associations" which I've implemented, but without success

Error Handling through SAP Gateway

$
0
0

Hi,

 

We have few Update and Create Services being called, once these services are called and the record is updated or created, is there a way to get the success of error messages posted to the front end?

 

Thank you in Advance.

Need advise on SAP Netweaver gateway/Odata/Eclipse

$
0
0

Hi All,

 

I am bit confused with all these terminology. Could you please advise me how do I make app for mobile using SAP netweaver gateway/Odata/Eclipse ..?I think that Eclipse is the way forward .....

 

I have SAP netweaver gateway system 2.0 installed and have Eclipse Kepler. Recently I have seen GWPA ..how and where can I get that ? and I am not able to install SAP Netweaver Gateway Plugin for Eclipse..can you please advise..

 

Kind Regards

Rama


Single Sign On - iPad to Portal to UI5 website

$
0
0

Hey all,

 

I want to hear about some options to getting single sign on to work on the iPads.

 

We currently have something similar to the following, but want to change it up.

 

Users hit the website.

Website javascript checks an image on the r3 server.

If the image loads, the user is already authenticated , so redirect to the final website

if the image load fails, the user is not authenticated, so open SAP AUTHENTICATOR application

The website is checking a image on the r3 server every 2 seconds, to see when it can load correctly.

When it loads correctly, that means the user is done with SAP AUTHENTICATOR, and is now authenticated in SAP.

 

Is there a better  way to do this?

 

How can i check from website code on the ipad if the user is authenticated or not?

 

We have access to the r3 server URLS and the portal URLS.

 

I would appreciate any help, and if i did not explain anything good enough, please let me know so i can give you all the information you need to help.

 

Thanks

- Jordan

How to replace server url to proxy url in OData Response

$
0
0

Hello experts,

 

 

i'm facing a problem with SAP gateway in combination with a proxy . We use a proxy to call SAP gateway from the Internet.

 

So we make a http call to the proxy like: http://proxyserver:8000/sap/opu/odata/sap/testservice.

 

But in the OData response in every href tag of the xml the url shows the internal server url like

 

atom:link rel="self" href="http://internalserver:8000/sap/opu/odata/sap/testservice/$metadata"/>

 

Especially in a senario when using a proxy we don't want to give the internet (external) user information about the inner infrastructure.

 

Is there a posibillity to change the urls in the OData document to the url of the proxy?

 

Many thanks

 

Xiang

How to Pass DateTime value in $batch for GET operation

$
0
0

Hi All,

 

I am trying to call a GET operation in $batch  my request content looks like this.

 

--batch_005

 

Content-Type: application/http

Content-Transfer-Encoding: binary

 

GET LRI004LANERENTALJOBS(FromDate=datetime'2014-08-10T00:00:00',OperationDist='TD - TRANSPORT FOR LONDON ROAD NETWORK',Sapid='TST_PORT_USR',ToDate=datetime'2014-09-24T00:0:00',Historical='X',JobNum='555') HTTP/1.1

 

 

--batch_005--

 

I am getting the below error:

 

Resource not found for the segment '00:00',OperationDist='TD'.

 

Same URI is working for general GET operation.

 

I am suspecting it could be DateTime value is not formed well.

 

Can anybody suggest.

 

Regards,

Kiran Adhikarla

/IWFND/MED180 - Database lock for Service ... could not be set

$
0
0

Hello,

 

 

We are on HANA Revision 74.03 and Kernel 7.41 PL36. I created odata service and redefined GET_ENTITY method used by SAP UI 5 application.

The application is calling my odata service asynchronously multiple time (20-30) every minute to refresh page content. It is working fine,
but the NW Gateway Error log is growing. The error I am getting: /IWFND/MED180 - "Database lock for Service 'MY_SERVICE' could not be set." I am
getting 2-3 error log entries per refresh. It is not consistent. I am not able to reproduce the issue when testing the failed service call. Please, help.

 

 

Best Regards,

Zachary

Input parameter for the GetEntitySet operation

$
0
0

Hi experts,

I am confused with the GetEntitySet method in combination with GW Service Builder. For example, I created a mapping for the GetEntitySet service with an SAP standard BAPI, mapped the Key attribute to the input parameter for the Bapi, like the following screenshots:

Here is the definition of the entity type:

 

From my point of view, it means I could call this Odata operation with an input parameter in the URL like this: /sap/opu/odata/sap/Z_INSTANDHALTUNG_MELDUNG_SRV/MeldungspositionSet?meldungsNummer='000010000271'

It is also very similar to the example URL in the ODATA documentation (http://www.odata.org/documentation/odata-version-2-0/uri-conventions/):http://services.odata.org/OData/OData.svc/ProductsByColor?color=’red’

 

The problem is, when I debug my GW service, I found nothing has been transported into the ABAP DPC class.

 

 

So, my questions are:

  1. Did I use the correct URL to invoke the Odata operation?
  2. If I used the correct URL, why the input parameter is missing?

 

Appreciate a lot for any help.

Best regards

Xiang

Viewing all 1657 articles
Browse latest View live


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