Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all 2823 articles
Browse latest View live

Some tips on OData url usage

$
0
0

Open Data Protocol (OData)

Definition of OData can be found in below link:

Open Data Protocol - Wikipedia, the free encyclopedia

I would like to share some tips in ODATA usage like when we use a filter to get data or when we use key predicates of the oData url there are some important points that needs to be considered.

 

To pass date field to oData url the below syntax needs to be followed:

https://<system>:<host>/<path>/<service>/<entityset>?$filter=Cdate eq datetime'2014-11-21T00:00:00'

Currency fields / decimal fields can be used as below:

https://<system>:<host>/<path>/<service>/<entityset>?$filter=Price%20eq%20%272.3M%27

https://<system>:<host>/<path>/<service>/<entityset>?$filter=Price eq '2.3M'

In oData the url converts the spaces and special characters to a hexadecimal code something like below:

Special charactersCode to be used in oData url
'%27
space%20

 

When using special characters like /, +, etc you can't use them directly instead you need to use it with the alternate hexadecimal code for the special character like shown below:

 

Special CharactersHexadecimal Value
+%2b
/%2f
?%3f
%%25
#%23
&%26

 

And when we use a date field with "less than" and "greater than" condition as well as another field with "and" condition in the oData url, then in the method GET_ENTITYSET we generally don't get the filter select option filled and for that to be filled in proper way we will have to do the below trick:

 

https://<system>:<host>/<path>/<service>/<entityset>?$filter=Matnr eq '12342' and (Cdate le datetime'2014-11-21T00:00:00' and Cdate ge datetime'2014-11-20T00:00:00')


Below urls are very informative for oData:

http://www.odata.org/documentation/odata-version-3-0/url-conventions/

http://msdn.microsoft.com/en-us/library/hh166950(v=nav.71).aspx

 

There is an SAP note 1671893 which would be useful for the use of filter.

 

Comments are welcome if this is useful.


Multi-Level Expansion with GET_EXPANDED_ENTITYSET

$
0
0

This blog is based on the idea of expanding Entities linked with Multi-Level Navigation Properties(A->B->C->D) in a single Gate Way  framework call.

 

To get an idea of expanding multiple entities linked with Navigation property in a single ENTITYSET call with $EXPAND, refer to my recent blog at Expand Parent Child Entities in a Single Expansion - GET_EXPANDED_ENTITYSET.

 

Consider below entity relation ship ENTITY A -> ENTITY B-> ENTITY C linked with Navigation properties Entity A to Entity B = AB and Entity B to Entity C = BC. With this blog I am trying to fetch data for all the entities A, B and C in a single call of the gateway framework using below URI call where A is linked to B and B is linked to C via a navigation property. This is like an INNERJOIN on the interrelated Entities linked via navigation properties:

/sap/opu/odata/sap/zmultilevel_exp_srv/EntitySetA?$expand=AB/BC,

this would return data for entity A, B and C in a single Gateway Framework Call which would otherwise be achieved with below 2 Odata Calls:


/sap/opu/odata/sap/zmultilevel_exp_srv/EntitySetA?$expand=AB

/sap/opu/odata/sap/zmultilevel_exp_srv/EntitySetB?$expand=BC


In above entity expansion, you could always use filters based on the entities A and B, However, the way you access the various properties of entities A and B is slightly different.


Say you want to filter data result on the basis of property X of entity A, the above link would be represented as /sap/opu/odata/sap/zmultilevel_exp_srv/EntitySetA?$expand=AB/BC&$filter=X eq <Filter Value>.


However, if you want to filter result set based on property Y of entity B, the link would be represented as

/sap/opu/odata/sap/zmultilevel_exp_srv/EntitySetA?$expand=AB/BC&$filter=AB/Y eq <Filter Value>.


We will consider above situations with the help of Sales Order Data linked with entity relations SalesOrder Header -> Sales Order Items ->Sales Order Schedule Lines


Consider below Entity Structures and Navigation Properties:

Entities.PNG

SOHeader.PNG

SOItem.PNG

