1. Home
  2. Docs
  3. SAP PI/PO Adapter
  4. How to create a synchronous Quote Interface from Skyvva to ECC and response back from ECC to Skyvva

How to create a synchronous Quote Interface from Skyvva to ECC and response back from ECC to Skyvva

This document helps you to learn how to create a Synchronous Quote Interface.

Where all the details of the Quote sent from Skyvva to ECC, and respective Quote no will be created in ECC system and sent back to Skyvva.

Step 1.)

To perform this task, Initially we have to create 2 Custom tables in Skyvva, One for Quote and the other for Quote Line Item. where the Quote_Out and QuoteResponse will use the Quote Table as reference and Quote Line Item will you the Quote Line Item Table as Reference.

Create custom table Quote and Quote Line Item 

Quote Table Custom
Quote Table Custom

 

 

 

 

 

 

Once created with required fields, Create a Integration SAP_OrderManagement.

Integration is a container of all the related Interfaces.

 

 

 

 

 

 

 

 

Note : Once the development is completed for Quote_Out, Quote Line Item and QuoteResponse_IN Under the Integration created (SAP_OrderManagement) we will be Linking the Quote Response message which will carry the Quote no as the response from ECC and Quote Line Item to be in Sync with Quote.

 

Important Steps to be noted while creating Quote.

 

Details Tab

Source/Target Name : Respective created Custom table name : Quote

Direction : Outbound

Keep the Check box checked for Connect with Middle ware tab.

Now query the required fields and do the respective mapping in Skyvva.

Once this is completed similarly create the Quote Line Item Interface with its respective details

 

Quote Line Item

Quote Line Item

 

Once the mapping is done for Line Item go back to Quote Interface for linking and building relationship between Quote_Out and Quote Line Item.

 

Over in Quote go to Related tab and call the Quote Line Item to link it and keep both Header Quote and Quote Item with each other.

As shown below under the ChainedInterfaces we would be calling the Quote Line Item Interface created and deployed.

Quote and Quote Line Item linking
Quote and Quote Line Item linking

 

 

 

 

 

 

 

 

Once this is completed save it from Deployment to Deployed Status and go back to Quote screen of you SF system

Similarly create the Quote Response Interface.

Quote Response

Quote Response

For Quote Response the custom field will be checked as external and this field will be holding the Quote no created in ECC.

Quote Response mapping

Quote Response mapping

Once the Development of Quote Response is completed please go back to the Details Tab of Quote_Out and link the Response Interface in Quote.

As show in the fig below at the Invoke Outbound/Inbound Interfaces, We would be calling the QuoteResponse_IN Interface which will hold response data from ECC and will update the same in Skyvva/Sales Force.

Linking Quote Response with Quote
Linking Quote Response with Quote

 

 

 

 

 

 

 

 

 

After completion of Quote, Quote Line Item and Quote Response Interface go to the Details tab of the Integration SAP_OrderManagement and click on Manage Middleware WSDLs.

Manage Middleware WSDLs

Manage Middleware WSDLs

Once clicked you will get a xsd or wsdl to be created from the SKYVVA browser for selected Interface, Please select Quote_Out and Quote Response where Quote is linked with Quote Line Item and Quote Response will have a different wsdl.

Wsdl Creation Quote
Wsdl Creation Quote

 

 

 

 

 

 

 

 

 

 

We will be using this downloaded wsdl of Quote_Out and Quote Response in SAP PI and get the required mapping done.

 

PI Development 

 

ESR Design Part

Import the downloaded wsdl’s in to SAP PI/PO System.Quote External Definition in PI Request

Quote External Definition in PI Request

QuoteResponse External Definition in PI

QuoteResponse External Definition in PI 

Create the Service Interface for Outbound.

Service Interface with Request and Response
Service Interface with Request and Response

 

 

 

 

Use the created External definition in Message Mapping at source and Idoc Structure at the Target end.

Request Message Mapping Quote
Request Message Mapping Quote

 

 

 

 

 

 

 

 

 

 

 

 

Response Message Mapping
Response Message Mapping

 

 

Once the Mapping is completed Please give the right Service Interface and Idoc Structure in the Operation Mapping and the respective Mapping Program will be seen which we can select

Quote OM Request
Quote OM Request

 

 

 

 

 

 

 

 

 

 

 

Quote Response OM
Quote Response OM

 

 

 

 

 

 

