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

How to use OData SDK PHP create an entity in SAP

$
0
0

Hi,

I‘m using OData SDK PHP to consume the odata in SAP system, I can use this get_entityset from SAP but not able to Create entity in SAP

my PHP code is like this

 

 

<?php
require_once "Z_WE_ASSCOCUSTOPENID_SRV_Entities.php";   //connect    $OData = new Z_WE_ASSCOCUSTOPENID_SRV_Entities
('http://192.168.1.138:8008/sap/opu/odata/sap/Z_WE_ASSCOCUSTOPENID_SRV/') ;
$OData->Credential = new WindowsCredential($_POST["userName"],$_POST["pwd"]);   try
{    //Create a Customer php Object    $OpenId = OpenId::CreateOpenId( "","",$_POST["Name"],$_POST["CustomerName"],$_POST["Code"]);    //inserting Customers object context tracking system    $OData->AddObject('OpenIdSet', $OpenId);   //SaveChange insert the object into data service   $Odata->SaveChanges();
}
catch(ODataServiceException $exception)
{    Echo $exception->getError();
}
?>
{    Echo $exception->getError();
}
?>

I will get the error Undefined property:z_we_asscocustopenid_srv_entities::$nextChange in E:\xx\xx\Context\ObjectContext.php on line 789 Unauthorized

but this property is the ODATA SDK PHP file I never change this

can you help me?


What are File handling in Sap netweaver Gateway odata services in detail?

$
0
0

Hi expers,

 

This is Gowri shankar i am new to sap netweaver gateway services i just want to know about "What are File handling servises in Sap netweaver Gateway odata services in detail? Please understand my query and let me know.

 

Thanks,

Gowrishankar.

odata binding

$
0
0

Hello, this is my first post. I am building app on demo MyFiorri application and I have problem binding data using ODATA. I difined odata in component.js

 

jQuery.sap.declare("sap.ui.demo.myFiori.Component");
sap.ui.core.UIComponent.extend("sap.ui.demo.myFiori.Component", {  createContent : function() {  // create root view  var oView = sap.ui.view({  id : "app",  viewName : "sap.ui.demo.myFiori.view.App",  type : "JS",  viewData : { component : this }  });  // set i18n model  var i18nModel = new sap.ui.model.resource.ResourceModel({  bundleUrl : "i18n/messageBundle.properties"  });  oView.setModel(i18nModel, "i18n");
// // Using OData model to connect against a real service  var url = "http://localhost:8080/serveris/SERVERIS.svc/";  var oModel = new sap.ui.model.odata.ODataModel(url, true, "", "");  oView.setModel(oModel);  sap.ui.getCore().setModel(oModel);  // set device model  var deviceModel = new sap.ui.model.json.JSONModel({  isTouch : sap.ui.Device.support.touch,        isNoTouch : !sap.ui.Device.support.touch,        isPhone : sap.ui.Device.system.phone,        isNoPhone : !sap.ui.Device.system.phone,        listMode : sap.ui.Device.system.phone ? "None" : "SingleSelectMaster",        listItemType : sap.ui.Device.system.phone ? "Active" : "Inactive"  });  deviceModel.setDefaultBindingMode("OneWay");  oView.setModel(deviceModel, "device");  // done  return oView;  }
});

Now, I need to read these data:

 

<feedxmlns="http://www.w3.org/2005/Atom"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xml:base="http://localhost:8080/serveris/SERVERIS.svc/">
<scriptid="tinyhippos-injected"/>

<id>http://localhost:8080/serveris/SERVERIS.svc/Users</id>

<titletype="text">Users</title>

<updated>2014-05-27T18:07:01.403+03:00</updated>

<author>
<name/>

</author>

<linkhref="Users"rel="self"title="Users"/>

<entry>

<titletype="text">Users</title>

<updated>2014-05-27T18:07:01.404+03:00</updated>

<categoryterm="serveris.User"scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<linkhref="Users(0)"rel="edit"title="User"/>

<linkhref="Users(0)/TasklistDetails"rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/TasklistDetails"title="TasklistDetails"type="application/atom+xml;type=feed"/>

<contenttype="application/xml">
<m:properties>
<d:Login>jonas</d:Login>

<d:Passw>saugus</d:Passw>

<d:UserId>0</d:UserId>

</m:properties>

</content>

</entry>

<entry>

<titletype="text">Users</title>

<updated>2014-05-27T18:07:01.405+03:00</updated>

<categoryterm="serveris.User"scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<linkhref="Users(1)"rel="edit"title="User"/>

<linkhref="Users(1)/TasklistDetails"rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/TasklistDetails"title="TasklistDetails"type="application/atom+xml;type=feed"/>

<contenttype="application/xml">
<m:properties>
<d:Login>petras</d:Login>

<d:Passw>pass</d:Passw>

<d:UserId>1</d:UserId>

</m:properties>

</content>

</entry>

</feed>


I made login.view.xml and login.controller.js in which i want ta access these data

login.view.xml

 

<core:View    controllerName="sap.ui.demo.myFiori.view.login"  xmlns="sap.m"  xmlns:l="sap.ui.layout"  xmlns:core="sap.ui.core" >  <Page  title="{i18n>LoginIn}">  <VBox    class="marginBoxContent" >  <items>  <Label text="username" />      <Input               id="nameInput"        type="Text"        placeholder="enter username ..." />  <Label text="Pasword" />   <Input  id="passwInput"  type="Password"  placeholder="enter password..." /><Button text="Prisijungti"   press="handleContinue" />  </items>  </VBox>  </Page></core:View>

login.controller.js

jQuery.sap.require("sap.ui.demo.myFiori.util.Formatter");
sap.ui.controller("sap.ui.demo.myFiori.view.login", {  handleContinue : function (evt) {
// var authinfo = this.getCore().getModel().getData().Users[0];                In this line I should get data  var name = this.getView().byId("nameInput").getValue();    var paswd = this.getView().byId("passwInput").getValue();  if (name == "authinfo.login" && paswd == "authinfo.passw") {  var context = evt.getSource().getBindingContext();  this.nav.to("Master", context);  }  else {  jQuery.sap.require("sap.m.MessageToast");     sap.m.MessageToast.show("there is no such user or bad login data");  }
}
});

 

I hope I clearly described  my problem. Thanks in advance

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

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

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

How to use OData SDK PHP create an entity in SAP

$
0
0

Hi,

I‘m using OData SDK PHP to consume the odata in SAP system, I can use this get_entityset from SAP but not able to Create entity in SAP

my PHP code is like this

 

 

<?php
require_once "Z_WE_ASSCOCUSTOPENID_SRV_Entities.php";   //connect    $OData = new Z_WE_ASSCOCUSTOPENID_SRV_Entities
('http://192.168.1.138:8008/sap/opu/odata/sap/Z_WE_ASSCOCUSTOPENID_SRV/') ;
$OData->Credential = new WindowsCredential($_POST["userName"],$_POST["pwd"]);   try
{    //Create a Customer php Object    $OpenId = OpenId::CreateOpenId( "","",$_POST["Name"],$_POST["CustomerName"],$_POST["Code"]);    //inserting Customers object context tracking system    $OData->AddObject('OpenIdSet', $OpenId);   //SaveChange insert the object into data service   $Odata->SaveChanges();
}
catch(ODataServiceException $exception)
{    Echo $exception->getError();
}
?>
{    Echo $exception->getError();
}
?>

I will get the error Undefined property:z_we_asscocustopenid_srv_entities::$nextChange in E:\xx\xx\Context\ObjectContext.php on line 789 Unauthorized

but this property is the ODATA SDK PHP file I never change this

can you help me?


What are File handling in Sap netweaver Gateway odata services in detail?

$
0
0

Hi expers,

 

This is Gowri shankar i am new to sap netweaver gateway services i just want to know about "What are File handling servises in Sap netweaver Gateway odata services in detail? Please understand my query and let me know.

 

Thanks,

Gowrishankar.

Header Response in Batch Processing

$
0
0

Hello,

 

My Scenario:

Multiple records update is required from the front end. This is achieved via Batch Processing. Upon processing of each record, an update message for each record should be sent back to UI5.


Requirement:

Need to send back the status message to UI for each single record.


Actual Process followed:

Lets say I have 3 records for updating, the sequence of methods called are as below:

1. Change Set BEGIN.

2. Update Entity (Called 3 times)

3. Change Set END.


In Begin method is just redefined and has no code.

In Update entity I am collecting all the individual record in an global internal table of same class.

In End method, calling an RFC to update all 3 records at a time. This RFC returns 3 messages indicating success or failure which needs to sent to UI.


Hence I thought to send these messages by concatenating into single message and send via Header response in method Change Set END as follows:

  1. data:  ls_header               TYPE ihttpnvp. 
  2. ls_header-name = 'my-custom-message'
  3. ls_header-value = 'my_message'
  4. /iwbep/if_mgw_conv_srv_runtime~set_header( ls_header ).

 

Problem:

I am not getting any header response with name my-custom-message.

 

Kindly suggest me to send the messages to UI5 with any corrections to above procedure or an alternative procedure.

 

Note: The header response with above method is only working from method Update Entity and I don't want to call the RFC for each single entity.

 

Regards,

Satish D R

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?

Can an OData Service save the value of a selection?

$
0
0

Hello Experts,

My current question is more like a conceptual question. SAPGateway delivers an OData service with an entity type containing the following Properties:

  • ATNAM
  • ATWRT
  • ATWTB

 

 

The values of this entityset do never change and are as follows:

 

ATNAM

ATWRT

ATWTB

FIORI_PRG

BA

Barcelona

FIORI_PRG

BE

Berlin

FIORI_PRG

HA

Havanna

FIORI_TYP

SE

Sessel

FIORI_TYP

ZW

Zweisitzer

FIORI_TYP

DR

Dreisitzer

FIORI_FARBE

BL

Blau

FIORI_FARBE

BR

Braun

FIORI_FARBE

GR

Grün

FIORI_FARBE

SW

Schwarz

FIORI_BEZUGSSTOFF

ST

Stoff

FIORI_BEZUGSSTOFF

KL

Kunstleder

FIORI_BEZUGSSTOFF

NL

Naturleder

 

 

In UI5-Frontend, the data is consumed in different lists that filter the values of the property ATNAM and display accordingly the values of ATWTB just like you can see it in here: JS Bin - Collaborative JavaScript Debugging

 

Now the question: is it possible for this OData service to “be informed” of the selected value from any of these lists?  (assuming that UI5 can send a value).

Clarification: the service has only the get and getentityset methods redefined.  Or same question formulated differently: can the OData service save the result of a selection of a filtered list?

 

If someone wants to take a look at the metadata, the file can be seen in:  https://goo.gl/pAE4qz

Thank you very much for your support,

Gabriel

Gateway download links from main page

$
0
0

Hello,

 

The gateway download links from the main page of this SCN forum aren't working for me. Where can I get those files?

 

Sincerely,

 

Gabriel

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

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


Dynamically populate values - itab of type complex data type

$
0
0

Hi Everyone,

 

I have a entity which is of complex data type.

 

Is it possible to get columns of itab which of type complex data type at runtime then How can we achieve this.

 

My logic is I will be getting entity columns from different table, for this I designed one dynamic itab and I am getting column component using Assign component statement. till here ok , but this value I have to pass a column name to the itab which has complex data type assigned .

 

 

 

Thanks in advance...

deep entity - Odata using SEGW

$
0
0

Hi Guys,

 

I was trying to create deep entity, I have done with all the steps like associations and navigations and even association sets using segw, but I am able to create associations using manually like creating MPC and DPC classes externally.

 

But when I tried through SEGW, I am able to see metadata, but when I am using JSON object as request body, It is not recognizing Item entityset type as entity, it is simply taking as property.

 

Please do provide me some input on this.I have gone through blogs too.

 

 

Thanks

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

How to implement GET_ENTITYSET for Media Stream

$
0
0

Hi Experts,

 

 

I have implemented GET_STREAM method to download the media entity. When I execute the service as /zservice/photo/$value media steam is getting downloaded.

 

 

I need to implement the GET_ENTITYSET method as well because this will be used in SMP Mobile and from mobile it will need to register the service by calling /zservice/photo. If this method is implemented its throwing "Invalid or no mapping to system data types found" error.

 

Please advise how to implement GET_ENTITYSET. Method doesn't need to return any results.


 

Regards,

Murthy

Cannot select No return in Function import return type kind

$
0
0

Hi,

 

I have created a function import , its for calling an API ,and there is no returning parameter.

 

But I am not able to select the return type kind against the Function import as No return.

 

While trying to generate I am getting an error ' No return is currently not supported by the runtime'.

 

 

Regards,
Vivek.

Viewing all 1657 articles
Browse latest View live


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