SO Item Schedule Lines.PNG

 

   Associations.PNG

Navigation.PNG

Item to Schedule Lines.PNG

 

Redefine GET_EXPANDED_ENTITYSET as explained in the attached snapshot.

Code1.PNG

 

Code2.PNG

The catch here is that, we have to tell the GW framework that we have expanded the Header, Item and Schedule Line entities in a single entity set call and no need to call the child entity set to fetch the the Sales Order Items and Sales Order Schedule Lines. We can do this using parameter ET_EXPANDED_TECH_CLAUSES of GET_EXPANDED_ENTITYSET. Append both the Navigation Property Name(SOHEADERTOITEM/SOITEMTOSCHDLN) in this exporting parameter, which will tell the gate way framework that the child entity has already been expanded and there is no need to call the child entity sets.

 

An important point to not here is that the structure of the output entity set should have fields with Name same as Navigation Property Name(SOHEADERTOITEM and SOITEMTOSCHDLN).  Check structure below.

SOHeaderItemsScheduleLines.PNG

 

Access Scheduel lines data along with Header and Line Items:
https://vmw4462.wdf.sap.corp:44362/sap/opu/odata/sap/ZMULTILEVEL_EXPAND_SRV/SOHeaderSet?$expand=SOHeaderToItem/SOItemToS…

 

With filter on base entity(SOHeader)

https://vmw4462.wdf.sap.corp:44362/sap/opu/odata/sap/ZMULTILEVEL_EXPAND_SRV/SOHeaderSet?$expand=SOHeaderToItem/SOItemToSchdLn&$filter=Vbeln%20eq%20%271%27&$format=json

 

FilterOnHeader_Property_Vbeln.PNG

With filter on Items Entity (SOItem): The catch here is that, you have to fetch the filter from the filter string from IO_TECH_REQUEST_CONTEXT->MO_FILTER->MV_FILTER_STRING.


https://vmw4462.wdf.sap.corp:44362/sap/opu/odata/sap/ZMULTILEVEL_EXPAND_SRV/SOHeaderSet?$expand=SOHeaderToItem/SOItemToS…

SOHeaderToItem_Filter_Vbeln.PNG

 

Kindly share your inputs and thoughts on this.

Maintaining Logs

$
0
0

Hi Experts,

 

      Scenario : There are 10 Sales Order  for logined  customer because of some reason only 9 sales order Details were properly fetched. so i like a make log for that 1 sales order which is not fetched in Gateway server.

 

 

Used below two method to write log

 

   /iwbep/if_sb_dpc_comm_services~log_message(

     EXPORTING

     iv_msg_type   =    'E'    " Message Type

     iv_msg_id     =      'ZMSG_CLASS'    " Message Class

     iv_msg_number =   002    " Message Number

*    iv_msg_v1     =

*    iv_msg_v2     =

*    iv_msg_v3     =

*    iv_msg_v4     =

*  ).

 

Or

 

   data lr_log TYPE REF TO /iwbep/cl_cos_logger.

   lr_log = /iwbep/if_mgw_conv_srv_runtime~get_logger( ).

 

   lr_log->error_log_write(

     EXPORTING

       iv_main_entry = abap_false    " 'X': Only one entry for each session

*     io_exception  =     " Any exception

*     iv_error_info =       " Any data

       iv_msgid       =     'ZDP_MSG_CLASS'    " Message Class

       iv_msgno      =      002    " Message Number

*     iv_msgv1      =     " Message Variable 1

*     iv_msgv2      =     " Message Variable 2

*     iv_msgv3      =     " Message Variable 3

*     iv_msgv4      =     " Message Variable 4

   ).

 

Tcode /IWfnd/VIEW_LOG to view the log but not able to find it .I dont know whether i am looking in right TCode

 

Thanks in Advance

 

Regards,

Jibin Joy

Error Handling in SAP Gateway

$
0
0

Hi Gurus,

 

I have a question on the Error Handling Methods in SAP Gateway. Can you please help here.

 

Scenario: I have a successful/Warning message and I want to log into Apps log (IWFND/APPS_LOG) in a Hub Deployment model.

 

