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: 
rasjoshi
Active Contributor
0 Kudos

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.

WrapperIFlow.png

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 -

OdataAdapter.png

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 -

Type System = SAP S/4HANA Cloud SOAP
Message Type = OrderRequest
MAG details from IA as SOAP to 850 mapping details.
Aggrement.png
 
B2B Scenario - 
B2BScenario.png
 
SOAP Payload (dummy data) from Step 1 - 
SOAPPayload.png
 
Step 1b - will read PD data (PD Lookup - Communication Sender) and read interchanged header data from TPM
 
Step 2 - Read data from JMS - SAP_TPM_INBOUND_Q and execute Sender to Receiver Interchange logic and store in JMS - SAP_TPM_OUTBOUND_Q
ReceiverInterfachge.png
 
Step 3 - Read data from JMS - SAP_TPM_OUTBOUND_Q and set receiver wrapper IFlow using property - ${property.SAP_PROCESS_DIRECT_REC_Address}
 
Receiver wrapper IFlow - I'm using Mail adapter to park the EDI message
RxMail.png
 
B2B Message Monitor - 
MsgMonitor.png
 
Hope this gives broader level of insight on how to setup TPM - B2B interface using Process Direct Adapter.
 
 
- Rashmi
 
Labels in this area