<?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: problem in call transaction method/session method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-call-transaction-method-session-method/m-p/2028495#M416038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi u need to do this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;session name = &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'TFCA' USING BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'A'&lt;/P&gt;&lt;P&gt;UPDATE 'S'.&lt;/P&gt;&lt;P&gt;MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Error_handling&amp;gt;.&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Now all the erronous transactions will be stored in A SESSION..&lt;/P&gt;&lt;P&gt;Now go to SM35 and there u will find ur session..&lt;/P&gt;&lt;P&gt;Now check that session and press PROCESS .. Now u select the foreground processing ... Now u can give correct values for the faulty fields...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike batch input methods using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures. ( But the advantage of CALL TRANSACTION IS FASTER THAN ANY OTHER bdc METHOD , So we have to use this.. for time considerations )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return code from CALL TRANSACTION USING. If the return code is anything other than 0 (SY-SUBRC , Call transactions sets sy-subrc to zero if the transactions is successfull ) , then you should do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write out or save the message table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the BDCDATA table that you generated for the CALL TRANSACTION USING to generate a batch input session for the faulty transaction ( Here u need to use the FM BDC_INSERT to create a session onli for the erronous transactions ). You can then analyze the faulty transaction and correct the error using the tools provided in the batch input management facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the best way for a BDC program to get executed successfully and more efficiently....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;reward if it helps u...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2007 06:54:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-13T06:54:56Z</dc:date>
    <item>
      <title>problem in call transaction method/session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-call-transaction-method-session-method/m-p/2028494#M416037</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;&lt;/P&gt;&lt;P&gt;suppose we are uploading 10,000 records to SAP through call transaction or session.  suppose we found from 3000 -5000 records contain errors how do we process them with out manual interaction  (modification) in both methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;why do we use session method for large data processing and why do we use call transaction method  for small amount of data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know the differences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 06:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-call-transaction-method-session-method/m-p/2028494#M416037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem in call transaction method/session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-call-transaction-method-session-method/m-p/2028495#M416038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi u need to do this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;session name = &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'TFCA' USING BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'A'&lt;/P&gt;&lt;P&gt;UPDATE 'S'.&lt;/P&gt;&lt;P&gt;MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Error_handling&amp;gt;.&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Now all the erronous transactions will be stored in A SESSION..&lt;/P&gt;&lt;P&gt;Now go to SM35 and there u will find ur session..&lt;/P&gt;&lt;P&gt;Now check that session and press PROCESS .. Now u select the foreground processing ... Now u can give correct values for the faulty fields...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike batch input methods using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures. ( But the advantage of CALL TRANSACTION IS FASTER THAN ANY OTHER bdc METHOD , So we have to use this.. for time considerations )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return code from CALL TRANSACTION USING. If the return code is anything other than 0 (SY-SUBRC , Call transactions sets sy-subrc to zero if the transactions is successfull ) , then you should do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write out or save the message table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the BDCDATA table that you generated for the CALL TRANSACTION USING to generate a batch input session for the faulty transaction ( Here u need to use the FM BDC_INSERT to create a session onli for the erronous transactions ). You can then analyze the faulty transaction and correct the error using the tools provided in the batch input management facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the best way for a BDC program to get executed successfully and more efficiently....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;reward if it helps u...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 06:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-call-transaction-method-session-method/m-p/2028495#M416038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T06:54:56Z</dc:date>
    </item>
  </channel>
</rss>

