Quantcast
Channel: SCN: Message List - SAP Gateway
Viewing all 6105 articles
Browse latest View live

Re: Configuring SAP Provided oData services

$
0
0

Hi Andre,

 

Thanks for the information.

Why is recommendation to develop our own services rather using these? Is it because they are not based on latest/recomended development approach?

If we use these services is there a framework to extend these services? Like *DPC_EXT classes?

I guess no, please correct me.

 

Thanks in advance

Krishna


NetWeaver Gateway Productivity Accelerator (GWPA) Offline Install

Re: Configuring SAP Provided oData services

Re: How to get HTTP headers from Data Provider Class?

$
0
0

Hello Atanu,

 

Your answer is correct, but unfortunately this code doesn't retrieve value for Authorization header.

 

Best regards,

Yauhen

Re: Filter on date using variable

$
0
0

Hi Roger,

 

It's not clear from the above if your URI actually functions properly with the filtering. Do you have an example of a working URI string?

Before commiting to any expressions that result from a coded algorithm, I would make certain that what I think my result will be would work. So simply test that with a REST client. If that does work, you need to focus on your formatting through code where date60days is supposed to result in a formatted date. If it doesn't work in a client, there could be various causes (for one, filters need specific filter case handlers in most implementations, don't assume it will "just work").

Your URI string should be escaped as well if escaping of requests is not implicit in your client framework. 


Regards


Ron.

Re: Data model design, Do I need a complex entity?

$
0
0

Thanks Krishna. What about update operation? In the scenario, when there is a need to update header info and item data for an existing order and if I have the corresponding put requests in single batch - I may run into a situation where the second put request may fail if the first request is still processing the transaction and still holds a lock.


Any advice on the best way to handle this?


Regards,

Seetharam

Re: Data model design, Do I need a complex entity?

$
0
0

Hi Seetharam,

 

May be you can explain a little more on this.

I may run into a situation where the second put request may fail if the first request is still processing the transaction and still holds a lock.

 

There are two ways to handle this. If both the put requests are part of single change-log inside a batch, then if one fails, other change will be rolled back as well.

 

If they are part of different change-logs then they are independent of failure in the each-other update.

Re: Data model design, Do I need a complex entity?

$
0
0

Hi Kishore,

I will try to explain in detail.

User opens the UI5 applicaiton:

1) Opens the transaction.

2) Updates Header information - For ex: Description and date

3) Adds an item

4) Updates an existing item.

5) Clicks Save.

 

If I have separate entities for Header and Item - I need to create a batch request that has a)Put request for header, b) Post request for an item, c) Put request for an item.

 

I need to have them all in one changeset - correct?

 

My real question is - Put request #(a) creates a lock on the transaction - updates header -releases the lock, Post request (b) creates the lock - adds an item - releases the lock. and Put request(c) creates the lock - Updates the item - releases the lock.

 

I'm trying to know if there is a better way of handling this. Would there be a way to submit all updates in one request and call update API only once(ex-CRM_ORDER_MAINTAIN or BAPI for sales order change) so that I'm not trying to open the transaction in edit mode three times.

 

 

 

 

 

 

Regards,

Seetharam


Re: Data model design, Do I need a complex entity?

/UI2/LAUNCHPAD/ through SEGW

$
0
0

Is there a way to pull the /UI2/LAUNCHPAD/ Gateway Service into SEGW (Gateway Service Builder)?

 

We can see the service implementation through /IWFND/MAINT_SERVICE.  And we can see the $metadata utilizing the client.

 

However, it would be nice to see the entire data model.  Of course all of our custom gateway services are available in SEGW and there are some standard delivered services available in SEGW however, this one doesn't seem to be available.

 

Do I just have the project name wrong, when trying to open?  I am using project name /UI2/LAUNCHPAD/

 

Is there an alternative way to see the entire data model for this service?

Re: /UI2/LAUNCHPAD/ through SEGW

$
0
0

Roger,

 

