<?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: Selection Table not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630938#M1090589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I betcha that was the actual problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 15:15:25 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-10-15T15:15:25Z</dc:date>
    <item>
      <title>Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630924#M1090575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive created a table in my data-dictionary which i want to use in an sql-statement combined with "where sparte IN myselectiontable", but this doesnt work for me.&lt;/P&gt;&lt;P&gt;ive created this structure in the datadic for my selectiontable and a corresponding tabletype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SIGN char(1)
OPTION char(2)
LOW z_sparte
HIGH z_sparte
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;low and high are the same type es the databasefield i want to use the selectiontable on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;later on the table based on this structure is filled by me with the following data, because i want to get only the lines of my database where "sparte" is equal to "J" or "S".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SIGN    OPTION   LOW    HIGH

I            EQ            J
I            EQ            S
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but no matter what the content of my selectiontable is, its just being ignored, i alwys get the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630924#M1090575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630925#M1090576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to put your values into the LOW column rather than the HIGH column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630925#M1090576</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-10-15T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630926#M1090577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry this is a formatting problem, the values are in the LOW-field, the HIGH-field is empty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630926#M1090577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630927#M1090578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your selection code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit. I have a feeling you defined your own SELECT-OPTIONS structure and you are using that instead of the standard SAP SELECT-OPTIONS structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630927#M1090578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630928#M1090579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why don't you define the selection range like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: r_sparte TYPE RANGE OF z_sparte.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630928#M1090579</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-15T13:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630929#M1090580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, youre talking about my sql-statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT sparte  FROM zebit_hcr_btabn into CORRESPONDING FIELDS OF TABLE sparten
   WHERE termtdat BETWEEN from AND to AND prod = o_produkt AND
  action = 'B' OR action = 'Z' AND sparte IN o_sparten_sichtbar.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with o_sparten_sichtbar being my selection table with the structure above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630929#M1090580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630930#M1090581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do what Thomas suggested and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES: ra_sparte FOR zebit_hcr_btabn-sparte.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ra_sparte will have the same fields as you defined in your own structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Maen Anachronos on Oct 15, 2008 3:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630930#M1090581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630931#M1090582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i defined it manually in the source of my class-attributes, it didn't change anything. in the debugger the table seems to be correctly filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: the ranges command is not allowed in the definition of my class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im trying to use this in a BSP, i have serveral dynamicly generated checkboxes. i want to generate a selection-table out of them so i can do a selection on the database based on the checkbox-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: dsp on Oct 15, 2008 3:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: dsp on Oct 15, 2008 3:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630931#M1090582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630932#M1090583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you &lt;STRONG&gt;APPEND&lt;/STRONG&gt; the tablw with correct values and put your values in &lt;STRONG&gt;LOW&lt;/STRONG&gt;. If you are selecting a range of data to be selected then use LOW + HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630932#M1090583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630933#M1090584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; the ranges command is not allowed in the definition of my class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct, because it uses implicit header lines. Try my suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; DATA: ... TYPE RANGE OF ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630933#M1090584</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-15T13:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630934#M1090585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the generation of the selectiontable, "sel_sparten_sichtbar" being the selectiontable in this case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
some looping....
clear wa_o_sparten_sichtbar.
wa_o_sparten_sichtbar-sign = 'I'.
wa_o_sparten_sichtbar-option = 'EQ'.
wa_o_sparten_sichtbar-low = wa_i_sparten_sichtbar-sparte.
APPEND wa_o_sparten_sichtbar TO sel_sparten_sichtbar.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thomas: tried it out, it didn't change anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630934#M1090585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630935#M1090586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you have a look at this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest3.
DATA: BEGIN OF sel OCCURS 10,
        sign(1)   TYPE c,
        option(2) TYPE c,
        low       TYPE s_carr_id,
        high      TYPE s_carr_id,
      END OF sel.
DATA: lt TYPE TABLE OF spfli.


sel-sign = 'I'. sel-option = 'EQ'. sel-low = 'LH'. APPEND sel.
sel-sign = 'I'. sel-option = 'EQ'. sel-low = 'AA'. APPEND sel.

BREAK-POINT.
SELECT * FROM spfli INTO TABLE lt WHERE carrid IN sel.
BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630935#M1090586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630936#M1090587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i solved the problem, the reason for this was the sql-statement. the "&amp;lt;field&amp;gt; IN &amp;lt;selectiontable&amp;gt;" has to be right after the "WHERE" in the select, or it wont work like it should. this now works fine for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT abrstatus sparte prod COUNT(*) AS summe FROM zebit_hcr_btabn INTO CORRESPONDING FIELDS
  OF TABLE int_overview_sparte  WHERE sparte in o_sparten_sichtbar  and termtdat BETWEEN from AND to AND prod = o_produkt AND action = 'B' OR action = 'Z' GROUP BY abrstatus sparte prod ORDER BY abrstatus ASCENDING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks everybody for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630936#M1090587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630937#M1090588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well done!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm still wondering as i haven't seen that happen before that you need to put it right after the WHERE. Is it possible that the result was affected by: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;action = 'B' OR action = 'Z' AND sparte IN o_sparten_sichtbar.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that it would have worked if you used:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;( action = 'B' OR action = 'Z' ) AND sparte IN o_sparten_sichtbar.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just being curious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630937#M1090588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630938#M1090589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I betcha that was the actual problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 15:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630938#M1090589</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-15T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630939#M1090590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you we're right, that was the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 06:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-table-not-working/m-p/4630939#M1090590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T06:21:17Z</dc:date>
    </item>
  </channel>
</rss>

