<?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: Select option :Problem in custom report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614741#M1663395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which event is used to fill internal table ITAB&amp;nbsp; ? I hope you are filling ITAB somewhere&lt;/P&gt;&lt;P&gt;and under which event is this code written ? It Should be in Initilisation !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2012 15:04:37 GMT</pubDate>
    <dc:creator>mithun_shetty4</dc:creator>
    <dc:date>2012-03-29T15:04:37Z</dc:date>
    <item>
      <title>Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614739#M1663393</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 am working on a custom report and we have acount number field on selecton screen.Initially we had hardcoded the range on selection screen as :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S31"&gt;S_RACCT-LOW&amp;nbsp; = '0050000000'.&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_RACCT-SIGN = 'E'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_RACCT-OPTION = 'LT'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND S_RACCT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_RACCT-LOW&amp;nbsp; = '0059999999'.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp; S_RACCT-SIGN = 'E'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_RACCT-OPTION = 'GT'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND S_RACCT.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;So when we select on above range we get data which is in range 0050000000 and 0059999999.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;Now we are removing this hardcoding and instead selecting account no. from a table ITAB so i changed it like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE ITAB&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE accountno. &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;S_RACCT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; S_RACCT&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SIGN&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'I'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; S_RACCT&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;OPTION &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EQ'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; S_RACCT&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;HIGH&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;''&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;Loop at itab&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;S_RACCT-low = itab-field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;append &lt;SPAN class="L0S52"&gt;S_RACCT&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;But the probelm is even if user gives account no on selection screen which doesnt belong to data in itab i am getting incorrect data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Any pointers on this ? How should i go about it so that only 5 series account no. are selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 14:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614739#M1663393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T14:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614740#M1663394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this risk of answering a post that will be locked for basic question....&lt;/P&gt;&lt;P&gt;Please read the available and well done ABAP help (F1) on the subject.&amp;nbsp; Doing so will often result in the answer you need and will result in no need to post a basic question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 15:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614740#M1663394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614741#M1663395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which event is used to fill internal table ITAB&amp;nbsp; ? I hope you are filling ITAB somewhere&lt;/P&gt;&lt;P&gt;and under which event is this code written ? It Should be in Initilisation !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 15:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614741#M1663395</guid>
      <dc:creator>mithun_shetty4</dc:creator>
      <dc:date>2012-03-29T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614742#M1663396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can add validation for your selection screen. i.e. you can check if &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;S_RACCT&lt;/SPAN&gt;-low+0(3) EQ 5 if not you can throw an error message thus enforcing the user to enter your desired 5 number series&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 15:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614742#M1663396</guid>
      <dc:creator>ankit_doshi</dc:creator>
      <dc:date>2012-03-29T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614743#M1663397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But if the user gives in selection screen something like a/c no NE 12345&lt;/P&gt;&lt;P&gt;that is also valid right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 15:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614743#M1663397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T15:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614744#M1663398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no that wont be valid,&lt;/P&gt;&lt;P&gt;on the event AT-SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;you put your condition/check , this will ensure that the user enters what you expect him to enter on the selection screen and if user does not enter you directly throw an error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 15:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614744#M1663398</guid>
      <dc:creator>ankit_doshi</dc:creator>
      <dc:date>2012-03-29T15:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614745#M1663399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;It looks that you are not clearing Table S_RACCT. before appending entery from ITAB.&lt;/P&gt;&lt;P&gt;one more thing in you select statement which table you are using S_racct or Itab.&lt;/P&gt;&lt;P&gt;Raj &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 17:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614745#M1663399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-29T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select option :Problem in custom report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614746#M1663400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BM . &lt;/P&gt;&lt;P&gt;1)It seems that code which you are trying to do may not be stable in future. Not select option has a memory limit when used in select statement. For our system it starts giving dump if a select option has around 10k lines .&lt;/P&gt;&lt;P&gt;2)where do you get the itab filled? Does it has all the 5* account number? if yes then simply put the validation at selection screen like the below. I am assuming the ITAB is getting filled in the INITIALIZATION event and &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;AT SELECTION-SCREEN ON S_RACCT.&lt;/P&gt;&lt;P&gt;L_ITAB[] = ITAB[]&lt;/P&gt;&lt;P&gt;DELETE L_ITAB WHERE FIELD NE S_RACCT.&lt;/P&gt;&lt;P&gt;IF L_ITAB IS INITIAL.&lt;/P&gt;&lt;P&gt; MESSAGE EXYZ. " INVALID ACCOUNT NUMBER.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;* FINALY GET THE FINAL ITAB in START-OF-SELECTION and use it in select&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;DELETE ITAB WHERE FIELD NE S_RACCT. " nOW USE ITAB in further selection&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 18:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-problem-in-custom-report/m-p/8614746#M1663400</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-03-29T18:06:23Z</dc:date>
    </item>
  </channel>
</rss>

