none
SAP Adapter needs an orchestration, why? RRS feed

  • Question

  • Hi,

    we're using BizTalk 2010 and MySAP adapter from the adapter pack 2010. All documentation states that you múst use an orchestration to call RFC's or send/receive IDOC's. However, it is not explained why we must usean orchestration. The examples show very trivial orcehstrations. Why can't the SAP adapter be used in a messaging-only/pubsub scenario?

    thanks in advance,

    Erik

    Thursday, February 24, 2011 12:23 PM

Answers

  • Hi, The samples include Orchestration to depict the end-user scenario,  however  using orchestration is optional. There isn't anything special about SAP RFC/ IDOC scenarios to mandate an orchestration.  You can send messages to The SAP adatpter  using messaging-only/pubsub scenario, just the way you would send to any other Send Port .

    That said, if you want BAPI operations , where you want several  messages in a BAPI transaction to go over the same SAP connection, an orchestration will be required.

    The orchestration  is needed  for corellation and for adding the OPEN?REUSE/CLOSE context properties.


    Rohit Singh
    Thursday, February 24, 2011 1:06 PM

All replies

  • Hi, The samples include Orchestration to depict the end-user scenario,  however  using orchestration is optional. There isn't anything special about SAP RFC/ IDOC scenarios to mandate an orchestration.  You can send messages to The SAP adatpter  using messaging-only/pubsub scenario, just the way you would send to any other Send Port .

    That said, if you want BAPI operations , where you want several  messages in a BAPI transaction to go over the same SAP connection, an orchestration will be required.

    The orchestration  is needed  for corellation and for adding the OPEN?REUSE/CLOSE context properties.


    Rohit Singh
    Thursday, February 24, 2011 1:06 PM
  • Hi Rohit,

    thanks for replying, additional question: how about tRFC -calls? do you need an orchestration for transactional RFC calls?

    thanks, Erik

    Thursday, March 3, 2011 10:24 AM
  • Yes,

    You need  an orchestration, or some sort of other correlation mechanism, which can confirm the TRFC transaction after sending the message by calling RfcConfirmTransID.

    Details of how to make tRFC call using orchestration - 
     http://msdn.microsoft.com/en-us/library/dd788568(v=bts.10).aspx

    However, for sendiong IDOCs using tRFc calls -
     if you set the property "autoConfirmSentIdocs" to true, the adapter will take care of calling RfcConfirmTransID after sending the IDOC.

    Also note that , the logic for sending the RfcConfirmTransID message need not necessarily reside in  and orchestration.
    It can also be done in a messaging-only/pubsub scenario, provided that the publisher takes care of calling RfcConfirmTransID .


    Rohit Singh
    Thursday, March 3, 2011 11:04 AM