<?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: Problem with Submit and Return statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201688#M1626352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhea,&lt;/P&gt;&lt;P&gt;My Requirement was like that..&lt;/P&gt;&lt;P&gt;i will schedule job based on the output...&lt;/P&gt;&lt;P&gt;If i get solution  for the above mentioned code,&lt;/P&gt;&lt;P&gt;i  can solve rest of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Annamalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 16:09:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-15T16:09:23Z</dc:date>
    <item>
      <title>Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201675#M1626339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have two reports.&lt;/P&gt;&lt;P&gt;First report has Select options as well as Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Second Report  i 'm passing set of values for select option and need to get back the results in the second Report.&lt;/P&gt;&lt;P&gt; But i'm getting only one value(which is the first value in the select option) in the second report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the below code which i have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_matnr1.&lt;/P&gt;&lt;P&gt;    seltab_wa-low = s_matnr1-low.&lt;/P&gt;&lt;P&gt;    append seltab_wa to seltab.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   seltab_wa-selname = 'S_WERKS'.&lt;/P&gt;&lt;P&gt;   seltab_wa-sign    = 'I'.&lt;/P&gt;&lt;P&gt;   seltab_wa-option  = 'EQ'.&lt;/P&gt;&lt;P&gt;   seltab_wa-low = wa_plant-werks.&lt;/P&gt;&lt;P&gt;   append seltab_wa to seltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT sdrqcr21 "VIA JOB jobname number jobcount AND RETURN&lt;/P&gt;&lt;P&gt;        WITH SELECTION-TABLE seltab via selection-screen " IN s_matnr1&lt;/P&gt;&lt;P&gt;        with P_INSERT  EQ 'X'&lt;/P&gt;&lt;P&gt;        WITH p_compar EQ ''&lt;/P&gt;&lt;P&gt;        WITH p_lock EQ 'X'&lt;/P&gt;&lt;P&gt;        WITH p_posins EQ 'X'&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;        and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need all the values in the seltab should be executed rather than first value.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance dudes &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Annamalai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Sep 15, 2011 1:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 11:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201675#M1626339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T11:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201676#M1626340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're missing the KIND definition while populating the SELECION-TABLE &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the F1 documentation you should be able to figure out the cause of your error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 11:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201676#M1626340</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-15T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201677#M1626341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add all the selection screen fields to SELTAB, that way you added to S_WERKS as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seltab_wa-selname = 'S_WERKS'.&lt;/P&gt;&lt;P&gt;seltab_wa-sign = 'I'.&lt;/P&gt;&lt;P&gt;seltab_wa-option = 'EQ'.&lt;/P&gt;&lt;P&gt;seltab_wa-low = wa_plant-werks.&lt;/P&gt;&lt;P&gt;append seltab_wa to seltab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201677#M1626341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201678#M1626342</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;Verify your code with the below code if there are any thing missing please add that or chnage .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Code used to populate 'select-options' &amp;amp; execute report
DATA: seltab type table of rsparams,
      seltab_wa like line of seltab.

  seltab_wa-selname = 'PNPPERNR'.
  seltab_wa-sign    = 'I'.
  seltab_wa-option  = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
  loop at pnppernr.
    seltab_wa-low = pnppernr-low.
    append seltab_wa to seltab.
  endloop.
  SUBMIT z_report_sample with selection-table seltab
                                                   via selection-screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201678#M1626342</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2011-09-15T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201679#M1626343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas,&lt;/P&gt;&lt;P&gt;yes  i will try with KIND = 'S'.&lt;/P&gt;&lt;P&gt; let you know for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Annamalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201679#M1626343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201680#M1626344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas,&lt;/P&gt;&lt;P&gt; i tried with KIND definition also..&lt;/P&gt;&lt;P&gt;still it returns first Material only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Annamalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201680#M1626344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T12:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201681#M1626345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Poorna,&lt;/P&gt;&lt;P&gt;I have added all the selection screen fields in the seltab.&lt;/P&gt;&lt;P&gt;but it didnt help.&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;Annamalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201681#M1626345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201682#M1626346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks like you forgot seltab_wa-selname = 'S_MATNR' too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201682#M1626346</guid>
      <dc:creator>former_member196064</dc:creator>
      <dc:date>2011-09-15T12:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201683#M1626347</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;Are you able to see all the plants?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I think you can solve very easily by debugging . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just icheck f you have all the materials in the seltab at SUBMIT if not then definitely your code is incorrect in populating selection values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201683#M1626347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T12:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201684#M1626348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhea,&lt;/P&gt;&lt;P&gt; In debugging  i can see all the plants as well as range of materials,&lt;/P&gt;&lt;P&gt;once it reaches selection screen of another report ,values are sitting in correct place.&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;s_matnr has 7 material , plant has 1 plant &lt;/P&gt;&lt;P&gt;if i execute that report &lt;/P&gt;&lt;P&gt;1 plant 1 material is showing as result.&lt;/P&gt;&lt;P&gt;but i want  1 plant 7 materials as the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Annamalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201684#M1626348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T14:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201685#M1626349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at s_matnr1.
seltab_wa-low = s_matnr1-low.
append seltab_wa to seltab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already pointed out by Doug you're missing the SELNAME! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201685#M1626349</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-15T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201686#M1626350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas,&lt;/P&gt;&lt;P&gt;I have added selname before that...&lt;/P&gt;&lt;P&gt;sorry  i missed that part of code since my  main problem is with&lt;/P&gt;&lt;P&gt;submit and return statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;annamalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201686#M1626350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201687#M1626351</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;Did you run the report directly to see that there nothing wrong with the report ? I mean are you getting all the materials in o/p?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 15:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201687#M1626351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T15:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201688#M1626352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhea,&lt;/P&gt;&lt;P&gt;My Requirement was like that..&lt;/P&gt;&lt;P&gt;i will schedule job based on the output...&lt;/P&gt;&lt;P&gt;If i get solution  for the above mentioned code,&lt;/P&gt;&lt;P&gt;i  can solve rest of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Annamalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 16:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201688#M1626352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Submit and Return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201689#M1626353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi buddies,&lt;/P&gt;&lt;P&gt;At last my problem got resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used Conversion exit for the Material number (S_MATNR)  before submit and return statement.&lt;/P&gt;&lt;P&gt;it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your reply &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;Annamalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 07:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-submit-and-return-statement/m-p/8201689#M1626353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T07:32:38Z</dc:date>
    </item>
  </channel>
</rss>

