Skip to Content
0

An issue with the status of 405 (Method Not Allowed) coming from oData NW Gateway service

Feb 01, 2017 at 10:51 PM

810

avatar image
Hi Experts,

I was trying to consume a oData service coming from the service created in an external ECC system into a worklist app created in the web IDE of HANA trial account.

steps that I did

1. added the destionation in the cloud account, tested the connection check works fine

2. created a worklist application from template using the URI of the data service

3. Ran the app and got a 405 Method not allowed error. error.jpgodata-service-while-creating-the-worklist-app-from.jpgdestination-in-cloud.jpg

could you please help me to overcome this error

Thanks

Soumen

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

VIPLOVE KHUSHALANI Feb 02, 2017 at 07:03 AM
0

Hi Soumen Laru ,

Actually the error is in your service, can you please test you service on gateway client before using in the app

thanks

Viplove

Share
10 |10000 characters needed characters left characters exceeded
Soumen Laru Feb 08, 2017 at 12:32 AM
0

Hi guys,

I understood the issue, this is not stopping me from getting the desired result. the method HEAD is not defined in the SAP ECC oData service.

everything fine now. I could manage to display my sales order header and items in the UI5 app.

<mvc:View controllerName="opensap.productlist.controller.launchpage" xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc"
xmlns:semantic="sap.m.semantic" xmlns:footerbar="sap.ushell.ui.footerbar">
<semantic:FullscreenPage id="page" navButtonPress="onNavBack" showNavButton="true" title="{i18n>worklistViewTitle}">
<semantic:content>
<Table id="table" width="auto"
items="{ path: '/SalesOrderCollection', sorter: { path: 'BuyerName', descending: false },parameters: { expand: 'Salesitems' } }"
noDataText="{worklistView>/tableNoDataText}" busyIndicatorDelay="{worklistView>/tableBusyDelay}" growing="true" growingScrollToLoad="true"
updateFinished="onUpdateFinished">
<headerToolbar>
<Toolbar>
<Title id="tableHeader" text="{worklistView>/worklistTableTitle}"/>
<ToolbarSpacer/>
<SearchField id="searchField" tooltip="{i18n>worklistSearchTooltip}" search="onSearch" width="auto"></SearchField>
</Toolbar>
</headerToolbar>
<columns>
<Column id="nameColumn">
<Text text="{i18n>tableNameColumnTitle}" id="nameColumnTitle"/>
</Column>
<Column id="supplierNameColumn" demandPopin="true" minScreenWidth="Tablet">
<Text text="{i18n>tableSupplierColumnTitle}"/>
</Column>
<Column id="webAddressColumn" demandPopin="false" minScreenWidth="Tablet">
<Text text="{i18n>tableSupplierWebAddressColumnTitle}"/>
</Column>
<Column id="lineitemnumber">
<Text text="Line item Number"/>
</Column>
<Column id="unitNumberColumn" hAlign="Right">
<Text text="{i18n>tableUnitNumberColumnTitle}" id="unitNumberColumnTitle"/>
</Column>
</columns>
<items>
<ColumnListItem type="Navigation" press="onPress">
<cells>
<ObjectIdentifier title="{SoId}" text="{BuyerName}"/>
<Text text="{BuyerName}"/>
<Link text="{ToSupplier/WebAddress}" href="{ToSupplier/WebAddress}" target="_blank"/>
<List id="table1" headerText="Line Item Details" width="auto" items="{ path: 'Salesitems'}">
<items>
<ObjectListItem title="{SoItemPos}" type="Active" press="onListItemPress"
number="{ parts:[{path:'GrossAmount'},{path:'CurrencyCode'}], type: 'sap.ui.model.type.Currency', formatOptions: {showMeasure: false} }"
numberUnit="{CurrencyCode}"></ObjectListItem>
</items>
</List>
<ObjectNumber number="{ path: 'TaxAmount', formatter: '.formatter.numberUnit' }" unit="{CurrencyCode}"/>
</cells>
</ColumnListItem>
</items>
</Table>
</semantic:content>
<semantic:sendEmailAction>
<semantic:SendEmailAction id="shareEmail" press="onShareEmailPress"/>
</semantic:sendEmailAction>
<semantic:shareInJamAction>
<semantic:ShareInJamAction id="shareInJam" visible="{FLP>/isShareInJamActive}" press="onShareInJamPress"/>
</semantic:shareInJamAction>
<semantic:saveAsTileAction>
<footerbar:AddBookmarkButton id="shareTile" title="{worklistView>/saveAsTileTitle}"/>
</semantic:saveAsTileAction>
</semantic:FullscreenPage>
</mvc:View>

Thanks

Soumen

Share
10 |10000 characters needed characters left characters exceeded