This website is not affiliated with, sponsored by, or approved by SAP AG.

SAP to BizTalk RFC Call

Interfaces (ALE, IDOC, RFC, EDI etc.)

Moderators: thx4allthefish, Snowy

SAP to BizTalk RFC Call

Postby energed » Tue Jan 17, 2006 8:22 am

Hi,
I have BizTalk orchestration which uses port that is registered to SAP GW. We try to use RFC call. I always get FUNCTION NOT IMPLEMENTED-message from SAP (RFC schema has been imported FROM SAP and we use it in orc). So i made this SAP receive location, but i don't know what is the right way to call BizTalk FROM SAP. We use GW as destination but what is function name in BizTalk to call? We have tried orchestration and port names but nothing.
I think i have missed some important step.

Thanks.

energed
 
Posts: 2
Joined: Tue Jan 17, 2006 8:20 am

Postby bsmuehmer » Thu Jan 19, 2006 3:31 pm

First some questions:
  • Is Your port registred in SAP? Transaction "SMGW", Menu->Connected Clients ... You should see Your ProgramID (I have to check my notes in the office for the right term).
  • Did You check the BAPI with the transaction "SE37" and supplied the ProgramID for the destination? (Again I have to check some of my notes.)

Here are some notes about what I did on some BTS<->SAP projects:

The easiest way to provide an external BAPI interface is to use the "SAP .Net Connector"; actually the BTS2004 "Microsoft SAP Connected" uses the "SAP .Net Connector" (Version 1.x, not 2.x) as well.

What I did, was to use an Windows Service "hosting" the generated "proxy" (or server stub). From there I "inject it into" the BTS. Actually I started with the "file drop pattern"... :-)

Another way would be to "expose" an orchestration as WebService and let SAP consume the WSDL... but I believe this needs some ABAP programming or XI stuff (I am just a middleware guy on the Windows side).

You can also use the "SAP .Net Connector" to interface IDOCs in both directions with a little drawback: You have to work with those flat-file IDOCs... personally I don't like them too much, especially with SAP being able to do IDOCs in XML and BAPIs with SOAP.

If You need to get XML-IDOCs from SAP, things are quite different and pretty easy: starting with 6.40 (or was it 6.20) SAP can send XML-IDOCs using HTTP/POST. Either You try to setup the BTS HTTP (receive) Adapter or program a little IIS handler for more control.

To sum it up:
  • The "SAP .Net Connector" is a very nice "library". If You depend on XML Input/Output You have to do some additonal work to convert XML into the BAPI "parts" (or the other way).
  • If You like XML,HTTP-POST and SOAP, SAP Systems - even without XI - offer You quite some features... You have to google some time to get enough information about it... many consultants can't help You, because they don't know this "new stuff"!


I hope this helps a bit...
bsmuehmer
 
Posts: 4
Joined: Thu Jan 19, 2006 3:06 pm
Location: Nürnberg, Germany

Postby energed » Fri Jan 20, 2006 8:00 am

Thanks bsmuehmer!

That was something i was wondering.

Microsoft promises that using mySAP for BizTalk it is easy/possible to receive RFC calls but it seems that that is not the case. You cannot create receive-send SAP port. Only Send or Receive port is possible.

I also came to conclusion that we have to do server stub to receive these RFC calls and inject this information to BizTalk.

We don't want to use IDocs because they are 'heavy' to use =). At least so i was told by SAP guys.

Thank you very much.
energed
 
Posts: 2
Joined: Tue Jan 17, 2006 8:20 am

Postby gkauffman » Wed Sep 27, 2006 8:57 am

Hello!!!

I'm new here and saw your question related to a Biztalk issue.

I already made some implementations using BTS and SAP.

If you still having some doubt please don't hesitate to contact me.

Hugs,
Gustavo Kauffman
PP / MM / Basis / Abap / IDOC Consultant
gustavo.kauffman@gmail.com
gkauffman
 
Posts: 9
Joined: Wed Sep 27, 2006 8:42 am

Postby dannyR » Wed Oct 25, 2006 12:39 am

Hi Guys,

does anyone of you know how one can debug a bapi called from BTS?

The only way I know is to 'create' a infinite loop in the bapi, and then debug it on the SAP side.

Is there no way to do this from BTS?

danny
danny (dot) roussel (at) italosuisse (dot) com
dannyR
 
Posts: 61
Joined: Fri Nov 25, 2005 8:29 am
Location: Europe, Belgium, Komen

Postby gkauffman » Wed Oct 25, 2006 6:12 am

Hello Dan,

No, unfortunatelly there no way do tho this from BTS.

You can create the "infinite" loop or develop a .Net Application and, then, try do debug here.

Hugs,
Gustavo Kauffman
PP / MM / Basis / Abap / IDOC Consultant
gustavo.kauffman@gmail.com
gkauffman
 
Posts: 9
Joined: Wed Sep 27, 2006 8:42 am


Return to Interfaces

Who is online

Users browsing this forum: No registered users and 7 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.