<?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: SUBMIT with parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915543#M58024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code looks pretty good to me,  are you sure that the ZBW_EXIT_TAB-PID and the P_PID are of the same type and the data is in the same format? If so, what exactly are the data types/lengths.  &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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2005 20:06:27 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-02-10T20:06:27Z</dc:date>
    <item>
      <title>SUBMIT with parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915542#M58023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am trying to create background jobs with the help of SUBMIT. &lt;/P&gt;&lt;P&gt;Statements are something liek this:&lt;/P&gt;&lt;P&gt;KICK_COUNT = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE KICK_COUNT &amp;lt; 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'ZSUBMIT_BIW' KICK_COUNT INTO jbname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KICK_COUNT = KICK_COUNT + 1.&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  = jbname&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          JOBCOUNT = jbcnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; p_pid = kick_count. " Brahma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set parameter id 'PID' field p_pid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT ZBW_BP_SI_USER_EXIT&lt;/P&gt;&lt;P&gt;    with P_PID = KICK_COUNT&lt;/P&gt;&lt;P&gt;    via job jbname number jbcnt&lt;/P&gt;&lt;P&gt;    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              JOBCOUNT  = jbcnt&lt;/P&gt;&lt;P&gt;              JOBNAME   = jbname&lt;/P&gt;&lt;P&gt;              STRTIMMED = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE JBNAME TO I_JOB_STATUS-I_JOB_NAME.&lt;/P&gt;&lt;P&gt;MOVE JBCNT  TO I_JOB_STATUS-I_JOB_COUNT.&lt;/P&gt;&lt;P&gt;APPEND I_JOB_STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN the ZBW_BP_SI_USER_EXIT program I have select statment :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  * FROM ZBW_EXIT_TAB&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE I_REFPROC&lt;/P&gt;&lt;P&gt;WHERE PID = p_pid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select statment doesn't work when it is kicked off through above SUBMIT statement. By having WRITE statements I am confirming that p-pid (parameter) is getting passed perfectly alright.&lt;/P&gt;&lt;P&gt;If I execute the ZBW_BP_SI_USER_EXIT  program separately with the value in P_PID , then SELECT statment above works fine. &lt;/P&gt;&lt;P&gt;PLease let me know what could be going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Santosh Taware&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 19:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915542#M58023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915543#M58024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code looks pretty good to me,  are you sure that the ZBW_EXIT_TAB-PID and the P_PID are of the same type and the data is in the same format? If so, what exactly are the data types/lengths.  &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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 20:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915543#M58024</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-10T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915544#M58025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, please check to make sure that there is a parameter "P_PID" in program ZBW_BP_SI_USER_EXIT.  When you use the Submit statement "WITH" parameters, there is no checking that the parameters exist in the submitted program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 20:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915544#M58025</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-10T20:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915545#M58026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich, &lt;/P&gt;&lt;P&gt;Yeah, Parameter is there in the program ZBW_BP_SI_USER_EXIT and the passing paramtere type/lenght is same as the parameter specified in the program ZBW_BP_SI_USER_EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters P_PID like zbw_exit_tab-pid.&lt;/P&gt;&lt;P&gt;and  KICK_COUNT LIKE tbtcjob-jobcount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 20:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915545#M58026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915546#M58027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no clue then,  its working great for me.  Comment out the JOB_OPEN and JOB_CLOSE, comment out the "via job x number y" extension of your submit statement.  Now debug.  Does it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are zbw_exit_tab-pid and KICK_COUNT the same type/length?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the zbw_exit_tab-pid defined in the data dictionary,  you are adding 1 to kick_count, doing this may change the way the data in that field is formatted depending on how its defined in the data dictionary.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 21:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915546#M58027</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-10T21:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915547#M58028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though KICK_COUNT and P_PID are same (tbtcjob-jobcount), it creates problem while passing parameter.&lt;/P&gt;&lt;P&gt;So I just used condense P_PID in the ZBW_BP_SI_USER_EXIT&lt;/P&gt;&lt;P&gt;program. and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 22:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-parameter/m-p/915547#M58028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T22:21:19Z</dc:date>
    </item>
  </channel>
</rss>

