cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice Issue

Former Member
0 Kudos
57

Hi Experts,

In general we are creating screens in SAP Cloud. Whenever we are enter elements data it stores into repository data, and it generate SAP Studio GUID for the record.

I have a requirement to connect “SAP Studio data” and “SAP System” with webservice.

Need to create one custom button in studio, anyone click on this button it connects with SAP System with repository data record GUID and creates new GUID in SAP System for the same record and come back with new SAP System GUID into SAP studio.

Please help me how to achieve this.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Experts,

- In my scenario, i'm confused to create which type of communication.

  In Studio we have "B2B" and "Application Integration".

  Which one is suitable for my scenario.

- I'm very beginner in SAP Studio, Please guide me how to start webservice coding related to my requirement.

Thanks,

Manohar

Former Member
0 Kudos

If you are not able to achieve success by following the ways mentioned in the documentation as well as with the ways we suggest, then you are probably not implementing them in a right way.

I understand that Studio documentation doesn't have info about everything.

So, here you go for what you asked.

B2B: If you have any communication happening specific to BusinessPartner, then you will have to setup B2B Scenario. For eg., this happens mostly in case of communications with Supplier. Lets say that company needs to raise a PurcahseOrder, it is mostly a B2B message the company sends out so that the message is intended and will be used by Supplier for whom the scenario is created.

Application Integration: This is not a very specific case to any BusinessPartner as such. For eg., you have lot of Store Outlets that sell goods and you want those Invoices to be recorded in the system as soon as related good is sold, then you will have incoming invoices from multiple outlets at once. Scenario is common to all outlets in this case.

These are just examples.

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Manohar,

Did you already had a look into the documentation "Developer Desktop" -> "Web Services"?

Bye,

   Horst

Former Member
0 Kudos

Hi Horst,

Thanks for quick response.

I readout those document.

I tried in my own way, but there is no use.

Help me out.

Regards,

Manohar

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Manohar,

First point:

Do you have a synchronous WebService in your SAP System to create the GUID?

You need the WSDL of this service to define a "External WebService Integration" in the studio.

Bye,

  Horst

Former Member
0 Kudos

Hi Horst,

Thanks for getting back to me.

Below is my requirement complete details. Here two systems one is “SAP Studio”(SAP Cloud Application Studio) and another one “SAP System”.

  1. SAP Studio data having individual ID for each record. This record we call as GUID for SAP Studio
  2. I created a custom button in SAP Studio
  • If any user select record in SAP Studio and click on custom button.
  • Then SAP Studio record data connected to SAP System, and store these values in SAP System (All fields are same in both parties), then generate new ID in SAP System for that record. We call it as GUID for SAP System.
  • New record GUID of SAP System, again reflect in SAP Studio record.

I’m new to SAP and SAP Studio so please help me out.

What is synchronous WebService in SAP System to create the GUID?

Thanks in Advance.

Thanks,

Manohar

Former Member
0 Kudos

For creating a record in SAP System, you must use a synchronous service that is created in SAP System, in the SAP Cloud System.

Every synchronous service will have two important message types.

  • Request Message Type - What you are sending to SAP System
  • Response Message Type - What SAP system is returning back once the call is executed with related request message.

So, how does a service know what to return ???

  • That is defined the its webservice definition file. If you want GUID that is created in SAP System to be sent back, then develop your SAP System's service in that way so that SAP Cloud system can store it in return.

How to execute webservice call and store the response through Studio ???

  • For this, you need to understand what gets created in SAP Cloud system when you define an external webservice(that is of SAP System's) in SAP Cloud system. Whenever you create an external webservice development object in Studio, a library gets created which you can use for making calls and getting responses. For eg., if ZSAPSystem is the external webservice you created, then try accessing its structure in your absl code this way ZSAPSystem.<...>. Intellisense will do the rest.
Former Member
0 Kudos

Hi Srivatsava,

I'm tried in different ways to work on webservice code.

But i'm not succeed. Please help me out.

Thanks,

Manohar

Former Member
0 Kudos

What is the error you are getting? Can you post it here?