<?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 Create background job using server name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352002#M1036349</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;&lt;/P&gt;&lt;P&gt;I need to create a background job using FM JOB_OPEN and JOB_Close.&lt;/P&gt;&lt;P&gt;My problem is that I need to define the Server name where this new job must be run, because I have 3 different server and only one can be use for my job. I create a report in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        jobname          = name_rep&lt;/P&gt;&lt;P&gt;        jobclass         = 'A'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        jobcount         = number&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        cant_create_job  = 1&lt;/P&gt;&lt;P&gt;        invalid_job_data = 2&lt;/P&gt;&lt;P&gt;        jobname_missing  = 3&lt;/P&gt;&lt;P&gt;        others           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    submit zmicperformance&lt;/P&gt;&lt;P&gt;            via job name_rep number number&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           with debug ...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            with enhanced eq enhanced&lt;/P&gt;&lt;P&gt;            with i_tframe eq i_tframe&lt;/P&gt;&lt;P&gt;            with i_tfyear eq i_tfyear&lt;/P&gt;&lt;P&gt;            with p_buffer eq p_buffer&lt;/P&gt;&lt;P&gt;            with rep1 eq rep1&lt;/P&gt;&lt;P&gt;            with rep10 eq rep10&lt;/P&gt;&lt;P&gt;            with rep2 eq rep2&lt;/P&gt;&lt;P&gt;            with rep3 eq rep3&lt;/P&gt;&lt;P&gt;            with rep4 eq rep4&lt;/P&gt;&lt;P&gt;            with rep5 eq rep5&lt;/P&gt;&lt;P&gt;            with rep6 eq rep6&lt;/P&gt;&lt;P&gt;            with rep7 eq rep7&lt;/P&gt;&lt;P&gt;            with rep8 eq rep8&lt;/P&gt;&lt;P&gt;            with rep9 eq rep9&lt;/P&gt;&lt;P&gt;            with standard eq standard&lt;/P&gt;&lt;P&gt;            with uname eq uname-low&lt;/P&gt;&lt;P&gt;            and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      call function 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          jobcount             = number&lt;/P&gt;&lt;P&gt;          jobname              = name_rep&lt;/P&gt;&lt;P&gt;          strtimmed            = 'X'&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;          invalid_startdate    = 2&lt;/P&gt;&lt;P&gt;          jobname_missing      = 3&lt;/P&gt;&lt;P&gt;          job_close_failed     = 4&lt;/P&gt;&lt;P&gt;          job_nosteps          = 5&lt;/P&gt;&lt;P&gt;          job_notex            = 6&lt;/P&gt;&lt;P&gt;          lock_failed          = 7&lt;/P&gt;&lt;P&gt;          invalid_target       = 8&lt;/P&gt;&lt;P&gt;          others               = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Barbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2008 09:19:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-18T09:19:03Z</dc:date>
    <item>
      <title>Create background job using server name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352002#M1036349</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;&lt;/P&gt;&lt;P&gt;I need to create a background job using FM JOB_OPEN and JOB_Close.&lt;/P&gt;&lt;P&gt;My problem is that I need to define the Server name where this new job must be run, because I have 3 different server and only one can be use for my job. I create a report in this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        jobname          = name_rep&lt;/P&gt;&lt;P&gt;        jobclass         = 'A'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        jobcount         = number&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        cant_create_job  = 1&lt;/P&gt;&lt;P&gt;        invalid_job_data = 2&lt;/P&gt;&lt;P&gt;        jobname_missing  = 3&lt;/P&gt;&lt;P&gt;        others           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    submit zmicperformance&lt;/P&gt;&lt;P&gt;            via job name_rep number number&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           with debug ...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            with enhanced eq enhanced&lt;/P&gt;&lt;P&gt;            with i_tframe eq i_tframe&lt;/P&gt;&lt;P&gt;            with i_tfyear eq i_tfyear&lt;/P&gt;&lt;P&gt;            with p_buffer eq p_buffer&lt;/P&gt;&lt;P&gt;            with rep1 eq rep1&lt;/P&gt;&lt;P&gt;            with rep10 eq rep10&lt;/P&gt;&lt;P&gt;            with rep2 eq rep2&lt;/P&gt;&lt;P&gt;            with rep3 eq rep3&lt;/P&gt;&lt;P&gt;            with rep4 eq rep4&lt;/P&gt;&lt;P&gt;            with rep5 eq rep5&lt;/P&gt;&lt;P&gt;            with rep6 eq rep6&lt;/P&gt;&lt;P&gt;            with rep7 eq rep7&lt;/P&gt;&lt;P&gt;            with rep8 eq rep8&lt;/P&gt;&lt;P&gt;            with rep9 eq rep9&lt;/P&gt;&lt;P&gt;            with standard eq standard&lt;/P&gt;&lt;P&gt;            with uname eq uname-low&lt;/P&gt;&lt;P&gt;            and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      call function 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          jobcount             = number&lt;/P&gt;&lt;P&gt;          jobname              = name_rep&lt;/P&gt;&lt;P&gt;          strtimmed            = 'X'&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;          invalid_startdate    = 2&lt;/P&gt;&lt;P&gt;          jobname_missing      = 3&lt;/P&gt;&lt;P&gt;          job_close_failed     = 4&lt;/P&gt;&lt;P&gt;          job_nosteps          = 5&lt;/P&gt;&lt;P&gt;          job_notex            = 6&lt;/P&gt;&lt;P&gt;          lock_failed          = 7&lt;/P&gt;&lt;P&gt;          invalid_target       = 8&lt;/P&gt;&lt;P&gt;          others               = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Barbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 09:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352002#M1036349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T09:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create background job using server name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352003#M1036350</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;&lt;/P&gt;&lt;P&gt;check for TARGETSERVER in FM JOB_CLOSE or see the documentation of this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Mon, 18 Aug 2008 09:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352003#M1036350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create background job using server name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352004#M1036351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;barbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 09:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-background-job-using-server-name/m-p/4352004#M1036351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T09:32:47Z</dc:date>
    </item>
  </channel>
</rss>