After completion of all the ESR development Activate all the Objects.

ID Configuration Part

Create a Integration Flow which works like a single view of all the connected Objects.

Integration Flow Quote

Integration Flow Quote

 

Create a Sender and Receiver Channel.

Channel is a way of communication between any system of any format to SAP PI/PO system with PI/PO understandable xml format,

Adapters are used to convert the different formatted data to PI understandable xml structured data and Vice Versa.

In our scenario we use a Soap Sender Channel with Module program to accept the Skyvva web service data and module program is used to log the messages.

Sender Soap Channel with Module Program

Sender Soap Quote
Sender Soap Quote

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sender Soap Module Program Quote

Sender Soap Module Program Quote 

 

Receiver RFC Channel

This channel will communicate with the ECC system via RFC and processed the quote.

Receiver RFC channel Quote

Create ICO with respective Service Interface and Operation Mapping are selected.

Integrated configuration Object will be created using the Outbound Service Interface created in ESR and respective namespace, as shown in the below fig,

Integrated Configuration Object is a Object which will integrate all the ID Objects and allow the Integration run successfully, Its Integrates Sender Communication Channel, Respective Receiver Configuration, Specific Operation Mapping Designed in ESR, and Receiver Communication Channel along with Storing of run time payload and Log of the Dynamic flow of the message in Advanced tab of ICO.

ICO Quote

ICO Quote

Once the PI development is completed we have to get the endpoint to this particular interface so that the Skyvva will communicate with PI through this Endpoint which we can configure in Skyvva.

Steps to get the Endpoint of PI’s Quote specific ICO.

After completion of the the Quote Development click on the Integrated Configuration tab of ICO and Select Display WSDL which will display the wsdl and endpoint to be configured we can Import that in the Soap UI and get the Skyvva acceptable Ennpoint.

 

Display WSDL Quote
Display WSDL Quote

 

 

 

 

 

 

 

 

 

 

 

Once the WSDL displayed we can save that in our local system and use that in Soap UI

WSDL Save Quote

WSDL Save Quote

We should copy the URL from SoapUI and update that in the Skyvva Quote_Out Interface adapter configuration.

Here below fig will show you how to create a Adapter in Skyvva with PI O5B endpoint and Credentials.

In the Skyvva tabs click on Adapters and click on New which will allow you to create a new adapter,

A new popup will appear, where we can give the Name of the Adapter and select SFDC2SAPPI, As soon as we select this we will get the other options to enter the Endpoint and PI Credentials.

We can make the respective Server no change and update the endpoint in the respective tab and Credentials.

Quote Adapter

Quote Adapter

Server IP is configured for SAP PI O5B system in Skyvva, for which we will have to use the initial saved url and then continue with our PI ICO specific endpoint, as shown below.

Here is the initial Serve IP URL

http://195.201.104.232:16080/sapo5b/XISOAPAdapter/MessageServlet?

So now we have the Adapter created and respective endpoint configured in Skyvva Adapter, Now we will be opening the Quote_Out and configuring this Adapter in Skyvva.

Adapter Update in Quote_Out
Adapter Update in Quote_Out

 

 

 

 

 

After the PI Development we can test the Interface End to End Via Developer Console

Testing the Object from Developer Console

Go to Developer Console and Select Debug option

Developer Console Debug

Developer Console Debug

Once you select the Debug option you will get a new popup screen where you can give your input and push the message to ECC via PI/PO and you will get the response back from ECC to Skyvva with the Quote no via PI/PO

The below code is used to test the Quote in my Org.

skyvvasolutions.CallOutControl c=new skyvvasolutions.CallOutControl();
c.returnXml=true;
c.returnListRecord=true;
c.isCreateMessage=true;
c.actionDoIntegrate=true;
String[] ids=new String[]{‘0Q06F000002XbNW’};
skyvvasolutions.CallOutResponse r=skyvvasolutions.Iservices.invokeCallout2(‘SAP_OrderManagement’,’Quote_OUT’,ids,’SYNC’, c);
System.debug(‘>>>XML: ‘+r.payloadXML);
System.debug(‘>>>List of Map:’+r.records);

 

 

 

 

After giving the appropriate details in the Developer console click on Execute so that the message will pushed to PI and it bring the response back from ECC.

Once you execute you will get lot of response over there please select Debug Only so that it will give us the required result by using this filter.

Was this article helpful to you? Yes No

How can we help?