<?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: Background Scheduling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705633#M1453066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Niraj ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where should i write this code in PAI module , because when i click 'post all' button it will trigger PAI right .&lt;/P&gt;&lt;P&gt;i tried the code given by you in AT USER COMMAND but it is not working i think not running the report in background .&lt;/P&gt;&lt;P&gt;and one more quetion how u will i get to know that after pressing the post all button it is scheduled in background .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 06:09:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-16T06:09:15Z</dc:date>
    <item>
      <title>Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705628#M1453061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an requirement to schedule a report in background . the report is executing in foreground but i have a button when the report is displayed "post all " so i have to post all the data to the database . so my requirement is when the user will click that "post all" button only then the report should run in background . I tried this in sm35 and sm36 but it did'nt worked . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;P&gt;nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 05:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705628#M1453061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T05:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705629#M1453062</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;try to right the logic in the event AT USER COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. when Post all button is pressed by user in the AT user command event check the fcode.&lt;/P&gt;&lt;P&gt;2. use the function modules JOB_OPEN , JOB_SUBMIT and JOB_CLOSE function module to schedule the required report in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 05:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705629#M1453062</guid>
      <dc:creator>nirajgadre</dc:creator>
      <dc:date>2010-03-16T05:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705630#M1453063</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;If the user want to post the records without getting displayed you can try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Call Transaction in Mode 'N'.    "By this it will update the tables without displaying it to the user

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 05:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705630#M1453063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T05:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705631#M1453064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply but my requirement is not to call a transaction , its like i have huge amount of data to be posted or modify the Z tables .&lt;/P&gt;&lt;P&gt;when the user will click then i want it to be scheduled in background because in foreground it will show a dump saying 'time limit exceeded' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 05:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705631#M1453064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T05:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705632#M1453065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi nikhil&lt;/P&gt;&lt;P&gt;for your requirement just look into the below&lt;/P&gt;&lt;P&gt;case sy-ucomm&lt;/P&gt;&lt;P&gt;when 'postall'&lt;/P&gt;&lt;P&gt;use this link &lt;A href="http://help.sap.com/erp2005_ehp_04/helpdata/EN/fa/096d67543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/erp2005_ehp_04/helpdata/EN/fa/096d67543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it works&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;s.janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705632#M1453065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T06:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705633#M1453066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Niraj ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where should i write this code in PAI module , because when i click 'post all' button it will trigger PAI right .&lt;/P&gt;&lt;P&gt;i tried the code given by you in AT USER COMMAND but it is not working i think not running the report in background .&lt;/P&gt;&lt;P&gt;and one more quetion how u will i get to know that after pressing the post all button it is scheduled in background .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705633#M1453066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T06:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705634#M1453067</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;1. yes you need to write this in to PAI module and check the sy-ucomm.&lt;/P&gt;&lt;P&gt;2. you will able to see the schedule backgound job in SM37 transaction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705634#M1453067</guid>
      <dc:creator>nirajgadre</dc:creator>
      <dc:date>2010-03-16T06:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705635#M1453068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi niraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks , i have written that code in PAI but it is not working . &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHEN 'POSTALL'.
PERFORM postall.
      IF majd = 'ADJUST ADVANCE'.
          PERFORM adjdis.
      ENDIF.
        PERFORM upddistbl.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code but i am confused that whether to write the background function module before the performs or after it .&lt;/P&gt;&lt;P&gt;do you have any idea .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705635#M1453068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T06:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Background Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705636#M1453069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhilarya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that in your case you have two program lets say ZFOREGROUND and ZBACKGROUND (Called inside zforeground using submit statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zforeground has : &lt;/P&gt;&lt;P&gt;1. a input field to browse excel sheet or some file at the selection screen, and &lt;/P&gt;&lt;P&gt;2. button 'post all' to determine the background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your requirement is such that you want zbackground to get scheduled as background job when post all button is clicked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, within the event AT USER-Command, check the sy-ucomm as that of post all button, if so write the following code to schedule the job:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: jobname LIKE tbtcjob-jobname.&lt;/P&gt;&lt;P&gt; DATA :jobcount LIKE tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;        host LIKE msxxlist-host.&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF starttime.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE tbtcstrt.&lt;/P&gt;&lt;P&gt;  DATA: END OF starttime.&lt;/P&gt;&lt;P&gt;  DATA: starttimeimmediate LIKE btch0000-char1.&lt;/P&gt;&lt;P&gt;  DATA: gv_job_dt TYPE sy-datum,&lt;/P&gt;&lt;P&gt;        gv_job_tm TYPE sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  jobname = 'EXCLUSION_LISTING'.&lt;/P&gt;&lt;P&gt;  gv_job_dt = sy-datum.&lt;/P&gt;&lt;P&gt;  gv_job_tm = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Job open&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      delanfrep        = ' '&lt;/P&gt;&lt;P&gt;      jobgroup         = ' '&lt;/P&gt;&lt;P&gt;      jobname          = jobname&lt;/P&gt;&lt;P&gt;      sdlstrtdt        = sy-datum&lt;/P&gt;&lt;P&gt;      sdlstrttm        = sy-uzeit&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      jobcount         = jobcount&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_create_job  = 01&lt;/P&gt;&lt;P&gt;      invalid_job_data = 02&lt;/P&gt;&lt;P&gt;      jobname_missing  = 03.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    "error processing&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert process into job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SUBMIT ZBACKGROUND AND RETURN&lt;/P&gt;&lt;P&gt;                 WITH p_file1 = gv_file_cust_exc   "&amp;lt;----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Parameters which you want to pass to report zbackground from the report &lt;/P&gt;&lt;P&gt;                 WITH p_file2 = gv_file_win_deal                             "------zforeground&lt;/P&gt;&lt;P&gt;                 USER sy-uname&lt;/P&gt;&lt;P&gt;                 VIA JOB jobname&lt;/P&gt;&lt;P&gt;                 NUMBER jobcount.&lt;/P&gt;&lt;P&gt;  IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    "error processing&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  starttime-sdlstrtdt = gv_job_dt.&lt;/P&gt;&lt;P&gt;  starttime-sdlstrttm = gv_job_tm.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      event_id             = starttime-eventid&lt;/P&gt;&lt;P&gt;      event_param          = starttime-eventparm&lt;/P&gt;&lt;P&gt;      event_periodic       = starttime-periodic&lt;/P&gt;&lt;P&gt;      jobcount             = jobcount&lt;/P&gt;&lt;P&gt;      jobname              = jobname&lt;/P&gt;&lt;P&gt;      laststrtdt           = starttime-laststrtdt&lt;/P&gt;&lt;P&gt;      laststrttm           = starttime-laststrttm&lt;/P&gt;&lt;P&gt;      prddays              = 1&lt;/P&gt;&lt;P&gt;      prdhours             = 0&lt;/P&gt;&lt;P&gt;      prdmins              = 0&lt;/P&gt;&lt;P&gt;      prdmonths            = 0&lt;/P&gt;&lt;P&gt;      prdweeks             = 0&lt;/P&gt;&lt;P&gt;      sdlstrtdt            = starttime-sdlstrtdt&lt;/P&gt;&lt;P&gt;      sdlstrttm            = starttime-sdlstrttm&lt;/P&gt;&lt;P&gt;      strtimmed            = starttimeimmediate&lt;/P&gt;&lt;P&gt;      targetsystem         = host&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_start_immediate = 01&lt;/P&gt;&lt;P&gt;      invalid_startdate    = 02&lt;/P&gt;&lt;P&gt;      jobname_missing      = 03&lt;/P&gt;&lt;P&gt;      job_close_failed     = 04&lt;/P&gt;&lt;P&gt;      job_nosteps          = 05&lt;/P&gt;&lt;P&gt;      job_notex            = 06&lt;/P&gt;&lt;P&gt;      lock_failed          = 07&lt;/P&gt;&lt;P&gt;      OTHERS               = 99.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    WRITE:/1 'JOB'                    COLOR 3,&lt;/P&gt;&lt;P&gt;              jobname                 COLOR COL_GROUP,&lt;/P&gt;&lt;P&gt;             'Scheduled in Background' COLOR 3.                            "error processing&lt;/P&gt;&lt;P&gt;    gv_time = starttime-sdlstrttm.&lt;/P&gt;&lt;P&gt;    gv_date = starttime-sdlstrtdt.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above code will schedule the report zbackground in background.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;the program schduled in background will not be able to access any data present on your presentation server. data should be provided either by the program  schhedulling it in foreground or it has to be thr in application server.&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;Ankit Attrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 09:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-scheduling/m-p/6705636#M1453069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T09:08:55Z</dc:date>
    </item>
  </channel>
</rss>

