<?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 RFC question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464248#M1415973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,all:&lt;/P&gt;&lt;P&gt;    i have a question about RFC calling,please check my coding below:&lt;/P&gt;&lt;P&gt;    loop(2 times)&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'&lt;/P&gt;&lt;P&gt;    	  DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;    end loop.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION' or &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'  DESTINATION 'CMS DOC CONNECTION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is:only the last one i did created successfully,and i tried change the coding the blow:&lt;/P&gt;&lt;P&gt;    loop(2 times)&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'&lt;/P&gt;&lt;P&gt;    	  DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;    		EXPORTING&lt;/P&gt;&lt;P&gt;      		wait = 'X'.&lt;/P&gt;&lt;P&gt;    end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;but when the question is how can i rollback the rollback the session(RFC),any one can give me some sugguestion,thxs in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2009 02:51:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-24T02:51:51Z</dc:date>
    <item>
      <title>RFC question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464248#M1415973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,all:&lt;/P&gt;&lt;P&gt;    i have a question about RFC calling,please check my coding below:&lt;/P&gt;&lt;P&gt;    loop(2 times)&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'&lt;/P&gt;&lt;P&gt;    	  DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;    end loop.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION' or &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'  DESTINATION 'CMS DOC CONNECTION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is:only the last one i did created successfully,and i tried change the coding the blow:&lt;/P&gt;&lt;P&gt;    loop(2 times)&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'&lt;/P&gt;&lt;P&gt;    	  DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;    		EXPORTING&lt;/P&gt;&lt;P&gt;      		wait = 'X'.&lt;/P&gt;&lt;P&gt;    end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;but when the question is how can i rollback the rollback the session(RFC),any one can give me some sugguestion,thxs in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 02:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464248#M1415973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-24T02:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: RFC question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464249#M1415974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to change your function module to accept 2 records at a time instead of 1 ( to avoid loop)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 04:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464249#M1415974</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-12-24T04:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: RFC question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464250#M1415975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop(2 times)&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'&lt;/P&gt;&lt;P&gt;DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc eq 0&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wait = 'X'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK' DESTINATION 'CMS DOC CONNECTION'.&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be is its correct i think . other wise explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt; Shankar GJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 04:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-question/m-p/6464250#M1415975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-24T04:09:55Z</dc:date>
    </item>
  </channel>
</rss>

