<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tramsactional RFC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293608#M1533097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your document link i found this line.What does this mean ,should i sit and have a cigar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The asynchronous RFC does not support communication with external systems or programs in other programming languages.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means i cannot call asynchronous RFC from .NET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: aditya  sharma on Sep 27, 2010 2:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 12:16:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-27T12:16:20Z</dc:date>
    <item>
      <title>Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293603#M1533092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a RFC that creates Sale orders.&lt;/P&gt;&lt;P&gt;Sale order is entered by excel as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S001  Lininof&amp;lt;1&amp;gt;&lt;/P&gt;&lt;P&gt;S001 LineInfo&amp;lt;2&amp;gt;&lt;/P&gt;&lt;P&gt;S001 LineInfo&amp;lt;3&amp;gt;&lt;/P&gt;&lt;P&gt;S002 Lineinfo &amp;lt;1&amp;gt;&lt;/P&gt;&lt;P&gt;Example in this two sale orders will be created .First one with 3 lineitems and another one will be having a single line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i execute i have maintained internal tables which return errors/messages against individual sale order like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S001 Error 1&lt;/P&gt;&lt;P&gt;S001 Error2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the content of this table if i do not use TRfc.But with TRfc i couldnot.&lt;/P&gt;&lt;P&gt;I created TRfc as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION ZWRAPPERFMSO.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      T_SOINPUT STRUCTURE  ZINPUTSO
*"      T_MESSAGES STRUCTURE  ZMESSQUOTATION
*"      T_SHMESS STRUCTURE  ZOUTPMESS
*"----------------------------------------------------------------------
data: tid type arfctid.
DATA: ETAB TYPE STANDARD TABLE OF ARFCERRORS.
DATA: WA_ETAB LIKE LINE OF ETAB.

CALL FUNCTION 'ZFMSO' IN BACKGROUND TASK
  TABLES
    t_soinput        = t_soinput
    t_messages       = t_messages
    t_shmess         = t_shmess.

          .
CALL FUNCTION 'ID_OF_BACKGROUNDTASK'
* EXPORTING
*   DEST          = ' '
 IMPORTING
    TID           = tid.
*   FNUM          =



COMMIT WORK.

if sy-subrc eq 0.
          .
CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK'
  EXPORTING
    tid                 = tid
  tables
    errortab            = etab
 EXCEPTIONS
   COMMUNICATION       = 1
   RECORDED            = 2
   ROLLBACK            = 3
   OTHERS              = 4.
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.

       loop at etab into wa_etab.
       endloop.

