Professional Documents
Culture Documents
SAP CPI - Calculator Demo Iflow
SAP CPI - Calculator Demo Iflow
Pallet Functions:
Message Mapping
Adapter:
HTTPS
Tools:
POSTMAN
Input:
<?xml version='1.0' encoding='UTF-8'?>
<root>
<row>
<num1>110</num1>
<num2>20</num2>
</row>
</root>
XSD:
Iflow:
HTTPS Adapter:
SAP CPI: Calculator IFLOW Demo
Message Mapping:
Provide name
MM_Calculator
SAP CPI: Calculator IFLOW Demo
Add Source Message & Add Target Message : then select xsd from your computer
SAP CPI: Calculator IFLOW Demo
Once you selected XSD for both your structure will look like
Select Source ‘root’ and target ‘root’ and click below to map all fields
Select add, it will show on mapping editor and select num1 & num2 from source side and try to map to
add function and connector to target field addition
Test from POSTMAN with input above and see the results
SAP CPI: Calculator IFLOW Demo
Output Payload:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<row>
<num1>110</num1>
<num2>20</num2>
<addition>130</addition>
<subtraction>90</subtraction>
<multiplication>2200</multiplication>
<division>5.5</division>
</row>
</root>
------------------------------------------------------Happy Learning---------------------------------------------------------------