Quantcast
Channel: SCN : All Content - SAP NetWeaver Gateway Developer Center
Viewing all 750 articles
Browse latest View live

Unable to test application from SICF service .

$
0
0

Hi Guru,

 

Standard and z- fiori application is not working through the SICF service,hv activated service for particular applications.

 

Error is File sap/<application name>/index.html NOT found while testing the application  from sicf service.

 

Kindly help for this sol..

 

Regards,

Sam


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

$
0
0

Hi,

 

i am trying to use POST method for sending updates to SAP from GW.

 

1) i have used GET parameter to fetch the XCSRF token, which is successful.

2) i would like to use POST method for updating one of the field in SAP, for which i am getting the below error.

 

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


3) i tried using PUT method which is successful.

 

below is the URL and payload and content type i am using to for POST method.

 

Content-type : multipart/mixed; boundary=batch

 

URL :http://:/sap/opu/odata/SAP/Z_POC_READ_UPDATE_SRV/ZREADUPDATESet(ImVbeln='0000004969')

 

 

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

POST ZREADUPDATESet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 975

 

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

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

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

<m:properties

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

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

    <m:properties>

     <d:ImAuart/>

     <d:ImErnam/>

     <d:ImLifsk/>

     <d:ImSpart/>

     <d:ImTrvog>1</d:ImTrvog>

     <d:ImVbeln>0000004969</d:ImVbeln>

     <d:ImVkorg/>

     <d:ImVtweg/>

    </m:properties>

</atom:content>

</atom:entry>

 

--changeset--

--batch--

how to connect and display a jsp page running on Eclipse with apache tomcat server in SAP portal

$
0
0

i am creating system object for connection between sap system and non sap system
using http system object i want to know from where would i find these properties to connect with apache tomcat server .

 

i am running a jsp page in my local system using eclipse and apache tomcat server . i want to display this page in portal using iview and suggest me which iview should i use to display. Please help me as i am new to sap portal environment  . i am attaching the images below.

 

 

 

 

thanks and regards

Unable to load sap fiori launchpad designer.

$
0
0

Hi expert,

 

I have given admin authorization to user but unable to proper load launchpad designer for create cat log/titles/Group.

 

Kindly help me .

 

Thanks,

Sam

Navigation Properties and the $orderby command

$
0
0

Hi All

 

I am trying to sort results using a Gateway OData Service as follows:

 

http://<hostname>:<port>/sap/opu/odata/sap/<Service>/MaterialHeaderSet('ABC')/NP_MatlHeader_SOItem?$expand=NP_SOHeader&$orderby=NP_SOHeader/DocumentDate%20desc,OrderId%20desc&area=SP&sap-ds-debug=true

 

Which means:

a) Find me all the Sales Order Items that are for Material 'ABC' using the Navigation Property 'NP_MatlHeader_SOItem' (Material Header to Sales Order Item using the Property of Material (MATNR) that is common to both MatlHeader and SOItem).

b) Expand to the Sales Order Header using the Navigation Property 'NP_SOHeader' (Sales Order Item to Sales Order Header using the property of OrderId (VBELN) that is common to both SOItem and SOHeader).

c) Order the results using the Properties of 'DocumentDate' (in Descending order) and 'OrderId' (in Descending order) which are contained in the Entity SOHeader and can be navigated to using the Navigation Property 'NP_SOHeader'.

 

The issue I have is that I get the following response:

 

Navigationproperties are not supported in ABAP select options

 

So the Gateway Framework does not support the use of Navigation Properties for specification of the $orderby command.   The exception is thrown at the following point in the Gateway Framework:

 

Exception /IWCOR/CX_DS_INTERNAL_ERROR occurred in Class /IWFND/CL_SODATA_PROCESSOR Method EXPR_NODE_TO_PROPERTY_PATH and Line 26

 

If I try this same command on public OData services such as Northwind, it works fine.  The business requirement behind the query (explained in points A-C above) is not unusual, indeed quite common.

 

Does anyone have suggestions about how I might be able to implement a solution for this?

 

Thanks very much for your consideration of my question.

 

Tony

Change/Enhance Generated Gateway Metadata

$
0
0

Is there a way to change the gateway generated metadata?  I understand that there Model Provider Extension Class which allows to manipulate some values however here is what I'm looking for.

 

Smart Filterbar and SmartTable controls require the attribute sap:filterable="true" or sap:required-in-filter="true".  While the gateway doesn't allow to set or return required-in-filter attribute but it does allow to set the filter field to true/false.  The default is true, so the meta doesn't return those values:

 

Capture.JPG

 

The examples from SAPUI5 Explored always contain embedded metadata with correct attributes set, hence work as expected, but they do not work with the gateway metadata.

 

