Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sookriti_Mishra
Active Participant
Dear Reader,

This blog post is a part of a series of blog posts related to SAP Cloud Platform Integration. The blogs so far are:

  • My adventure in learning CPI || Part 1 || All about SAP Cloud

  • My adventure in learning CPI || Part 2 || Deployment Models

  • My adventure in learning CPI || Part 3 || Cloud Security

  • SAP Cloud Platform Integration (CPI) || Part 4 || Know your tool

  • SAP Cloud Platform Integration (CPI) || Part 5 || Content Modifier

  • SAP Cloud Platform Integration (CPI) || Part 6 || Configuring Mail Adapter

  • SAP Cloud Platform Integration (CPI) || Part 7 || Maintaining logs by using “Groovy Scripts”, even if the IFlow is not on trace mode


Up next:

  • SAP Cloud Platform Integration (CPI) || Part 9 || SAP Cloud Platform Cockpit || All about Account, Tenant, and User ID


Other CPI blogs:

 

----- ----- ----- ----- ----- -----



 

As shown in the screenshot above, you can reach out to Request Reply from Internal Call --> External Call --> Request Reply.

The question is what is this Request Reply, and in which all scenarios, you can use this functionality provided by SAP, by standard, out-of-the-box.

REQUEST REPLY helps you to call an external system (receiver), and get back a response. In certain scenarios, the Integration Flow is expected to communicate with an external service to retrieve, post, delete, update, the data, and further process the data synchronously. In such cases, the external service exposes the data through REST API, and you can use the Request Reply to connect to that service via HTTP/ OData/ SOAP (SOAP 1.x) receiver adapter.

 

To demonstrate the usage in an instance, I have used the OData receiver adapter, to consumer the data exposed by CPI, via OData Services.

IFLOW:



1. Start Timer: Since there is no Sender System in this instance, I have used a Start Timer, which would trigger the message once it is deployed.

2. Request Reply: The Request Reply doesnot have any configurations attached to it. It needs to be connected to a Receiver system via a OData or HTTP or SOAP adapter. 

3. OData: In the screenshot below, you can see the configuration i.e. the Connection, and Processing.
CONNECTION:



*** For the link, go to your C4C Tenant, go to ADMINISTRATOR --> OData SERVICE EXPLORER > *select a SAP OData SERVICES or a CUSTOM OData SERVICES, and click on VIEW.



- - -



PROCESSING:

Select the required Operation Details [Query (GET), Create (POST), Delete (DELETE), etc, and click on SELECT button.



STEP 1: Connect to System

  • Connection Source: Could be Remote/ Local EDMX File. I always prefer Local EDMX File. All the link and credential details you can entered in the "Connection" step, shall flow here.


STEP 2: Select Entity & Define Operation

  •  Here, select the Entity whose data you want to pull. Sometimes, you won't be able to see all the Entities. In such a case, just increase the Sub Level on the left from 0 to 4 or 5. Now, select the fields whose values you want the IFlow to call from the external system.


STEP 3: Configure Filter & Sorting

  •  This step is not mandatory. You can use to set filter parameters. In my case, I am trying to GET data for only 1 record.

  •  You can also sort the data (Ascending/ Descending), based in the fields of the selected entity.


Now, click on FINISH to generate an .xsd file. You shall understand the use of this file generated in upcoming blogs. Hint: This .xsd file contains the structure of the data coming from the Receiver system. Where and how to use it? Stay tuned with this blog series to know more.

4. Mail: To know how the mail adapter works, click here.

 

Now, save the IFlow, and hit the Deploy Button.

  •  IFlow, deployed!

  •  Message, processed!

  •  Email, received!


Hope you had a good read.

If you wish to know more, or have any queries on this blog, then please feel free to drop a comment.

 

Thanks & Regards,

Sookriti Mishra

 

 

 

 
7 Comments
0 Kudos
Good Blog Sookriti...Please keep it up
0 Kudos
Hi Sookriti,

 

I have deployed my Iflow but from the past many hours it is in starting mode (Using trial version) and Ideally, it should be in started mode by now. Any suggestions will be highly appreciated.

 

Thanks
Woodside_Int
Discoverer
HI Sookriti,

 

I am doing same flow but I want to get the data from Odata and send it as CSV file to SFTP location. Could you please forward next part of this flow as after request reply I have taken the XML to CSV converter but it is showing me the error that it need XSD.
0 Kudos
HI Sookriti,

Is it possible to down load the xsd that generated during odata adapter configuration. I have requirement where I need to directly consume it by PI. Please help  me with it.

Thanks

Jay
fleite
Explorer
Hi jaya123424 ,

yes, you can download XSD. After you configure odata adapter CPI will generate XSD, so you deselect all iflow components and you can see resources tab. CPI keep all files in this place.

Ex:


Resouces tab

JunwooPark
Participant
0 Kudos
Hi Sookriti,

 

I'm using an http adapter and I'm getting an error that requestreply is not available.

I want to send data over http and get a result message like reponsebody with email,

how can I do that?

 

thanks

Leo
former_member607993
Contributor
0 Kudos

sookritimishra

I wanted to check regards X-dynaTrace in http header generated and sent to consumer application. Though headers are disabled at SAP CPI end due to this invalid chars the message is failed to consume at end application.

Flow looks like SAP CPI -> EMP (kafka) -> Consumer app(.NET)

 

Labels in this area