<?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: Two Programs, One Job? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577373#M861151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To combine and enhance the previous answers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can schedule a job with several steps, if one step fails with error message, the subsequent ones will not be executed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first step of the LSMW you can define your object as "periodic". Once you did this, a new menu item will be added at the end of the LSMW menu, "Frame Program for Periodic Data Transfer". You can schedule this in the background and don't have to schedule each single step of the LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 17:02:54 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-03-26T17:02:54Z</dc:date>
    <item>
      <title>Two Programs, One Job?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577369#M861147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following situation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 file on the application server&lt;/P&gt;&lt;P&gt;Step 1 : a program reads this file, edits it and writes it back to the application server&lt;/P&gt;&lt;P&gt;Step 2 : an LSMW picks up the newly edited file and does account posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both steps should be scheduled to run daily. If the first step fails, second should not run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is, they only want one job scheduled for both programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have a 2 step job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to call the LSMW from the program (I did post this question, one person said yes, one said no)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other solutions?&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, 26 Mar 2008 06:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577369#M861147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T06:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Two Programs, One Job?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577370#M861148</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;  Anyway you are having the transaction codes for the upload program and the LSMW. So create a new program which calls the programs sequently as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report znew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : chk as checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction &amp;lt;t-code of first program&amp;gt; or&lt;/P&gt;&lt;P&gt;submit program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if return_code = 0.&lt;/P&gt;&lt;P&gt;call transaction &amp;lt;t-code of lsmw&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then schedule this program. Hence one job for one program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload and download will not work in background mode. So&lt;/P&gt;&lt;P&gt;Use open dataset.. read... close dataset.. Just ensure it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sankar on Mar 26, 2008 8:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 06:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577370#M861148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T06:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Two Programs, One Job?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577371#M861149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to assign a new tcode to the LSMW or can I just call tcode LSMW with the correct Project, Subproject and Object names?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lindy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 07:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577371#M861149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T07:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Two Programs, One Job?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577372#M861150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define a job with more than 1 step with SM36, but in this way, I think you that the 2nd programm will start in any case, and you can't stop it if the first fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To launch a LSMW session, they are more than 1 program to run. Every step of lsmw has his own abap report associated, so you must schedule a stap for each stap of lsmw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to make a simple program that create a job, using f.m. JOB_OPEN, JOB_SUBMIT, JOB_CLOSE, so you can even control if one of the first program fails and then you must not run the  reports for LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 16:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577372#M861150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T16:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Two Programs, One Job?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577373#M861151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To combine and enhance the previous answers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can schedule a job with several steps, if one step fails with error message, the subsequent ones will not be executed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first step of the LSMW you can define your object as "periodic". Once you did this, a new menu item will be added at the end of the LSMW menu, "Frame Program for Periodic Data Transfer". You can schedule this in the background and don't have to schedule each single step of the LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 17:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-programs-one-job/m-p/3577373#M861151</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-03-26T17:02:54Z</dc:date>
    </item>
  </channel>
</rss>