I could modify the metadata and using the mock data make my code work, however I need to be able to do the same to the generated metadata until sap gateway team provides a fix or ui5 development interprets the metadata respecting the defaults.

 

Capture2.JPG

 

Appreciate any help from the Gateway gurus.

 

Thank You

Can we achieve Push Notification only using NW Gateway?

$
0
0

Hi Experts,

We have developed a mobile app using NW gateway,exposing a custom workflow decision step, my requirement is to get a push notification to the mobile device whenever that workflow has been triggered. Can we achieve Push Notification to a mobile device only using NW Gateway? What are the technologies available to achieve the same?(I have tried with SMP)

 

 

 

 

Thanx & Regards

Display Service is not coming

$
0
0

Hi Expert,

 

On Gateway server, When I click on button Service Implementation then display Service is not coming.

I did attach screen shot .

 

Anyone can help me for  sort out this issue.

 

mnk.png

 

Regards,

sam


how to export message in SAP gateway method CURD?

$
0
0

  I tried all what SCN described about this issue,but it didn't work, ,my version is NW 7.4 SP13, I'm not sure if any of you is using it, I really need to export message to front end with UI5, the problem is that i need to export message in method  entityname_get_entity & *_update_entity and so on,  and in this kind of method ,we have no related  field for message in this entity to export,please tell to how to export message in the method I said at above....thank you.

Calling multiple import and export parameters in webservice

$
0
0

Hello Experts,

 

                I have requirement to create odata web service in which I have to call one method of one class.But,that method has multiple import parameters and one table.also in output I have to retrieve multiple export parameters(i.e. 2 tables).How can I import multiple import parameters and retrieve multiple export parameter in et_etityset.

 

For example,

 

In Getentityset method-

 

call method class name->method name

 

Importing

 

iv_emp_name = emp_name

iv_emp_age = emp_age

it_sal = it_salary(Import table parameter)

 

exporting(Output tables parameters)

 

et_outputdata

et_messages

 

 

Please guide me for this.

Thanks in advance.

 

Regards,

Aditi mahajan

Collection_wrapper is blank

$
0
0

Dear All,

Need some help.

I want to add two fields of lead component on activity component ( Qualification level and lead status).

For that i added one context node ( of model node BuilHead) on activity component ( BT126H_APPT ). Which has those 2 fields.

But now when i try to access by using

if iterator is bound.

       current = iterator->get_current( ).

     else.

       current = collection_wrapper->get_current( ).

     endif.

Collection_wrapper is blank.

get_current is also blank.


Which results in i am not able to access other methods also.

I am not able to set properties also.

Please help on this.

OData - POST Operation - Slow on Initial Load of the Application

$
0
0

Hello Experts,

 

Is there a way POST operation on initial load of application be improved as it is taking too long when compared to succeeding POST operations (with changes in data)?

 

Initial POST

Initial Post Operation.png

 

Succeeding POST Operation

Succeeding Post Operation.png

 

Thank you.

 

Regards,

Jay Mercurio

Sign up and get started with the SAP Gateway - Demo Consumption System

$
0
0

The SAP Gateway server has been upgraded to ES4.

 

In order to use the new ES4 system, you will need to register again. 

Use the links below to sign up for a new ES4 account.

 

 

Welcome to the sign up for the SAP Gateway - Demo Consumption System.

 

The Demo Consumption System is a read-only system.  It provides data for demos, tutorials, and any other software that you are using/building which needs a Gateway server to provide sample data.  The system does not allow new projects or new data to be created.

 

If you feel comfortable with handling an SAP ERP System feel free to jump immediately to the sign up below. We do however suggest that before doing so you take the time to read this document as it will not only give you the information on how to connect but also other valuable information you might need when using the system.

 

Where do I sign up?

Sign up here! 

 