I too do not have it in SEGW. This might be because it was developed directly using code approach without using SEGW. Package '/UI2/SERVICES_LAUNCHPAD_700' has all the objects related to this service.

 

But if you want to enhance it, I can see it in SEGW Redefine option.

For example: Create a new project -> Right click on Data Model ->Redefine -> oData Service(GW) ->Select the lauchpad service. This will allow you to enhance the launch pad service.

 

regards

Krishna

Re: /UI2/LAUNCHPAD/ through SEGW

$
0
0

Didn't even know that Redefine option was there!!

 

Thanks so much for your quick and accurate reply.

 

One last question, when I generate the Model and Service Definition classes I have errors, when looking into the errors it states for ZCL_ZGW_LAUNCHPAD_02_DPC that /UI2/CL_GW_DP_LAUNCHPAD_00 cannot have any subclasses.

 

Did I not redefine this correctly, or did I miss a step?

Re: Data model design, Do I need a complex entity?

$
0
0

Thanks Krishna,

I will try to implement in the system per your advice and revert to you if I have anymore questions on this topic.

 

I will close this thread if I don't have any more questions in 2-3 days.

 

Regards,

Seetharam

Re: /UI2/LAUNCHPAD/ through SEGW

$
0
0

Unfortunately the Class '/UI2/CL_GW_DP_LAUNCHPAD_00' is defined as 'Final', which means that it cannot be inherited. 'Redefine' functionality depends on inheriting from original implementation classes. You can try raising a message to SAP to unmark it as Final. I do not see any reason to mark it as Final.

 

There is one more option left to enhance the service but it might cause some performance issues.

In the Redefine option there is an option called 'oData Service'. (Last option, without GW in brackets). This can be used to redefine any external/internal oData service. This works by connecting to the oData service using RFC connection of type 'G' (external). See this blog for more details.

SAP Help or SCN Blog.

https://help.sap.com/saphelp_gateway20sp06/helpdata/en/a6/d52d733971414a9fdf6cf188dc9059/content.htm

How to consume an OData service using OData Services Consumption and Integration (OSCI)

Re: /UI2/LAUNCHPAD/ through SEGW

$
0
0

Incident opened to get the class /UI2/CL_GW_DP_LAUNCHPAD_00 unmarked as final.

 

I will update with results of the incident.

 

Thanks so much for your help we can at least now see the data model!!


Gateway builder (SEGW) crashes/closes all SAP GUI sessions

$
0
0

Dear All,

I am experiencing below issue when working with SAP gateway builder. Tcode:SEGW.

 

1.I created a gateway project.

2.Added 2 entity types to the project using Import data model.

3.When choosing both the entity types using (Ctrl +) key and clicked "Delete" key in keyboard , all my SAP sessions are closed abruptly.

 

Did anyone experience this issue?

 

Regards

Prabaharan

Which Version is Trial Gateway system is of ?

Re: Which Version is Trial Gateway system is of ?

$
0
0

Login to the ES1 SAP system. Goto System->Status. Click on the 'Component Information' button. (a zoom glass icon). Here you can see each Software Components version.

 

As of now, ES1 is a Gateway 2.0 SP6 system.

Re: Data model design, Do I need a complex entity?

$
0
0

Hi Seetharam,

 

As per Krishna's recommendation, initiate all the requests within a --changeset from the UI5.

In the Gateway - you can put your logic within CHANGESET_BEGIN - where you can call 'CRM_ORDER_INITIALIZE'. Within the UPDATE_ENTITY methods, you could construct the internal tables  and finally retrieve the Internal tables in CHANGESET_END before calling the 'CRM_ORDER_MAINTAIN/SAVE'.

 

Regards,

Murali

Re: /UI2/LAUNCHPAD/ through SEGW

$
0
0

I had a similar experience too. This was with one of the Fiori Apps - "My accounts" which is attached to the CRM_BUPA_ODATA. I couldnt find any project in SEGW. But it allowed me to redefine and modify the service. Wonder why it was done it had a different approach. The code was also structured very differently when compare to the other OData services.

Viewing all 6105 articles
Browse latest View live


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