http receving failed in T-CODE SEGW
Getting data from SAP backend into Gateway Hub
Dear all,
I am new to Netweaver Gateway. In my landscape the IWBEP component has been installed in the Gateway Hub system. In my custom OData service i want to get the data from my backend SAP ERP system using a BAPI.
I have created my custom OData service with the relevant components and have implemented the service using the BAPI method. While implementing the service i referred to the BAPI method from the SAP ERP backend system using the RFC destination (ABAP connection i.e. connection type 3) to the SAP ERP system created in my Gateway hub.
Now when i test the service, the service document and metadata XML are generated correctly. However when i test the entity set, i find that the data is NOT being extracted from the SAP ERP backend system.
What configuration/settings need to be maintained in the custom OData service so that the service refers to the correct SAP backend system? How does the gateway service determine from which system it should extract the data?
regards
Nitesh
Eclipse: unable to create a Gateway Connection
Installed SW (Frontend)
- Eclipse Juno
- Newest SAP Development Tools from https://tools.hana.ondemand.com/juno (ADT 2.7.5 etc)
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".
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?
Bad Request dude to TextArea length
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,
Thank you.
How to create WebService which has EntitySets inside EntitySet
Hi, I have an application which creates new employees in a company. For that I have a form with multiple form containers (sapui5). Each form container corresponds to a certain abap table in sap system. I would like to know how can I import and map a WebService In NW GW which corresponds to the following entity relationships:
<EmployeeCollection> <Employee> <MainDetails> <Empfirstname></Empfirstname> <Emplastname></Emplastname> ........ </MainDetails> <ContactDetails> <Email></Email> <Workphone></Workphone> ........ </ContactDetails> <FamilyMemberCollection> <FamilyMember> <Firstname></Firstname> <Lastname></Lastname> ........ </FamilyMember> ........ </FamilyMemberCollection> </Employee> .....</EmployeeCollection>
I have Employee collection which can have 0...* Employees. Employee has Entities like MainDetails and ContactDetails AND also Collections like FamilyMembers which can have 0...* FamilyMember entities.
In SAP I dont have a table for Employees, all employee related details are held in different abap tables like MainDetails, ContactDetails or FamilyMembers. The tables are related by Formid field. Now FamilyMember table can have multiple lines with the same Formid (family members of an employee).
I can map a CREATE operation in SEGW for this, IF everything is singular.
What do i need to do differently in GW or Function module to be able to handle insertion of multiple family members into the FamilyMember abap table?
Also, how can I map GetEntity and GetEntitySet oprations so it would output me the kind of structure as i illustrated in the above code?
Discussion Forum for OData Curriculum for SAP Partners
Dear SAP Partner,
This is the discussion forum for OData Curriculum for SAP Partners. Please fill free to start a discussion or to ask a question related to the learning content etc.
How to generate the services when i have IWBEP and GW_CORE in 2 systems.
Hello Experts.
Problem:
I am able to entity, entitysets, association and navigations but unable to generate service.
Creating data of Association Sets.
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.
Need advise on SAP Netweaver gateway/Odata/Eclipse
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
Virus check for ODATA services
Hello All,
Could you help me ,How to activate virus check for particular Odata service in Netweaver Gateway.
Issue:
I have RFC's defined in CRM system. I am trying to create ODATA service in Gateway and call the RFC.
In the RFC, We have written the logic for uploading the files.So we need to Scan the docs before uploaded into server.
Thanks.
Odata Service Creation Using SEGW Transaction
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
Fetch data from mysql database into SAPUI5 application
Hi Experts,
I am trying to fetch data from mysql database into my SAPUI5 application. I follow blog OData producer using Apache Olingo with MySQL, JPA & Tomcat web server but I get an error "The entity has no primary key attribute defined" in Java Resources under the model. Can anyone please help me in solving the error. I attached a screen shot of the error.
Thanks
Himadri
Sap NW
Hi All,
In SICF t code /sap/opu/odata/sap/services... when i am testing the service in browser i am unable to see the json format code.
(all serivices in active mode only) when it ask for credential i giving prorper credentials bit unable to open it.
Thanks in advance.
Manoj.
Function Import POST with multi line text
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
SAP Demo Gateway - ES1
Is ES1 system available? I am trying to access demo gateway system from last few weeks but it is not available. Please let me know the status.
Thanks.
Odata services - metadata not showing
Hi Guys,
I applied my services to quality in both R/3 and gateway, I am able to see my technical services in activate and maintain(/iwfnd/maint_service) tcode and in SICF, everything is fine.
but the problem is I could not able to see any entityset names and relationships when I execute URI with metadata. even I tried with browser
But I could not able to see anything when I am trying to execute with actual URL it is showing error as resource not found 'Entittyset name'.
Thanks for your help in advance.
OData Excel Upload by 'Add File' button in GW_CLIENT gives junk characters
Dear Folks,
Greetings !!
I request your guidance in resolving the "well known" excel upload problem using GUI_UPLOAD in ABAP. I understand that there are large number of threads dealing with the excel upload issue, however I have a psecific question to ask.
I have created an OData service to upload an excel file (Entity type = Media). For testing the same, I am uploading a test MS excel file in the GW_CLIENT using the 'Add File' button. The file gets uploaded but appears as junk characters in the request body. Please refere to the image attached herewith.
I debugged the 'Add File' button and understand that the SAP standard code uses method GUI_UPLOAD of the GUI frontend services class, with Filetype = 'BIN' (hardcoded) to upload the file. The BINARY data received after the GUI_UPLOAD is also correct since I tested this by downloading the same BINARY contents and this creates the same excel file after download. This means that the excel is read correctly by GUI_UPLOAD.
On more debugging and searching in the SCN forums, I stumbled upon an answer by Thomas Jung in a post ( ) stating that the characters uploaded are not JUNK but they are the Native Binary Excel Format which is a propriatery Microsoft format. Therefore when I try to convert the XSTRING of this binary to STRING, the contents are not the excel text contents, instead it is these junk characters.
So, my question is - Is there any way (FM, BAPI, custom code) in ABAP to convert the native binary excel format into readable text?
Any pointers are highly appreciated.
Thank you.
Regards,
Sud
Creating data of Association Sets.
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.
Function Import POST with multi line text
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
Netweaver Gateway : Multiple Output Tables : Odata
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