<?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: Batch Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program/m-p/2066668#M427665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you create work areas of the  type of records mentioned .&lt;/P&gt;&lt;P&gt;After fetching the whole data in some intrenal table you can use these work areas to write tha data into the file using open dataset and transfer command .&lt;/P&gt;&lt;P&gt;after succesful uploading the file you can write update query to update the records to set the flag 'X'&lt;/P&gt;&lt;P&gt;Then you can schedule the program using SM36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you were looking something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2007 00:16:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-14T00:16:42Z</dc:date>
    <item>
      <title>Batch Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program/m-p/2066667#M427664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a batch program that will run once a day and create and send a File formatted according to requirements to a third party on their FTP server &lt;/P&gt;&lt;P&gt;I need to query ZTABLE(KUNNR, VBELN, ERDAT, ERZET, FLAG) for all records where FLAG = space. After the records are written into the file, then I need to update FLAG = 'X'. Can someone please help me get started on this. Any help is greatly appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file contains Name/Address Record, Credit Order Record, Credit Order Sub Total Record and Credit Order Total Record. Each record is separated by carriage return and line feed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The Name/Address Record contains&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Client Number (4)= 9999&lt;/P&gt;&lt;P&gt;Record Type (1)= 'A'&lt;/P&gt;&lt;P&gt;Customer Number (15, left justified, keep leading zeroes, right fill with spaces)= VRKPA-KUNNR&lt;/P&gt;&lt;P&gt;Customer Name = ADRC-NAME1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Credit Order Record&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Client Number (4) = 9999&lt;/P&gt;&lt;P&gt;Client Order Number (22, first 14 characters) = VBAK-VBELN&lt;/P&gt;&lt;P&gt;Order Amount (8) = VBAK-NETWR (use whole dollars only, no cents)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Credit Order Sub Total Record&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Client Number(4) = 9999&lt;/P&gt;&lt;P&gt;Number of Order Records (6) = no of order detail records for this client number &lt;/P&gt;&lt;P&gt;Filler (6) = spaces &lt;/P&gt;&lt;P&gt;Total Order Amount (12) = use whole dollars, no cents &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Credit Order Total Record&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Client Number(4) = 9999&lt;/P&gt;&lt;P&gt;Total Order Amount (12) = use whole dollars only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 22:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program/m-p/2066667#M427664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T22:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program/m-p/2066668#M427665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you create work areas of the  type of records mentioned .&lt;/P&gt;&lt;P&gt;After fetching the whole data in some intrenal table you can use these work areas to write tha data into the file using open dataset and transfer command .&lt;/P&gt;&lt;P&gt;after succesful uploading the file you can write update query to update the records to set the flag 'X'&lt;/P&gt;&lt;P&gt;Then you can schedule the program using SM36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you were looking something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 00:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-program/m-p/2066668#M427665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T00:16:42Z</dc:date>
    </item>
  </channel>
</rss>

