<?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: Error in submit statment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625020#M1280997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the variable declartion u r passing to the Functionmodule parameters are same as the FM parameter declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;belwo is the Sample code .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zperfinst.



  data: myjob_name like tbtcjob-jobname value 'SAP_PSS_PERF',
        lv_job_nr like tbtcjob-jobcount,
        lf_job_was_released like btch0000-char1,
        lc_report like sy-repid value 'ZVUJPERF',
        lv_periode like tbtcjob-prdmins,
        lv_startdate like sy-datum,
        lv_starttime like sy-uzeit,
        lv_variant like raldb-variant value 'PSS_TDC',
        lf_ok(1).

* Startzeit festlegen,in 5 Minuten mit der Wiederholung in einem Tag
  lv_startdate = sy-datum.
  lv_starttime = sy-uzeit + 300.
  lv_periode = '5'.

  call function 'JOB_OPEN'
       exporting
            jobname  = myjob_name
       importing
            jobcount = lv_job_nr.

  call function 'JOB_SUBMIT'
       exporting
            authcknam = sy-uname
            jobcount  = lv_job_nr
            jobname   = myjob_name
            report    = lc_report
            variant   = lv_variant.

  call function 'JOB_CLOSE'
       exporting
            jobcount         = lv_job_nr
            jobname          = myjob_name
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 09:43:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T09:43:03Z</dc:date>
    <item>
      <title>Error in submit statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625017#M1280994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  In my pgm if i use like this &lt;/P&gt;&lt;P&gt;      SUBMIT pgm&lt;/P&gt;&lt;P&gt;       TO SAP-SPOOL IMMEDIATELY ''&lt;/P&gt;&lt;P&gt;    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       VIA JOB name NUMBER number&lt;/P&gt;&lt;P&gt;      AND RETURN    .&lt;/P&gt;&lt;P&gt; the submit stmt is working fine but i use the Fm job_submit like mentioned below its not working fine.Its throwing the sy-subrc as 3.My requirment is to it shouldnt return any value so have to make use of the FM only.What is the reason for the error and how to get rid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_SUBMIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    authcknam                         = sy-uname&lt;/P&gt;&lt;P&gt;    jobcount                          = number&lt;/P&gt;&lt;P&gt;    jobname                           = name&lt;/P&gt;&lt;P&gt;   LANGUAGE                          = SY-LANGU&lt;/P&gt;&lt;P&gt;   report                            = pgm&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   BAD_PRIPARAMS                     = 1&lt;/P&gt;&lt;P&gt;   BAD_XPGFLAGS                      = 2&lt;/P&gt;&lt;P&gt;   INVALID_JOBDATA                   = 3&lt;/P&gt;&lt;P&gt;   JOBNAME_MISSING                   = 4&lt;/P&gt;&lt;P&gt;   JOB_NOTEX                         = 5&lt;/P&gt;&lt;P&gt;   JOB_SUBMIT_FAILED                 = 6&lt;/P&gt;&lt;P&gt;   LOCK_FAILED                       = 7&lt;/P&gt;&lt;P&gt;   PROGRAM_MISSING                   = 8&lt;/P&gt;&lt;P&gt;   PROG_ABAP_AND_EXTPG_SET           = 9&lt;/P&gt;&lt;P&gt;   OTHERS                            = 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625017#M1280994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in submit statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625018#M1280995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first you mast open the job by calling the function 'JOB_OPEN' like below&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DELANFREP              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOBGROUP               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      JOBNAME              = name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SDLSTRTDT              = NO_DATE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SDLSTRTTM              = NO_TIME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOBCLASS               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     JOBCOUNT               = number&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RET                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT pgm&lt;/P&gt;&lt;P&gt;TO SAP-SPOOL IMMEDIATELY ''&lt;/P&gt;&lt;P&gt;WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;VIA JOB name NUMBER number&lt;/P&gt;&lt;P&gt;AND RETURN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_SUBMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;authcknam = sy-uname&lt;/P&gt;&lt;P&gt;jobcount = number&lt;/P&gt;&lt;P&gt;jobname = name&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;report = pgm&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;BAD_PRIPARAMS = 1&lt;/P&gt;&lt;P&gt;BAD_XPGFLAGS = 2&lt;/P&gt;&lt;P&gt;INVALID_JOBDATA = 3&lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 4&lt;/P&gt;&lt;P&gt;JOB_NOTEX = 5&lt;/P&gt;&lt;P&gt;JOB_SUBMIT_FAILED = 6&lt;/P&gt;&lt;P&gt;LOCK_FAILED = 7&lt;/P&gt;&lt;P&gt;PROGRAM_MISSING = 8&lt;/P&gt;&lt;P&gt;PROG_ABAP_AND_EXTPG_SET = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625018#M1280995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in submit statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625019#M1280996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had used Job_open fist itself.I need to know the reason y the sy-subrc is not equal to 0 in the second case alone.Please help its ugrent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625019#M1280996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T09:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in submit statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625020#M1280997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the variable declartion u r passing to the Functionmodule parameters are same as the FM parameter declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;belwo is the Sample code .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zperfinst.



  data: myjob_name like tbtcjob-jobname value 'SAP_PSS_PERF',
        lv_job_nr like tbtcjob-jobcount,
        lf_job_was_released like btch0000-char1,
        lc_report like sy-repid value 'ZVUJPERF',
        lv_periode like tbtcjob-prdmins,
        lv_startdate like sy-datum,
        lv_starttime like sy-uzeit,
        lv_variant like raldb-variant value 'PSS_TDC',
        lf_ok(1).

* Startzeit festlegen,in 5 Minuten mit der Wiederholung in einem Tag
  lv_startdate = sy-datum.
  lv_starttime = sy-uzeit + 300.
  lv_periode = '5'.

  call function 'JOB_OPEN'
       exporting
            jobname  = myjob_name
       importing
            jobcount = lv_job_nr.

  call function 'JOB_SUBMIT'
       exporting
            authcknam = sy-uname
            jobcount  = lv_job_nr
            jobname   = myjob_name
            report    = lc_report
            variant   = lv_variant.

  call function 'JOB_CLOSE'
       exporting
            jobcount         = lv_job_nr
            jobname          = myjob_name
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625020#M1280997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in submit statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625021#M1280998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still am getting the same issue.Why its throwing the exception as INVALID_JOBDATA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 09:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-submit-statment/m-p/5625021#M1280998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T09:50:34Z</dc:date>
    </item>
  </channel>
</rss>

