<?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 processing of Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995433#M1163428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: number           TYPE tbtcjob-jobcount, 
      name             TYPE tbtcjob-jobname VALUE 'JOB_TEST', 
      print_parameters TYPE pri_params. 

... 

CALL FUNCTION 'JOB_OPEN' 
  EXPORTING 
    jobname          = name 
  IMPORTING 
    jobcount         = number 
  EXCEPTIONS 
    cant_create_job  = 1 
    invalid_job_data = 2 
    jobname_missing  = 3 
    OTHERS           = 4. 
IF sy-subrc = 0. 
  SUBMIT submitable TO SAP-SPOOL 
                    SPOOL PARAMETERS print_parameters 
                    WITHOUT SPOOL DYNPRO 
                    VIA JOB name NUMBER number 
                    AND RETURN. 
  IF sy-subrc = 0. 
    CALL FUNCTION 'JOB_CLOSE' 
      EXPORTING 
        jobcount             = number 
        jobname              = name 
        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. 
      ... 
    ENDIF. 
  ENDIF. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 Background task scheduled successfully. &lt;/P&gt;&lt;P&gt;4 Scheduling cancelled by user on the selection screen. &lt;/P&gt;&lt;P&gt;8 Error during scheduling, i.e. when accessing JOB_SUBMIT internally. &lt;/P&gt;&lt;P&gt;12 Error in internal number assignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2009 10:10:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-16T10:10:52Z</dc:date>
    <item>
      <title>Background processing of Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995430#M1163425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a requirement of background processing of a program which is called from another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement : during execution of Program A, Program B is Submitted to run in background with two field values from Program A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ? I am able to explore it. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 09:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995430#M1163425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T09:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background processing of Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995431#M1163426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995431#M1163426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Background processing of Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995432#M1163427</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;Your options are very different depending on if program B is a SAP standard program or a customer program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can change program B add the fields as parameters of the program and pass them using SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995432#M1163427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Background processing of Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995433#M1163428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: number           TYPE tbtcjob-jobcount, 
      name             TYPE tbtcjob-jobname VALUE 'JOB_TEST', 
      print_parameters TYPE pri_params. 

... 

CALL FUNCTION 'JOB_OPEN' 
  EXPORTING 
    jobname          = name 
  IMPORTING 
    jobcount         = number 
  EXCEPTIONS 
    cant_create_job  = 1 
    invalid_job_data = 2 
    jobname_missing  = 3 
    OTHERS           = 4. 
IF sy-subrc = 0. 
  SUBMIT submitable TO SAP-SPOOL 
                    SPOOL PARAMETERS print_parameters 
                    WITHOUT SPOOL DYNPRO 
                    VIA JOB name NUMBER number 
                    AND RETURN. 
  IF sy-subrc = 0. 
    CALL FUNCTION 'JOB_CLOSE' 
      EXPORTING 
        jobcount             = number 
        jobname              = name 
        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. 
      ... 
    ENDIF. 
  ENDIF. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 Background task scheduled successfully. &lt;/P&gt;&lt;P&gt;4 Scheduling cancelled by user on the selection screen. &lt;/P&gt;&lt;P&gt;8 Error during scheduling, i.e. when accessing JOB_SUBMIT internally. &lt;/P&gt;&lt;P&gt;12 Error in internal number assignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995433#M1163428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Background processing of Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995434#M1163429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for Reply. Its Helpful. Please tell what print parameters should be passed to it. Also what if I have to pass parameters to the program. Do I need to use below data type .&lt;/P&gt;&lt;P&gt;DATA: it_selcr TYPE STANDARD TABLE OF rsparams.&lt;/P&gt;&lt;P&gt;DATA: wa_selcr TYPE rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax - Submit ...... WITH SELECTION-TABLE it_selcr.... and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NIBHA Priya on Jan 17, 2009 5:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 04:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-of-program/m-p/4995434#M1163429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-17T04:45:08Z</dc:date>
    </item>
  </channel>
</rss>

