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

Not getting any response during OData $batch(Chageset) Update request

$
0
0

Dear Experts,

 

We are not getting any response during batch update call. The calls are getting trigger in backend and we were able to process the multiple updates of a change set. At end of the call with in changeset_Process method we are passing the response back and also passing response for each update request of change set. But the result is not showing any response data.

 

Does any one come across this situation?

 

Request & response are attached.

error.jpg

Regards,

Kishore


ABAP field name 'ITM_NUMBER' is not unique

$
0
0

Hello guys,

   

       Recently I had been creating a ODATA Service using standard bapi  i.e BAPI_SALESORDER_CREATEFROMDAT2 ..

and currently creating the data model via 'Import via RFC/BOR' ..

since I want to have two fields referencing same 'abap field' i.e 'ITM_NUMBER' in this case... but I am facing error .. it says

ABAP field name 'ITM_NUMBER' is not unique.

I have attached the error snapshot for clear idea..

1. Pic from properties section..

pic 1.JPG

 

2.Error

pic 2.JPG

a quick reply will be great..

 

Hearty Thanks for read.

 

Regards,

Pavan Golesar

"Wrong format of delivery address:" and "OData Client - notification to - - failed - HTTP" when sending Push Notifications via SAP Backend

$
0
0

Hi experts,

 

Recently I am trying out SMP Push Notifications using this documentation http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40ab6d83-b7b8-3010-65bc-d7a08f0f35f3?overridelayout=true

 

I believe many of the configurations is done. So I decided to try out the SAP Standard Demo Flight Service "RMTSAMPLEFLIGHT" starting page 14 in the document .

 

I did all the tasks from running SubscriptionCollections via rest client to running the sample standard program /IWBEP/R_MGW_PUSH_TEST in the program the sending was apparently successful but when I checked tcode SLG1 for the log I got these messages

 

 

I am not sure what these messages mean but in the case of the delivery address I am not sure why the format is incorrect. Since i tried both format specified in page 15 of the document:

  • urn:sap-com:channel :<RFC destination>:<request URI>
  • http(s)://<host>:<port>/..

 

Here are the records in table /IWBEP/D_MGW_SUB

 

 

 

 

 

I would like to hear from all of you soon


Regards

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

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.

Error faced while executing URL in SAP Netweaver gateway client

$
0
0

Hi Experts,

 

 

We are facing an issue while passing URL as given in the attachment with error in the conversion routine "CONVERSION_EXIT_EXCRT_OUTPUT".

Please let us know if there exists a sap note to fix the given problem.

 

Detailed screenshots of the problem have been attached.

 

Regards,

Saritha

Getting data from SAP backend into Gateway Hub

$
0
0

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

$
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?


Virus check for ODATA services

$
0
0

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.

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

Issue with Data Model created

$
0
0

Hi Techies,

  Issue is "what should be name of navigation property, sales order items entityset".?????    Below is the snap of my structure of service...

ANY SUGGESTION AND CORRECTION WILL BE HELPFUL...

 

Please correct me wherever Its Needed...

fused1.JPG

Keeping in mind that I have implemented GET_EXPANDED_ENTITY,CRETE_DEEP_ENTITY.

ALSO GET_ENTITY ,GET ENTITYSET FOR BOTH (SALES ORDER HEADER AND ITEM).

 

 

METHOD /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY.  TYPES: TY_T_SOITEM TYPE STANDARD TABLE OF ZCL_ZSO_ALL_MPC_EXT=>TS_SALESORDERITEM WITH DEFAULT KEY,         TY_T_SCH TYPE STANDARD TABLE OF ZCL_ZSO_ALL_MPC_ext=>TS_SCHEDULE WITH DEFAULT KEY.
* REPRESENTS FULL SALES ORDER STRUCTURE - HEADER WITH ONE OF MORE ITEMS   TYPES: BEGIN OF TY_S_SO.            INCLUDE TYPE ZCL_ZSO_ALL_MPC_EXT=>TS_SALESORDER.            TYPES: SalesOrderItem TYPE TY_T_SOITEM.            TYPES: ScheduleLine   type TY_T_SCH,          END OF TY_S_SO.

 

 

 

BEST REGARDS,

PAVAN G

Not getting any response during OData $batch(Chageset) Update request

$
0
0

Dear Experts,

 

We are not getting any response during batch update call. The calls are getting trigger in backend and we were able to process the multiple updates of a change set. At end of the call with in changeset_Process method we are passing the response back and also passing response for each update request of change set. But the result is not showing any response data.

 

Does any one come across this situation?

 

Request & response are attached.

error.jpg

Regards,

Kishore

Fetch data from mysql database into SAPUI5 application

GW Redefine - Queries

$
0
0

Hi Team,

 

Few queries in GW service redefintion

 

  • Addition filed in GW
    • Is that mandatory to redefine the opertaion methods to populate the value for New fields added in Entity Type(with DDIC structure reference). For populating the value need to redefine the methods in DPC_EXT and copy the existing code and append one line. Is there a way to achieve without the redefine process
  • Changing Function Module for an Entity Type
    • As mentionded in the previous point, need to redefine the method and change the function module name. Is there a way to do the Mapping in Service implementation

 

Regards,

Satish

Automatic "GET" calls after "CREATE" - how to avoid this?

$
0
0

In my FIORI application, we are calling the oData service to CREATE a new entry in the backend, like in the below code. But after successful "CREATE" I can see through the F12 Network tab in Chrome, that a "GET" call is happening automatically. How can this be stopped? We want to avoid this "GET" call to backend.

 

var CallHistoryModel=this.getView().getModel(),context="",flag="no",passResponse="";

  CallHistoryModel.create("/CallHistorySet",oCallHistory,null,

  function success(oData,Response){

  passResponse=Response;

  CONSTANT.attendees=oData;

  flag="yes";

  context="CallHistorySet(Activityid='"+oData.Activityid+"',Accountid='"+oData.Accountid+"',Employid='"+oData.Employid+"')";

  },


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

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

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?

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.

Locking for custommade UI5 and/or Fiori - applications

$
0
0

Hi developers,

 

 

For an application we built by means of  UI5 elements in combination with OData services - there is also the need of changing data.

So there is a need of locking the data !

 

The usual RFC lock concept doesn't work with LUW  - I have read about  etags (on the dependent entity)  and the softstate (which is more for caching and performance behaviour).

 

 

I was wondering is there are already a solid proven solutions for these kind of  Fiori like applications ? There are not so many "changing" applications.

 

 

We have now built our locking mechanism with token etc - which is waterproof - but is that the future ??

 

 

Regards,

Jeroen

Viewing all 1657 articles
Browse latest View live


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