We can raise the Technical exception  / Business Exception using /IWBEP/CX_MGW_TECH_EXCEPTION and /IWBEP/CX_MGW_BUSI_EXCEPTION.

But I think we should not raise an exception if the log is of type Success / Warning.

 

Can you please help here?

 

Thanks & Regards,

Mohamed Meeran

SAP Netweaver Gateway 7.4 Cross-Site Request Forgery protection

$
0
0

We are currently developing new services using SAP Netweaver Gateway 7.4 and have come accross the Cross-Site Request Forgery protection mechanism.

 

I've got a couple of simple questions regarding this :-

 

(a) Can we disable the need for it ?

(b) If we were to use a get service to retrieve a token how long does the token last for ?

 

Any help appreciated.

 

Mike

Association Navigation not working - IW_BEP SP09

$
0
0

Hi ,

 

we have created association , association set and Navigation properly but still its not working.

 

Recently we moved our code from a system which has IW_BEP SP08 to SP09 , in SP08 it was working perfectly but not now.

 

Also i found that if i delete the associations and try to generate the project , still i can see the Associations in MPC class ( DEFINE_ASSOCIATIONS)

 

and if i create new ones , they are not getting reflected in the class as well.

 

Another problem is , sometimes the classes are shown locked by user and we have to go to SM12 and release the locks for the classes. this issue we are facing in IW_BEP SP09

 

 

 

Is there any sap notes released by SAP to solve this problems ?

 

 

Thanks

 

Yashpal Gupta

Are the SAP Gateway Addons non modifiable?

$
0
0

Last week a customer that planned to start with SAP Fiori asked for an SAP official statement whether the SAP Gateway Addons are non modifiable.

 

Strangely enough ...

 

I wasn't able to find such an official statement.

 

 

We therefore changed our central SAP Note 1569624  - Installation/Delta Upgrade of SAP NW Gateway 2.0 accordingly which now finally states:

"All the Gateway 2.0 parts are non-modifying components ( GW_CORE 200,IW_CNT 200 IW_CBS 200 IW_FND 250 IW_BEP 200 and IW_SCS 200 )and can also be installed on a Netweaver 700 EHP3 systems or Netweaver 730 EHP1 system based on the import conditions."

 

 

Please note that with SAP NetWeaver 7.40 the SAP Gateway functionalities GW_CORE, IW_FND and IW_BEP are shipped with the software component SAP_GWFND which is part of SAP Basis of SAP NetWeaver 7.40. As a result no separate statement like the one mentioned above is needed anymore for 7.40 based systems.

 

So if your customer are also asking (this very valid) question you can refer them to the note that I have mentioned above.

 

Best Regards,
Andre

 

Notification Error : Connection IWBEP_ODATA_OD_PUSH not Found

$
0
0

Hi,

 

  When i was implementing Subscription and notification referring  Pushing Notifications Made Easy!!! : Push a Notification in Gateway Hub but getting an Exception  'CX_BGRFC_INVALID_DESTINATION'  for IWBEP_ODATA_OD_PUSH .

   "IWBEP_ODATA_OD_PUSH"  Connection is not present in Gateway Server (Verified using T-Code SM59 ).

 

Can i know how to create IWBEP_ODATA_OD_PUSH connection in Gateway HUB  or else any other alternative .

 

 

Regards,

Jibin Joy


DEVELOP AN E2E INTEGRATION SCENARIO WITH SAP GATEWAY, SAP HANA AND SAPUI5

$
0
0

Introduction

 

In our d-code hands-on session INT260 the particpants created a SAP Fiori-like application end-2-end. This included the creation of the required OData service from scratch, making use of a CDS view (Core Data Services) from HANA. The SAP Fiori-like application itself was a SAP UI5 application which was to be generated using the new SAP Web IDE.

 

Though this was a 4h hands-on session our plan is to provide a short video that shows the most important aspects for those that were not able to join or just want to have an overview what needs to be done here.

 

The result is a 5 minutes video that will soon be uploaded to our YouTube channel.

 

Demo Flow

 

OData service development

 

In our demo we will create a simple OData service having just one entity set for business partners based on a CDS view that is accesible from the ABAP stack. As described in more detail in the following document New Data Modeling Features in SAP NW ABAP 7.4 SP5 "CDS entities are integrated into the ABAP Dictionary and ABAP language using the same infrastructure which exists for classical Dictionary views."

 

 

Development Flow Picture CDS View.png

 

1. Data Model Defintion

 

00:17


The whole process starts with the creation of a Service Builder project.

 

00:37

 

Here, as a first step, we import a DDIC structure which is based on a CDS view.

 

2. Service Implementation

 

01:17

 

After having created an entity type and an entity set based on importing the corresponding DDIC structure the service implementation is performed by mapping the business entity (the CDS view) to the entity set.

 

Steps mapping CDS view.png


02:01

 

After having done the mapping via drag and drop the service implementation is generated without the need to write a single line of code.

 

Map CDS View.JPG

 

After having performed the service implementation the project is generated and the service is registered in the backend.

Press Generation Button.JPG

3. Service Maintenance

 

02:20

When the runtime artifacts have been generated (step 2) the service is also registered in the backend system and can now be published via the Service Builder in the connected Gateway Server (Hub) system.

 

Publish service on the hub.JPG

 

 

02:41

A first test is done using the SAP Gateway client.

 

test using GW CLient.JPG

Generation of a SAP Fiori like application

 

03:24

In our hands-on we used the predecessor of SAP Web IDE to generate a SAP Fiori like application. SAP Web IDE allows amongst others to generate a simple application with a list / detail view.

 

SAP Web IDE Wizard.JPG

 

Testing the application

 

05:35


The generated app is finally tested in the browser.

 

Test generated UI5 app.JPG

The summary is shown at the end of the vidoe(06:02)

How to consume an OData service using OData Services Consumption and Integration (OSCI)

$
0
0

Updates

 

  • 26.11.2014
    • added SAP Note 2038379 as a prerequisite
    • added link to constraints

 

Constraints

 

Please be aware of the constraings listed in SAP Help.

 

OData Services Consumption and Integration - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library

 

Overview

 

In this How-To Guide we want to describe how to consume the Odata sample service from  http://services.odata.org/ that supports read write access.

 

 

Since SAP NetWeaver Gateway does not support V3 of OData we will use the V2 version of this service. The service document of the V2 version is accessible via this link

 

http://services.odata.org/V2/(S(xuh52ptttgitgrkbtjzk1o31))/OData/OData.svc/

 

Prerequisites:

 

  • This scenario has to be implemented on a Gateway Server where also the AddOn IW_BEP is deployed or on a Gateway Server running on SAP NetWeaver 7.40.
    The reason is that the Odata Lib that is part of the hub components is needed for consumption of the 3rd party OData service. This prerequisite is automatically fulfilled by a SAP Netweaver 7.40 SP2 and higher system since the software component SAP_GWFND contains the functionalities of IW_FND, GW_CORE and IW_BEP.
  • This scenario needs to run on SAP NetWeaver Gateway 2.0 SP6 or higher or SAP NetWeaver 7.40 SP2 or higher
  • You have to apply SAP Note 2038379

 

 

Let's start with the configuration on SAP NetWeaver Gateway:

 

Step 1: Create an RFC destination

 

We first have to create a RFC destination of type G with the following technical settings:

 

Target Host: services.odata.org

 

In our example this RFC destination is called ODATAORG.

 

Please note that you might have to configure a proxy server.

 

01_RFC_Destination.PNG

 

Step 2: Create a System Alias

 

Now we have to create a System Alias that will be using the above created RFC destination. We call this System Alias OCI_NORTH and configure it such that the flags "Local GW" and "For Local App" are activated.

 

02_System_Alias.PNG

 

Step 3: Generate OData Service in SAP NetWeaver Gateway

 

On a SP6 system you have to run transaction /IWBEP/OCI_SRV_GEN.

 

Service Namespace = V2/(S(xuh52ptttgitgrkbtjzk1o31))/OData/

Service Name = OData.svc

 

and acitvate the check box "Configure Gateway Model and Service".

 

Choose appropriate names for MPC, DPC, Model and Service and a package (here $TMP)

03_IWFND_OCI_SRV_GEN.PNG

 

 

This registers the service in the backend (which is identical with the hub system).

 

Step 5: Activate Service using /IWFND/MAINT_SERVICE

 

We register the service in the hub and choose the Technical Service Name ZOSCI_RW_TEST_SRV and register it for the System Alias OCI_NORTH.

 

 

04_IWFND_MAINT_SERVICE.PNG

 

Step 6: Test the service

 

We can now test the service using the Gateway Client /IWFND/GW_CLIENT. You can simply press the push button GATEWAY CLIENT in the Activate and Maintain Service transcation.

 

We enter the following URI in the Gateway Client

 

/sap/opu/odata/sap/ZOSCI_RW_TEST_SRV/Products(0)

 

and then press the push button "Use as request".

 

05_GW_CLIENT_USE_AS_REQUEST.png

 

Now change the URI to

 

/sap/opu/odata/sap/ZOSCI_RW_TEST_SRV/Products

 

and the HTTP method to

 

POST

 

and change the values for

 

ID from "0" to "1000"

Name from "Bread" to "Toast"

 

and press Execute.

 

06_Entry_created.PNG

 

 

The HTTP status code 201 indicates that a new entry has been created in the collection "Products" and the created entry is shown in the HTTP response window.

 

You can now verify it also in a new browser window:

 

http://services.odata.org/V2/(S(xuh52ptttgitgrkbtjzk1o31))/OData/OData.svc/Products(1000)

 

07_Result_in_browser.PNG

XML format is not showing in http respose

$
0
0

Hi

 

 

I have created one project, while executing in other systems except mine its showing XML code in http response .

 

 

But while executing in my PC XML format not showing, json format is showing , is there any settings to do .

 

 

 

Thanks

oData Filtering

$
0
0

Hi all,

 

I have created a oData service with an entityset which is giving desired result.

 

http://XXX:8000/sap/opu/odata/sap/zeban_final1_srv/EBANMAINMODSet

 

One record of the same is as follows -

 