The sign up uses your SAP Cloud Identity to verify you.  (So, if you don't have an SAP website account, create one first!) The Gateway server uses your UserID (found here) as your account name.  You provide your name, and email address.  Once you have accepted the terms and conditions, the server will create an account, and then email you the temporary password.

 

What happens next?

Connect to the SAP Gateway WebGUI  (https://sapes4.sapdevcenter.com/).

 

When you receive the email, open up a web browser and point it to the WebGUI.  The server will ask you to change your temporary password.  Once you have done that, you can access the Gateway Service.

 

How do I connect to the system?

The WebGui is the main way to connect to the system.

 

Screen Shot 2015-12-09 at 10.53.59 AM.png

 

Unfortunately, for security reasons we have disabled connections from the Windows or Java GUI client.  Please use the WebGUI instead.

 

What can I do with the System?

The main purpose of the system is to learn about consuming SAP Netweaver Gateway Services. All URL's to Gateway for this system start with

 

https://sapes4.sapdevcenter.com/sap/opu..

 

Please have a look at the Sample Services and how to use them. The system is only for consumption of OData Services not for building new ones. If you are interested in building new services you have the option of choosing one of the other systems on the previous entry page. We will not hand out authorizations for developing any ABAP on this system.

 

What is on the System?

The System is an SAP ECC (Enterprise Core Components) filled with some Demo Data. You do have read and write authorizations to all modules but are restricted form accessing administrative functionality. Furthermore the system allows you to access the development tools but does not allow development itself. Debugging with viewing permissions is however possible.

 

If I need help

If you have a question about Gateway feel free to post a message in the forum.  Please also consider subscribing to the Operations Announcement Document where we will post information on the status of the system.

 

If I forgot my username or password

Go back to the sign-up form. The form will find you in the system and allow you to reset your user. Once your user is reset you will get an email confirming that the password has been reset.

SAP Gateway Demo System

$
0
0

Get ready for a test-drive with SAP Gateway

For developers who want to get a first impression of SAP Gateway we are offering free access to an online demo-system. If you are a registered SCN users, you can get access to several sample services exposed by the latest SAP Gateway 2.0. You can use your favorite development environment or just a web browser to connect to the demo landscape via a URI. You will see how easy it is to access a processes and data from a standard SAP Business Suite system (ERP, CRM, ...) via open protocols as they are offered by SAP Gateway.

 

 

 

Sample Gateway Services

We have selected initially a number of typical services, that you can use to familiarize yourself with the technology. Over time we will offer additional services covering more and more use cases.

 

The current services are provided with URIs for:

  • the Consumption Model, which points to the OData service
  • the metadata document, which is a complete XML representation of a Consumption Model
  • a sample query operation. This URI already returns a list of sample data from the underlying IDES system. It is possible to edit the URI for a different query
  • a sample read operation, providing details for one data object. Also this URI can be altered.

 

Please see the list of already available services below.


GWSAMPLE_BASIC - EPM based sample service

This sample service is based on the Enterprise Procurement Model (EPM) and is available as standard for SAP Gateway Foundation (component SAP_GWFND) as of SAP NetWeaver Release 7.40 Support Package 08.

For further details please check the documentation and this presentation.

 

The sample service GWSAMPLE_BASIC supports the following scope:

  • CRUDQ operations for the entity types BusinessPartner, Contact, Product, SalesOrder, SalesOrderLineItem
  • Value help entity types derived from search helps
  • Deep insert for SalesOrder and SalesOrderLineItems
  • Generic expand
  • Batch
  • Count
  • Inlinecount, skip, top
  • Filter
  • OrderBy
  • Usage of SAP annotations
  • Usage of complex types
  • Function imports
  • Navigation properties

 

Example usage:

 

RMTSAMPLEFLIGHT - Flight Example (legacy service)

This sample service will expose data from the good old Flight sample application, which is available in SAP NetWeaver since many years.

 

 

GWDEMO - EPM (legacy service)

This example is based on the SAP Enterprise Procurement Model (EPM). EPM is a test application that serves as a proxy for SAP’s realworld Business Suite applications. It is based on real-world business logic and scenarios that can be used for different testing approaches and is equipped with the means to generate meaningful test data.

Below list contains only links to QUERY operations. The READ operations are implemented to use a unique GUID to retrieve the data. We are re-generating the data on a regular basis to have a consistent data-set and the GUIDs are changing each time.

 

Multiple fields selection in odata service url

$
0
0

Hi experts,

Can any one tell me the url for multiple fields in gateway client .

?$filter= ..................

Please help me in this regard.

Thank you

Regards

pavan


Annotations: Path to an association

$
0
0

Hi,

 

in my Gateway I have the following entities:

 

Object

  • Id (Key)

 

ObjectAttribute

  • Id (Key)
  • Attribute (Key)
  • Value

 

Both are connected via association (Object has ObjectAttributes).

 

Now I want to describe in annotations how the object model looks like (what attributes are available) and where to get the data from (Correct Path in the ObjectAttributeSet).

But I don't know how to solve this.

 

My Annotations should look like this:

 

<Annotations xmlns="http://docs.oasis-open.org/odata/ns/edm" Target="ZDA_TEST_02_SRV.Object">

  <Annotation Term="zda.test.Groups">

  <Collection>

  <Record Type="zda.test.Group">

  <PropertyValue String="Group 1" Property="Label"/>

  <PropertyValue Property="Fields">

  <Collection>

  <Record Type="zda.test.GroupField">

  <PropertyValue String="Name" Property="Label"/>

  <PropertyValue Path="?????????" Property="Attribute"/>

  </Record>

  </Collection>

  </PropertyValue>

  </Record>

  <Record Type="zda.test.Group">

  <PropertyValue String="Group 2" Property="Label"/>

  <PropertyValue Property="Fields">

  <Collection>

  <Record Type="zda.test.GroupField">

  <PropertyValue String="Country" Property="Label"/>

  <PropertyValue Path="?????????" Property="Attribute"/>

  </Record>

  </Collection>

  </PropertyValue>

  </Record>

  </Collection>

  </Annotation>

</Annotations>

 

Is this possible?

And is there any reference for using paths in annotations?

 

In general: I think there is very less documentation for Annotations... =/

 

Thanks for your help!

 

Regards,

Dominik

error in creating odata using custom function module

$
0
0

Hi experts,

I have created a custom function module for creating va21.

quotation is creating with the custom function module.

I have used the same function module in odata abap services,

i used the below code in gateway client url.

please check whether it is right or wrong?

 

/sap/opu/odata/SAP/ZODATA_QUOTATION_SRV/INPUTSet?$filter=DocType eq 'QT' and SalesOrg eq 'vks1' and DistrChan eq 'v4' and Division eq '21' and PurchNo eq 'test' and Material eq '32' and ReqQty eq '0000000000013'and CondType eq 'PR00' and PartnNumb eq '0000000022'

 

It is showing 200 message but it is failed to create.

 

Can any one suggest me how to test the service in gateway client url.

Please do the needful.

thanks and regards

pavan

SEGW enhancing an already generated service

$
0
0

hi all,

 

I've an OData service generated via SEGW.

It has only one entity which i created by importing from a DDIC structure.

I went ahead and redefined all my read, write methods and the service works fine.

 

Now i want to enhance the structure

     - Add a new field to the structure

     - Change the data element of an existing field

 

After making these changes to the structure, how should i enhance the entity in SEGW?

Option 1: Do I have to delete the already created entity and recreate a new entity from this enhanced structure?

Option 2: Or do I've to add the new fields to the existing entity manually and also make changes to the field properties based on the new data elements?

 

When i regenerate, would i lose the custom code that i've written in the EXT classes.

 

thanks for the help

~Madan

Business Entity does not exist when mapping to data source via CDS View

$
0
0

Dear Experts,

 

the business entity type does not exist in my system.

i am following the steps and facing a prolem on step 3 - service implementatin.

Creating Odata services out of CDS views

 

the problematic one is as follows:

12-15-2015 6-29-56 PM.jpg

 

the correct one should be as follows:

correct.jpg

 

Do you have any ideas?

i am using ABAP 740 with SP8.

 

regards,

Yueqiang

Unable to Load metadata for a OData Service

$
0
0

Dear Experts,

 

I am facing an issue while loading metadata or executing an OData service in my central hub.I followed many threads on this forum but I have'nt been able to resolve this problem. I have been trying to create an OData service from a BW Bex queryusing the Easy Query approach. So below is the description of the problems being faced.

 

1. While adding a new service, the service gets added but there is this warning at the end of the operation: " Service was created but its Meta data could not be loaded " . As a result the entity set remains empty. I initially thought that this could be a problem with my service so I recreated them many times but still the same result. I also tried creating a Gateway Service instead of the easy query but even that did not work.



2. When I try to Reload Metadata by selecting the service in the /IWFND/MAINT_SERVICE transaction, the operation again fails with the error : "Loading the metadata for service 'XYZ' failed. Check the error log. " When I check the error log, it shows some problem with the user authorization.

Capture.PNG

When I check the application log (/IWFND/ERROR_LOG) in the Gateway system, it shows the following error:

Capture.PNG

 

Same story is repeated when I try to execute the URI from the SAP Gateway Client option. The operartion terminates with an HTTP 500 error saying "User does not have the sufficient authorizations"

 

Just to sure, I also checked the /IWBEP/ERROR_LOG in the BEP system (which in my case is the BW system). This is what the log says

Capture.PNG

 

SU53 logs says nothing about the authorization. My user has S_RFCACL and S_RFC authorizations in the BW system.

 

So can someone please point me in the right direction that where does the problem lies. Is it in my gateway system or in the BW system and which particular authorization can I be missing here .

 

IW_BEP2000010SAPK-20010INIWBEPBackend Event Provider
SAP_GWFND7400012SAPK-74012INSAPGWFNDSAP Gateway Foundation 7.40

 

Thanks in advance :-)

Viewing all 750 articles
Browse latest View live


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