In order to successfully setup communication with SAP. You have following configurations.
In terms of the SAP part you need to have following things on SAP side:
· A SAP user with suitable access
· A RFC connection (This will specify the ‘listening’ program running on BizTalk. (SAP transaction SM59)
· A tRFC port which uses the RFC connection defined above. (SAP transaction WE21)
There is also some setup in terms of messages. Assignment of messages to receiving/sending partner…
But this would be down to the SAP team for doing this sort of implementation.
The most important thing from BizTalk point of view is the configuration of the Send and Receive ports.
There for you need to first generate the correct SAP schemas. (See blog post: “Communication with SAP through WCF custom adapter – Generate SAP schemas”).
Note: When generating the SAP schemas, BizTalk will provide you with the correct bindings to setup the Send/Receive Ports.
On the other side, it’s better to cross-check that configuration to be sure that you have the correct setup.
Send Ports
Your URI should look like this:
sap://CLIENT=[SAPClientID];LANG=[LANG];@a/[ServerName]/[SystemID]?RfcSdkTrace=False&AbapDebug=False
ex: sap://CLIENT=235;LANG=EN;@a/10.80.32.3/00?RfcSdkTrace=False&AbapDebug=False
In the SOAP Action header you should specify the action, this action you can find in the configuration of your generated SAP schema.
Double check the configuration of the URI and do not forget to add your credentials to avoid logon problems.
Receive Ports
Your URI should look like this:
sap://CLIENT=[SAPClientID];LANG=[LANG];@a/[ServerName]/[SystemID]?ListenerGwHost=[ListenerGWHost]&ListenerGwServ=[ListenerGWService]&ListenerProgramId=[ListenerProgramID]
ex: sap://CLIENT=235;LANG=EN;@a/10.80.32.3/00?ListenerGwHost=10.80.32.3&ListenerGwServ=SAPGW00&ListenerProgramId=BIZTALK_CODIT
The SAP team has to provide you with the correct variables. Again, do not forget to add your credentials to avoid logon problems.
If you still have issues with enlisting your Receive Locations you should paste following entries in c:\windows\system32\drivers\etc\services.
Services.txt (3.71 kb)
Enjoy !
Glenn Colpaert