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

Fetch data from mysql database into SAPUI5 application


OData Service with multiple entity set for Create SO:

$
0
0

Hi Experts,

 

I want to create a OData service for create sales order, using BAPI_SALESORDER_CREATEFROMDAT2. For this I have created multiple entity/entity sets i.e. I need to pass Order Item, Order Partner and Partner Address as table fields to call above BAPI to Create Sales Order. Kindly suggest how to proceed further, because now I am little confused,  where (In Service Implementation) I should call the BAPI, because now I have three entity sets and of course there is no association in all of them. Probably I may be wrong in approaching "Create Sales Order" OData, Please advice. However, it is clear if I create a custom structure (Consist of mandatory fields from all the three above required entities) and fill all the fields in the single entity/entity set this is achievable, but I want to use the straight BAPI and use the table structures of the BAPI directly.

Thanks & Regards

Saurabh

Erroneous JSON-Timestamps?

$
0
0

Dear fellow developers,

 

I developed an OData service which contains entity types with Edm.DateTime properties. Using that service I receive erroneous results for timestamps when requesting JSON responses, which differ from the result received when requesting XML.

 

Did anyone of you ever experience that?

 

Example request:

..._SRV/MaintenanceNotifications?$filter=ChangeTimestamp ge datetime'2015-07-10T09:00:00'

 

XML response:

...<d:ChangeTimesamp>2015-07-14T09:22:48</(d:ChangeTimesamp>

 

JSON response (request sent with header Accept = application/json):

..."ChangeTimestamp" : "\/Date(1436865768000)\/"...

 

The timestamp from the JSON response corresponds to 2015-07-14 at 11:22:48, which is 2 hours aheadof the value in the XML response.

 

2 hours is also the time zone difference between UTC and CET summertime. System time zone and user time zone are both set to CET.

However, that should not make a difference, as XML responses are already correct?!

 

The System is on NetWeaver 7.4 with SAP_GWFND 740 SP 8.

 

Thank you for any helpful hints,

best regards,

 

Ringo

 

Message was edited by: Ringo Liebscher - added missing example request and responses.

The navigation information 'ErrorCaseSet_ERRORDETAILSET' is not valid

$
0
0

Hello,

 

I created a project in SEGW and used for my header and detail structure for each a different ABAP CDS view. I built an association from the header to the detail which has a 1..1 relationship.

 

When I test this all works ok, e.g. I get data for my both entity sets but if I navigate to my detail it doesn't work:

 

/sap/opu/odata/SAP/Z_IDOC_TOOL_SRV_03/ErrorCaseSet('0000000000000001')/ErrorDetailSet

 

Get this exception:

 

CX_SADL_CONTRACT_VIOLATION


The navigation information 'ErrorCaseSet_ERRORDETAILSET' is not valid


So I'm on WAS 7.40 SP9 and the Gateway is patched to SP12. I tried to look in OSS for this error but found nothing. Is there a good way to troubleshoot this association stuff?.


Here my config:


And the error:

 

The application log etc. doesn't really say more. Somehow it doesn't like this ErrorCaseSet_ERRORDETAILSET. This comes from here:

 

Any idea anybody?

 

Thanks

Stefan

Required Bapi Info

$
0
0

Hi experts,

I am currently working on Odata services and need to know the working BAPI's for the below business process in SAP...

Any kind of help will be appreiciated....

I had also check the standard list of  bapi's from here

list required.JPG

 

regards,

Pavan

Bad Request dude to TextArea length

$
0
0

Good day all..!

Dear friends,

 

In BSP Application i have specified with the  maxLength:254 for TextArea in my Application,

 

oMatrixBooking.createRow(oLabelRequiredTime, oCellBooking1, oLabelRequiredTimeTo, oCellBooking2 );

     //Employee data details - Reporting Place

     var oLabelReportPlace = new sap.ui.commons.Label({

       id : 'LRP-Name',

       text : 'Reporting Place' });

 

     var oTAReportPlace = new sap.ui.commons.TextArea({

       id : 'TARP-Value',

       change:function(){oController.getValueState('TARP-Value');},

       required:true,

       width:'200px',

       maxLength:254,

       tooltip : 'Enter your prefered reporting place',

       editable : true,

       //value : 'Corporate Office',

       rows : 2 });

 

and also in my Netweaver Gateway i have specified Properties -->Precision with 254 even though while creating it in my browser i have an error Bad Request while checking i found,

 

char_len_50.JPG

 

Thank you.

Creating data of Association Sets.

$
0
0

Hi,

 

I'm looking for a way to use Create method for a AssociationSet. Example: To create a PO with line items, I will need to pass line item data and header data and then pass this to BAPI_PO_CREATE

 

Now I need to implement a Gateway service that can create new PO by passing XML payload.

 

I searched for this but mostly all posts are related to retrieving data of a association by implementing method in the DPC_EXT class but I could not find one to create new one.

 

Thanks for your help in advance.

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


Erroneous JSON-Timestamps?

$
0
0

Dear fellow developers,

 

I developed an OData service which contains entity types with Edm.DateTime properties. Using that service I receive erroneous results for timestamps when requesting JSON responses, which differ from the result received when requesting XML.

 

Did anyone of you ever experience that?

 

Example request:

..._SRV/MaintenanceNotifications?$filter=ChangeTimestamp ge datetime'2015-07-10T09:00:00'

 

XML response:

...<d:ChangeTimesamp>2015-07-14T09:22:48</(d:ChangeTimesamp>

 

JSON response (request sent with header Accept = application/json):

..."ChangeTimestamp" : "\/Date(1436865768000)\/"...

 

The timestamp from the JSON response corresponds to 2015-07-14 at 11:22:48, which is 2 hours aheadof the value in the XML response.

 

2 hours is also the time zone difference between UTC and CET summertime. System time zone and user time zone are both set to CET.

However, that should not make a difference, as XML responses are already correct?!

 

The System is on NetWeaver 7.4 with SAP_GWFND 740 SP 8.

 

Thank you for any helpful hints,

best regards,

 

Ringo

 

Message was edited by: Ringo Liebscher - added missing example request and responses.

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

Odata POST operation

$
0
0

Hello Experts,

 

  I am new to SAP Gateway builder and OData service.  I am trying to implement POST operation in the Odata service. I don't know how to pass(XML format/JSON Format) of HTTP Request data to post the data to SAP system via odata service. I red couple of blogs but not understand what kind of data need to pass for POST method. And in all blogs the screen shot which they have shared is blured/non readable.

 

Sample screenshot below

 

gw14.jpg

 

Regards

 

Srikanth S

How to call Function Import from SAP UI5 and get the return object in table?

$
0
0

HI,

      I am New to UI5 .i have created odata gateway service with function Import that will take single parameter as importing parameter and return the data in table.My problem is I am not getting how to consume data from function import in SAP UI5  and how i can display the returned data in ui5 table.

can Any Help me out regarding the issue.

 

 

Regards

LK

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?

SEGW - Create transport request entry for whole project

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


Function Import POST with multi line text

$
0
0

Hi All,

 

We are developing a GW serice for approval scenario and want to use Function Import for Confiming Work Item. We followed the Link http://scn.sap.com/community/gateway/blog/2014/03/06/let-s-code-crudq-and-function-import-operations-in-odata-service#jive_content_id_6_Function_Import_ and created the Function Import for POST method. On Workitem rejection, comment is mandatory and need to pass the comments to function module. Need help on how to pass the comments to function module through the Function import as the comments is an internal table in function module(can accept  any no of lines) and Function import does not supports request body also.

 

Regards,

Satish

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 Generate PDF Based on Multiple Selection from Query's Hit List

$
0
0

Hi All,

 

We have this requirement wherein user should be able to generate PDF file after selecting multiple entries from the hit list (result of a query) by ticking checkboxes. Can you please advise how could this be achieved? We have created OData Service for this one.

 

Thanks,

Jay

Information on SAP Gateway of Hub Architecture

$
0
0

Hello Guys,

 

I have one doubt and need your help on this.

 

I am going to develop an OData using the Gateway  HUB Architecture with backend development.

 

For example : I have created the OData service in my crm backend system (Lets suppose ICD) using tcode SEGW and i am going to register it to system located(Lets say PGD) at DMZ.

 

Now i am deploying  my ui5 application in PGD system.

 

So when i am using my UI5 Application its going to hit the PGD System , from there how the ICD system gets called , where my actual logic has been written and the data is fetched.

 

In other way my question is how the PGD system is going to call ICD System.

 

Please explain.

 

Thanks and Regards,

Vikash

Required Bapi Info

$
0
0

Hi experts,

I am currently working on Odata services and need to know the working BAPI's for the below business process in SAP...

Any kind of help will be appreiciated....

I had also check the standard list of  bapi's from here

list required.JPG

 

regards,

Pavan

Viewing all 1657 articles
Browse latest View live


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