In this blog we will be discuss how to use IDoc receiver adapter in SAP BTP Integration Suite with a simple scenario. We are using S/4 HANA on-premise as the receiver system.
Define/configure partner profile, partner number, port if not yet setup. In this blog I’ll touch setup that relate to integrate to SAP BTP Integration Suite only.
Choose register service then execute. If the object already registered an error notification will be appear.
B. Setup webdispathcer & Cloud Connector
You need setup /configure connection from webdispatcher to your S/4 HANA system. If not yet settle. Then setup virtual mapping in cloud connector to your webdispatcher. I’ll not be explain about it in detail here. But there is a blog as example how to setup virtual mapping in SAP Cloud connector that you can read (link here).
II. Develop an iFlow with simple scenario
A. Message Mapping
In our iFlow there is a local process with label ‘MappingIDoc’. Double click on it and go to message mapping part.
Let say we use IDoc BATMAS03. In this step we will map data came from third party to IDoc BATMAS03.
There are some important fields in the target mapping structure that should be filled (IDOCTYP, MESTYP, SNDPOR, SNDPRT, SNDPRN, RCVPOR, RCVPRT, RCVPRN).
Open node EDI_DC40. Fill @SEGMENT with constant value 1’ TABNAM with value EDI_DC40. Fill all fields above.
IDOCTYP = IDoc type
MESTYP = Message type
SNDPOR = Sender port
SNDPRT = Sender partner type
SNDPRN = Sender partner number
RCVPOR = Receiver port
RCVPRT = Receiver partner type
RCVPRN = Receiver partner name
Then map all fields in source structure to target structure based on your requirements.
B. IDoc connection configuration
Go to lable 'request reply 1' then click IDOC connection.
Click ‘connection’ tab.
Fill some parameter that required.
hostname is the virtual host that you define in SAP cloud connector
port is the virtual port that you define in SAP cloud connector
300 is your SAP client number
After fill all requirement parameters. Let's move to processing tab.
There are 3 type for determination SAP Message ID.
C. Content modifier with label ‘IDoc Reponse’
In our Iflow there is content modifier with lable ‘IDoc response’. Actually this is optional. I put it because I need to capture or record the IDoc number that generated in S/4 HANA as key and keep in custom header property. So, later we can tracking the data.
After I run try to send data this is the result in SAP BTP Integration Suite Message Monitor Processing.
Note: If you want to know how to setup custom header property in SAP BTP Integration Suite, you can refer to this blog (link here).
Now let’s check the IDoc in S/4 HANA. Go to TCode: WE02
Execute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |