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

SEGW: Navigation Property and Parameters

$
0
0

Dear development team,

 

I would like to enhance an existing SEGW-project; the project contains several navigation properties for the calendar handling.

One of the navigation property should be take over a parameter for a reference date.

 

We have the different navigation properties:

 

  • /sap/opu/odata/sap/<service>/StoreProducts(StoreID=<StoreID>,ProductID=<ProductID>)/Weeks
  • /sap/opu/odata/sap/<service>/StoreProducts(StoreID=<StoreID>,ProductID=<ProductID>)/WeeksLastPromotion
  • /sap/opu/odata/sap/<service>/StoreProducts(StoreID=<StoreID>,ProductID=<ProductID>)/WeeksLastYear

 

Is it possible to implement the SEGW-project in that way, that an parameter set at level of navigation property?

 

  • /sap/opu/odata/sap/<service>/StoreProducts(StoreID=<StoreID>,ProductID=<ProductID>)/WeeksLastYear(DateRef=<reference date>)

 

The idea is to set up a reference date for a particular navigation property.

 

Thank you for your feedback.

 

Best regards,

Kurt


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

Error Handling through SAP Gateway

$
0
0

Hi,

 

We have few Update and Create Services being called, once these services are called and the record is updated or created, is there a way to get the success of error messages posted to the front end?

 

Thank you in Advance.

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

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

SAP Netweaver Gateway Demo System

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?

EDM name validation failed for value *******

$
0
0

Hi Experts,

 

I want to create gateway service.

I import two parameter to function and export a value.

Firstly I try mapping data query operation but I couldnt succed.Because I get error "no output table is mapped in the query operation".

Then I try to mapping data read operation then, I create funcion import and EXECUTE_ACTION redefination.

But I get error "EDM name validation failed for value *******"

 

 

Plss help me,


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

SEGW - Import RFC (1 input parameter and return tables value)

$
0
0

Dear All,

 

I know the step to create SEGW project by importing RFC/BOR interface.

I try to import a FM which require 1 input parameter and return as tables value.

Import RFC .JPG

ORDER_NUMBER = input parameter

ES_ORDERNUMBER = return single structure

ET_COMPN_HIS[] = return table

 

EntitySet.JPG

EtCompnHisSet field = ET_COMPN_HIS[]

HistorySet field = ORDER_NUMBER + ES_ORDERNUMBER


 

When i execute the following URL in /iwfnd/gw_client/

/sap/opu/odata/SAP/ZTEST5_SRV/HistorySet(OrderNumber='1231238')  = respond status (OK)

/sap/opu/odata/SAP/ZTEST5_SRV/EtCompnHisSet(OrderNumber='1231238')  = respond status (Bad Request)

bad request.JPG

I suspect the error showing that the OrderNumber is not exist in EtCompnHisSet.

 

But my problem is I need to input OrderNumber as input and return EtCompnHisSet.


May i know how to achieve this?

 

Regards

Marcus

Association/Navigation without key properties

$
0
0

Hi Experts,

 

 

I'm trying to make an association/navigation to another Entity, but this for a property without being marked as a key.

 

Example the EPM test service from http://scn.sap.com/docs/DOC-31221

The model: http://scn.sap.com/servlet/JiveServlet/showImage/102-44073-2-246387/Relationen.png

 

I already builded the SalesOrder association/navigation to the SalesOrderItem.

But I cannot seem to create the association/navigation from SalesOrderItem to the Product, in SEGW I always have to define the referential constraint with the key of the Entity. In SalesOrderItem, the productId property is not a key, and I can't imagine that I have to set it as a key.

 

Thanks in advance

 

 

Regards,

Wouter

Fetch data from mysql database into SAPUI5 application

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

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

Need help to creation of ODATA service

$
0
0

Hi Guru,

 

I am new to sap ui5,I need help to develop odata service in SEGW.

Please share any document or pdf for reference.

 

Thanks,

Naresh.K


Handling 'System Down' In Multi Origin Composition

$
0
0

Hello,

We have implemented OData Service using Multiple Origin Composition concept. Where, We had two backend Systems ( for ex: SYS1 and SYS2 ) and a gateway server system (For Ex: GWS). So When we make a call to service, the result comes from both the backend systems into a single feed.

But if one of the backend systems is down, We could not receive the result from the other backend as well. We should receive the result from SYS2 when SYS1 is down. Could anyone help in this regard.

 

Note: We have RFC connection from GWS to SYS1 and from GWS to SYS2.

 

Thank You.

 

Seshu

What do 'GetEntitySet (Query)' & 'GetEntity (Read)' do.

$
0
0

Once we create a project in Netweaver Gateway and follow few other steps to create a OData service, we come across two methods which I think are very important for service implementation perspective.

 

Can some one please tell me what exactly does these two methods do : 'GetEntitySet (Query)' & 'GetEntity (Read)'

 

I am a Java developer / SAP Portal consultant so thinking that these are ABAP specific. But if some one can explain briefly I think I will be able to understand though I have min ABAP knowledge.

 

Thanks in advance.

Error Handling through SAP Gateway

$
0
0

Hi,

 

We have few Update and Create Services being called, once these services are called and the record is updated or created, is there a way to get the success of error messages posted to the front end?

 

Thank you in Advance.

How to create WebService which has EntitySets inside EntitySet

$
0
0

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?

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

Viewing all 1657 articles
Browse latest View live


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