<?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: Create Background Job after data saved in module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595928#M1275446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, you can pass the data from the same to an other program and submit it in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_OPEN'
       EXPORTING
            jobname          = gv_jobname
       IMPORTING
            jobcount         = gv_jobcount
       EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   no error required
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit your program with job name and job count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_CLOSE'
       EXPORTING
            jobcount             = gv_jobcount
            jobname              = gv_jobname
            strtimmed            = 'X'
       EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 19:52:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T19:52:51Z</dc:date>
    <item>
      <title>Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595926#M1275444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program that has a start selection screen with material group, you enter your data, execute.  When it has finished you get a ALV of sales order with items where you can make changes to dates and other details and save.  I would like to add a save in background option.  Is this possible? I assume it would be difficult because of the container.. it uses a bapi to save sale orders...&lt;/P&gt;&lt;P&gt;The employees run this job which takes a little while.. at the end of the day.. they go home and of course SAP has timed out.  If they can run it in the background then no problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 19:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595926#M1275444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T19:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595927#M1275445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the requirement there is a manual process involved. If you want to automate it then you need to have the values for the dates &amp;amp; other details which they save. If you have a logic to do that then you can simply add a step to Post the data (I think you mantioed that you have a BAPI) rather than displaying fields for Input. After posting you may display a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Bipin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 19:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595927#M1275445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T19:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595928#M1275446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, you can pass the data from the same to an other program and submit it in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_OPEN'
       EXPORTING
            jobname          = gv_jobname
       IMPORTING
            jobcount         = gv_jobcount
       EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   no error required
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit your program with job name and job count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_CLOSE'
       EXPORTING
            jobcount             = gv_jobcount
            jobname              = gv_jobname
            strtimmed            = 'X'
       EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 19:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595928#M1275446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595929#M1275447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can schedule the jon in background , should not be a problem .&lt;/P&gt;&lt;P&gt;But you can not provide 'SAVE' button functionality in background as once jobn is submitted you will not see the ALV screen anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is once changes are done save the date in another table and then schedule job with these entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 06:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595929#M1275447</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-19T06:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595930#M1275448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to minimize execution time ---&amp;gt; &lt;/P&gt;&lt;P&gt;1.u need to get orders whose details has been changed  by the user, u can use method check_changed_data (or something like ).....&lt;/P&gt;&lt;P&gt;2.update ztable with all new changes of SO ... run BG job at the end of day.....notify users in case of any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 06:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595930#M1275448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T06:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595931#M1275449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I don't want to return to the program.. I cannot use the name and count..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 19:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595931#M1275449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595932#M1275450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned before, if you know what values that need to be updated then you just schedule the report in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Old Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get data&lt;/P&gt;&lt;P&gt;Display Data on ALV&lt;/P&gt;&lt;P&gt;Change data on ALV&lt;/P&gt;&lt;P&gt;Save/Post Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get Data into internal table.&lt;/P&gt;&lt;P&gt;Update the records (fields) with proper values.&lt;/P&gt;&lt;P&gt;Save/Post Data - BAPI&lt;/P&gt;&lt;P&gt;Display Data on ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 19:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595932#M1275450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Background Job after data saved in module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595933#M1275451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry not ALV, but it's a module or screen.  Once you make changes theres a method called g_insdel-&amp;gt;get_modified_rows.  I am taking the modified rows and exporting to memory.  I create a background job then, in the program that I submitting to, I am importing the table and saving with BAPI, etc.. once completed I am closing the job, but I get a return code of 5 or job_nosteps.  There is where I am now.  I should not have to use the JOB_SUBMIT fm once I am in the called program , correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 19:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-after-data-saved-in-module/m-p/5595933#M1275451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T19:55:24Z</dc:date>
    </item>
  </channel>
</rss>

