
Hi Folks,
In previous blog we saw step by step demonstration of SCI - TPM - AS2 to IDoc Interface .
In this blog we will see demonstration of how to use ProcessDirect adapter to create wrappter IFlow. TPM supported adapters are AS2, AS2 MDN, SOAP 1.x, IDoc and wrapper IFlow is required when data is expected from any other communication protocol e.g. SFTP.
For this artical we will create wrapper IFlow to fetch data from S4 via OData call and pass information to TPM via ProcessDirect adapter, execute B2B scenario to post data to target system. I am using ProcessDirect at target side to park payload at end of process.
1. Sender HTTP Adapter used to trigger IFlow, this can be adjusted as Timer also
2. Content Modifier to set APIKey as Header, for real scenario use security material to store details
3. Request-Reply - Odata adapter to fetch data from S4 API /A_PurchaseOrder
I am using SAP Sandbox to fetch data, below are the details -
Address - https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV
Processing Details -
Data transformed from OData to SOAP format using Integration Advisor as my TPM is based on system configurations as SOAP and AS2.
4. Content Modifier - Set Adapter - Message Header
SAP_COM_SND_Adapter_Type = Process_Direct
SAP_COM_SND_If_Message_Header = boolean(//*:MessageHeader[1]/*:RecipientParty[1]/*:InternalID[1])
SAP_EDI_Document_Standard = SAP_S4HANA_Cloud_SOA
4. Process Direct Adapter address = /tpm/b2b/processdirect
Sequence of IFlow execution is as below (Step IFlow from std package of SCI - TPM) -
Wrapper IFlow --> Step 1 --> Step 1b --> Step 2 --> Step 3 --> Wrapper IFlow
I am using same company and tranding partner profile from previous blog and creating new aggrement template where initiator is company with one way communication. B2B scenario with communication Channel Name - Sender Process Direct and Interchange -
References :-
https://api.sap.com/package/CloudIntegrationTradingPartnerManagement/integrationflow
https://api.sap.com/package/ICAPrepackagedContent/integrationflow
#HappyLearning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
15 | |
7 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |