<?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 with BDC running in batch mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927220#M1485222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put it in a job and run the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Apr 2010 19:32:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-28T19:32:35Z</dc:date>
    <item>
      <title>Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927219#M1485221</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;I created a BDC program for data upload using  CALL TRANSACTION   statement.  (No open group and close group)&lt;/P&gt;&lt;P&gt;Program is initially designed running in foreground(no screen display) and not a batch job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program logic..&lt;/P&gt;&lt;P&gt;Loop ITAB&lt;/P&gt;&lt;P&gt;          CALL TRANSACTION   ...using bdcdata&lt;/P&gt;&lt;P&gt;                                           MESSAGES INTO messtab. &lt;/P&gt;&lt;P&gt;    IF MESSTAB - NO ERRORS  - If the previous record created successfully &lt;/P&gt;&lt;P&gt;          THEN CONTINUE NEXT RECORD IN THE LOOP.&lt;/P&gt;&lt;P&gt;    ELSE. &lt;/P&gt;&lt;P&gt;              SKIP executing the next records with same material in the ITAB loop  . And continue with different material record from ITAB loop.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my current program logic. &lt;/P&gt;&lt;P&gt;My question - If I want to run this program as BATCHMODE  - What are the changes I have to do in my program ?&lt;/P&gt;&lt;P&gt;Basically how I can run this program in BATCHMODE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advnace for your time.  I appriciate your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Murali M on Apr 28, 2010 9:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 19:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927219#M1485221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927220#M1485222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put it in a job and run the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 19:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927220#M1485222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T19:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927221#M1485223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If we use call transaction (no session create) is it going to work if we run as a background job program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I tried   - I executed as background job and some reason it is failing -  When I check spool results output results - in message tab it is not having any errors but at the same time it is not returning the document number-basically record not created and failing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the same data in foreground with out batch then it will created the record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 19:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927221#M1485223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T19:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927222#M1485224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done this many times with no problem; however, some transactioons are not sutable for batch input because they do not run in the backgraound (no GUI). What transaction are you executing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 20:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927222#M1485224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T20:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927223#M1485225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using C201 Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 20:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927223#M1485225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T20:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927224#M1485226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As there is no error message, it probably stopped when it encountered a commit work. You should use CALL TRANSACTION ... OPTIONS FROM &amp;lt;structure&amp;gt;, set &amp;lt;structure&amp;gt;-racommit = 'X' to tell SAP to continue after commit work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 21:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927224#M1485226</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-28T21:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927225#M1485227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I tried now that options also. &lt;/P&gt;&lt;P&gt;options-RACOMMIT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still its doing same thing.. - no error messages in messagetab and document not created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing how to find out it is triggering the call transaction or not?   Because if it went throught the transaction then there should be error message or document should be created right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Murali M on Apr 28, 2010 11:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 21:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927225#M1485227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T21:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927226#M1485228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; First thing how to find out it is triggering the call transaction or not?&lt;/P&gt;&lt;P&gt;To make sure, add breakpoint to your program, then run it in SM37 with JDBG okcode&lt;/P&gt;&lt;P&gt;&amp;gt; Because if it went throught the transaction then there should be error message or document should be created right?&lt;/P&gt;&lt;P&gt;It should but there may be bugs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 21:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927226#M1485228</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-28T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927227#M1485229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rossi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I goto debug mode from  SM37 with JDBG okcode  It is working fine no issues. Document is creating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think if I am in debug mode that means it is running in foreground right? not a batch job thats why may be it is working.? ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 22:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927227#M1485229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T22:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927228#M1485230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What we are looking for is why the program behaves differently in background. There are a few possibilities that the standard program tests the context: sy-batch (it is set to X in background, or if we run the job using JDBG, it's what we checked), sy-binpt (it is always set to X in both dialog and in background). Recently, someone told us that using option-nobinpt = 'X' (sy-binpt will then have space value) had solved the issue, maybe you can try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About what Rob said previously, if a control is displayed, the program should dump (CNDP_ERROR or something like that), but maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility is that the cursor is not positioned explicitly (BDC_CURSOR "field") although you use a command which is based on cursor position: in dialog, it will go to a default position, but in background it does not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 22:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927228#M1485230</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-28T22:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927229#M1485231</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;When I was doing recording in SHDB for this transaction C201 I selected  'Not a Batch input session' option in SHDB becuase for all other options one of the screen was showing different comparing with actual screen in C201 (second screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my program I already have this code.&lt;/P&gt;&lt;P&gt;option-nobinpt = 'X' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one also not working. Any ideas how to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 05:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927229#M1485231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T05:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927230#M1485232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the program simply tests if there is a GUI connection (function module GUI_IS_AVAILABLE for example), and behaves differently. There can be many cases I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make sure what the problem is, you can do a trace of all procedure calls, and compare them between dialog and background. You can achieve it using SE30, use option "no aggregation" so that to get the list of all procedure calls. For the interactive call, it's easy. For the background job, you should use the "schedule for user/service" button. See [this blog for more information|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17050] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, when you understand exactly what happens, you can decide the right actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 07:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927230#M1485232</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-29T07:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BDC running in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927231#M1485233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked note 142022?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 13:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bdc-running-in-batch-mode/m-p/6927231#M1485233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T13:20:14Z</dc:date>
    </item>
  </channel>
</rss>