ENDFUNCTION.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am also not familiar where to put exactly FM 'STATUS_OF_BACKGROUNDTASK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: aditya  sharma on Sep 27, 2010 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 10:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293603#M1533092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T10:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293604#M1533093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why did you create a tRFC if you don't use DESTINATION? If i understand correctly you should be using Update FMs instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway are you clear how calling an RFC with BACKGROUND TASK works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 10:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293604#M1533093</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-27T10:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293605#M1533094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A job will be submitted to background and recorded  in RFc system table ARFCSSTATE.&lt;/P&gt;&lt;P&gt;Same is happening Ie Exactly Once concept.But this Exactly once doesnot know what messages are created in T_SHMESS table&lt;/P&gt;&lt;P&gt;after executing target RFC.&lt;/P&gt;&lt;P&gt;When i cannot return succes or failure of my actions.How will i know what is happening ?&lt;/P&gt;&lt;P&gt;Failure what i could conclude means target system is down from trfc perspective.Even if system attempted but failed to create Sale order due to functional error,ie not an error for tRFC.So even in case of any functional error i need back my messages table.&lt;/P&gt;&lt;P&gt;I could not do this with ' BACKGROUND TASK'so whats the fun of parallerl processing. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 10:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293605#M1533094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293606#M1533095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; A job will be submitted to background and recorded  in RFc system table ARFCSSTATE.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;False. In SAP the RFCs are designed to work via dialog work process. I remember participating in a similar discussion in the SDN ABAP forum a few weeks back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; When i cannot return succes or failure of my actions.How will i know what is happening ?&lt;/P&gt;&lt;P&gt;&amp;gt; I could not do this with ' BACKGROUND TASK' so whats the fun of parallerl processing. ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'BACKGROUND TASK' is used to incorporate the tRFC concept. Did you read this documentation: [http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_BACKGROUND_PARA.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Parallel processing you do it via 'STARTING NEW TASK' &amp;amp; you can capture the return messages. Read this: [http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_STARTING.htm#&amp;amp;ABAP_ADDITION_2@2@]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 11:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293606#M1533095</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-27T11:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293607#M1533096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Major issue ,i find working with rfc ie reason why i shifted from synchronous RFC to asynchronous is folllowing.&lt;/P&gt;&lt;P&gt;RFCs retrieve less number of rows than R/3 in comparison incase called from .NET or java.This applies to those RFCs which are not so good in performance either due to burdened queries or nested structures.&lt;/P&gt;&lt;P&gt;I think ,this approach of using asynchronous RFC may deem fit here.&lt;/P&gt;&lt;P&gt;I do not want to take risk of incomplete transactions postings here.Ex i have excel file with 300 record to post and eventually getting posted only 240 sale orders.&lt;/P&gt;&lt;P&gt;Further i find  trFC and asynchronous RFC are quite similar .Plz correct me incase i am wrong and also i am interested to&lt;/P&gt;&lt;P&gt;have everybodys views on RFC handling.&lt;/P&gt;&lt;P&gt;Still i am not very confident if shifting to this approach will work or not because one thing is certain.There is some minimum time till which RFCs run and they suddenly break intermediate.I would say this is really bad/ highly misleading on SAP part that they have not made any acknowledgment for this behaviour on client side and instead giving unpredictable results.I guess increasing some &lt;/P&gt;&lt;P&gt;/ rdisp param limit may help here but still this awkward .Why the context changes and become misleading when we call sap from any other high level language ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP has done a lot of good work on LUW ie complete or not at all following atomicity.But i am not aware whether they have worked on taking complete transactions and posting all of them ?. I mean 300 should not let me see only 240.&lt;/P&gt;&lt;P&gt;I fear it may happen i n updation as it has already happened with me on selection for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas with STARTING NEW TASK, are you sure i will not be in constriant with this /rdisp parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: aditya  sharma on Sep 27, 2010 2:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 12:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293607#M1533096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293608#M1533097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your document link i found this line.What does this mean ,should i sit and have a cigar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The asynchronous RFC does not support communication with external systems or programs in other programming languages.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means i cannot call asynchronous RFC from .NET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: aditya  sharma on Sep 27, 2010 2:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 12:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293608#M1533097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T12:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tramsactional RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293609#M1533098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;But i am not aware whether they have worked on taking complete transactions and posting all of them ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heard about Transaction Integrity via SAP LUW? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Techniques to achieve this are: &lt;/P&gt;&lt;P&gt;1. UPDATE function modules(normal scenario, which i've mentioned in my previous post) &amp;amp; &lt;/P&gt;&lt;P&gt;2. tRFC(for RFC technology) via IN BACKGROUND TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway in case of tRFC you can use the FM 'STATUS_OF_BACKGROUNDTASK' to get the status of the tRFC call. Also i see this statement in the online documentation:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Error messages displayed in SM58 are taken from the target system. To display the text of the message, double-click on the message.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this ring a bell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Sep 27, 2010 6:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;The asynchronous RFC does not support communication with external systems or programs in other programming languages. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ROFL ... Pretty obvious i must say &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 12:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tramsactional-rfc/m-p/7293609#M1533098</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-27T12:28:21Z</dc:date>
    </item>
  </channel>
</rss>