<entry>

        <id>http://blr-mt-erpdq.mul.manipal.net:8000/sap/opu/odata/sap/zeban_final1_srv/EBANMAINMODSet('10004446')</id>

        <title type="text">EBANMAINMODSet('10004446')</title>

        <updated>2014-11-27T11:17:52Z</updated>

        <category term="zeban_final1_srv.EBANMAINMOD" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

        <link href="EBANMAINMODSet('10004446')" rel="self" title="EBANMAINMOD"/>

        <link href="EBANMAINMODSet('10004446')/PRTOSERVICELINEITEMS20" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOSERVICELINEITEMS20" type="application/atom+xml;type=feed" title="PRTOSERVICELINEITEMS20"/>

        <link href="EBANMAINMODSet('10004446')/PRTOLINEITEMS20" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOLINEITEMS20" type="application/atom+xml;type=feed" title="PRTOLINEITEMS20"/>

        <link href="EBANMAINMODSet('10004446')/PRTOCOMMENTMOD10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOCOMMENTMOD10" type="application/atom+xml;type=feed" title="PRTOCOMMENTMOD10"/>

        <link href="EBANMAINMODSet('10004446')/PRTOSERVICELINEITEMS10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOSERVICELINEITEMS10" type="application/atom+xml;type=feed" title="PRTOSERVICELINEITEMS10"/>

        <link href="EBANMAINMODSet('10004446')/PRTOCOMMENT10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOCOMMENT10" type="application/atom+xml;type=feed" title="PRTOCOMMENT10"/>

        <link href="EBANMAINMODSet('10004446')/PRTOATTACHMENTLIST10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOATTACHMENTLIST10" type="application/atom+xml;type=feed" title="PRTOATTACHMENTLIST10"/>

        <link href="EBANMAINMODSet('10004446')/PRTOAPPROVAL10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOAPPROVAL10" type="application/atom+xml;type=feed" title="PRTOAPPROVAL10"/>

        <link href="EBANMAINMODSet('10004446')/PRTOLINEITEMS10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PRTOLINEITEMS10" type="application/atom+xml;type=feed" title="PRTOLINEITEMS10"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOSERVICELINEITEMS20" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOSERVICELINEITEMS20" type="application/xml" title="PRTOSERVICELINEITEMS20"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOLINEITEMS20" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOLINEITEMS20" type="application/xml" title="PRTOLINEITEMS20"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOCOMMENTMOD10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOCOMMENTMOD10" type="application/xml" title="PRTOCOMMENTMOD10"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOSERVICELINEITEMS10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOSERVICELINEITEMS10" type="application/xml" title="PRTOSERVICELINEITEMS10"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOCOMMENT10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOCOMMENT10" type="application/xml" title="PRTOCOMMENT10"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOATTACHMENTLIST10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOATTACHMENTLIST10" type="application/xml" title="PRTOATTACHMENTLIST10"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOAPPROVAL10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOAPPROVAL10" type="application/xml" title="PRTOAPPROVAL10"/>

        <link href="EBANMAINMODSet('10004446')/$links/PRTOLINEITEMS10" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/PRTOLINEITEMS10" type="application/xml" title="PRTOLINEITEMS10"/>

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

                <d:Field5></d:Field5>

                <d:Field4></d:Field4>

                <d:Field3>10,000.00</d:Field3>

                <d:Field2>INR</d:Field2>

                <d:Field1>1G</d:Field1>

                <d:PrDate>PR Date - 14.11.2014</d:PrDate>

                <d:Wiid>000000609940</d:Wiid>

                <d:BsartTxt>Purchase Requisition Type - MGE NON-IT STNDRD PR</d:BsartTxt>

                <d:EkgrpTxt>Purchase Group - Facilities+Projcts</d:EkgrpTxt>

                <d:AfnamTxt>Requisitioned by - koti</d:AfnamTxt>

                <d:ErnamTxt>Created by - 11002013</d:ErnamTxt>

                <d:BanfnTxt>PR No. - 0010004446</d:BanfnTxt>

                <d:BstypTxt1>Purchase Document Category - B</d:BstypTxt1>

                <d:WerksTxt>Plant - MaGE</d:WerksTxt>

                <d:Banfn>10004446</d:Banfn>

                <d:Bsart>N-IT</d:Bsart>

                <d:Werks>1000</d:Werks>

                <d:Bstyp>B</d:Bstyp>

                <d:Ernam>11002013</d:Ernam>

                <d:Erdat>2014-11-14T00:00:00</d:Erdat>

                <d:Username>11000628</d:Username>

                <d:Afnam>koti</d:Afnam>

                <d:Menge>3.000</d:Menge>

                <d:Preis>10000.00</d:Preis>

                <d:BstypTxt>000000609940</d:BstypTxt>

                <d:Peinh>1</d:Peinh>

                <d:Ekgrp>160</d:Ekgrp>

            </m:properties>

        </content>

    </entry>

 

Now, I want to have a filter query like follows -

 

http://XXX:8000/sap/opu/odata/sap/zeban_final1_srv/EBANMAINMODSet?$filter=Banfn eq '10004446'.

 

It should give only the above record as output.

 

But instead it is giving all the records again.

 

Require your suggestion on how to solve this issue.

 

Regards,

 

Subhabaha Pal

After execution rest url, it is not displaying code in xml format

$
0
0

Hi, 

     

      After execution of REST url, i am getting code in json at right part of the window but it is not displaying code in xml format at right  part of the window.any help will be greatly appreciated..

 

 

xml.png

 

Thanks..

Need help in integrating Portal with SAP Gateway

$
0
0

Hi,
I am a newbie to SAP Netweaver Gateway, and need help in the below mentioned issue:
we have recently installed the SAP Netweaver Gateway system in our development landscape.
I am trying to create a iview to launch the Gateway system.
In our current scenario, we have access links in our SAP Portal (transaction iviews) to launch ECC, SRM system etc.
And i am trying to achieve a similiar access link to launch the Gateway system.
Can i do this by the means of creating an iview?
any help would be highly appreciated.

 

 

Regards,
J

 

Tags & Message was edited by: Jitendra Kansal

Extending Fiori Application: Odata extension

$
0
0

Hi There,

 

I am trying to extend Timesheet application using Odata extensions to hook some validations around start/end time/duration fields.

Now to begin i wanted to ensure a custom Odata services can be actually called from my Fiori application. So steps i followed

 

1) Create a new project in SEGW and select Redefine Odata, selected SRA002_TIMESHEET and created

Select Redefine Odata png.png

2) Since wanted to see this working... i DID NOT implement any method.. I generates the project and registered in system. All successfully generated and registered

Question: Do we HAVE to implement at least one method for OData extension to work?

 

3) Create a Fiori extension project on Eclipse and on assign custom Odata.  This is again skeleton project and i just changed a label to see this working.

Question: Master Collection should be the same as Standard Application MasterCollection.. or we need to use a new one?

Eclipse Componentjs.png

 

4) I create required Fiori launchpad entries to add to user launchpad. and i can launch application. But... the it does not like the OData change.

Fiori Run Error.png

5) Error Logs: does not releave much.. apart from the fact that .. request Url seems to be all over..

Error Log.png

 

Any help will be appreciated !!

 

Thanks a lot.

 

Regards,

Sudhir


URI to call method CREATE_DEEP_ENTITY

$
0
0

Hi Expertise

 

 

   I am new Odata services, I need help in calling

 

  CREATE_DEEP_ENTITY method of DPC_EXT class 

 

   Consider  my parent entity set name as  :- EMP_DET    & my child entity set EMP_SALARY   & navigation name EMP_SALARY_NAVIG

 

  So help for building URI to call method

 

 

  Thanks ...

Featured Content for SAP Gateway

$
0
0
Develop an E2E Integration Scenario with SAP Gateway, SAP HANA and SAPUI5
Andre.png

Posted by Andre Fischeron November 24, 2014

Creation OData service from scratch, making use of a CDS view (Core Data Services) from HANA; generating SAP Fiori-like application using the new SAP Web IDE

SAP Gateway and API Management Footprints at TechEd Berlin and Outlook for the Final Day
Ning-Jing Gao

Posted by Ning-Jing Gaoon November 13, 2014

A busy day for SAP Gateway team at TechEd && d-code Berlin. Check out the highlights here

Simple Step-by-Step SAP-Gateway Service Guide
Arshad Shaikh

Posted by ARSHAD SHAIKHon November 2, 2014

More details here on how to create a simple OData service to perform basic operations including media and deep entities

Release Information & Constraint Notes for Gateway Developer Tools
Amit Nigam

Posted by Amit Nigamon October 16, 2014

Follow this blog for latest software updates, enhancements, new features, bug-fixes, etc.

See More: Recently featured content for SAP Gateway

X-CSRF-Token Value not coming in REST Client

$
0
0

Hi All,

 

I am trying to fetch the value of X-CSRF-Token using the REST client. Any how it always coming blank.. and showing Response Headers has been hidden.

 

GET is returning required application and executing the service.

 

"Response headers Headers panel has been hidden"

 

 

X-CSRF-Token.png

 

 

Please advice how we can get token value or un-hide the panel to get value.

 

 

 

Thanks

Rajesh

$batch not displaying data

$
0
0

Hi i m new to odata services

'

 

I m using $batch to do multiple operation in single URI

 

 

Its showing status code- 202  

                                  - Accepted

 

 

But its not showing output .

 

 

I have attached screenshot below & also how to multiple operations, now i m only using get method

 

 

Help me regarding this

 

 

Thanks

Multiple attachments through Gateway

$
0
0

Hi All,

 

Please suggest how to send multiples through SAP Gateway. I have already tried to send a single file, its working.

 

Thanks,

Saurabh

Viewing all 2823 articles
Browse latest View live


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