<?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: To run a program in batch mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161510#M994973</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;SY-BATCH &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X if the ABAP program is running in the background, otherwise space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Batch Input &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-BINPT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X while a batch input session is running and when an ABAP program is called using &lt;/P&gt;&lt;P&gt;CALL TRANSACTION USING, otherwise space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS FROM in the CALL TRANSACTION USING statement can set SY-BINPT to space either for&lt;/P&gt;&lt;P&gt;the entire duration of the program, or at the end of the BDC data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-BINPT is always space during a CATT procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2008 11:36:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-11T11:36:16Z</dc:date>
    <item>
      <title>To run a program in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161509#M994972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to creaet a program to run in batch mode to update anln1 and anln2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen : company and cost center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to read z table&lt;/P&gt;&lt;P&gt;update anln1 and anln2 ( from table anla )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me how to write a program in batch mode and update....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 11:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161509#M994972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: To run a program in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161510#M994973</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;SY-BATCH &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X if the ABAP program is running in the background, otherwise space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Batch Input &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-BINPT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X while a batch input session is running and when an ABAP program is called using &lt;/P&gt;&lt;P&gt;CALL TRANSACTION USING, otherwise space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS FROM in the CALL TRANSACTION USING statement can set SY-BINPT to space either for&lt;/P&gt;&lt;P&gt;the entire duration of the program, or at the end of the BDC data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-BINPT is always space during a CATT procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 11:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161510#M994973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T11:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: To run a program in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161511#M994974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Schedule the program using a variant to run in background from transaction SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 11:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161511#M994974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: To run a program in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161512#M994975</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;Write the entries logic with the condidtion like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after selecting the required data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-batch = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now update the required table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even you can put the select statement also after if condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now go to SM36 and define the Job with Program name or any other name.&lt;/P&gt;&lt;P&gt;Under Job condition select the execution mode/time of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have mentioned the sy-batch condition , your program will work only for Back ground mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ravi Sankar.Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 12:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-a-program-in-batch-mode/m-p/4161512#M994975</guid>
      <dc:creator>ravisankara_varaprasad</dc:creator>
      <dc:date>2008-07-11T12:25:47Z</dc:date>
    </item>
  </channel>
</rss>

