<?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 Dynamic for Select Option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184583#M1519002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why can you not just use a standard SELECT statement joining ANLA and ANLZ with IN operators for each select option? I might not be understanding "Having in count the values" correctly though, please clarify.&lt;/P&gt;&lt;P&gt;Good night&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 15:16:08 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-08-17T15:16:08Z</dc:date>
    <item>
      <title>Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184577#M1518996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Good Night.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following screen of selection for a user. I need create a Select Dynamic for the table ANLA, Having in count the values selected by the user in each option of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK SEL WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;               BUKRS     FOR ANLA-BUKRS,&lt;/P&gt;&lt;P&gt;                ANLKL    FOR ANLA-ANLKL, &lt;/P&gt;&lt;P&gt;                KOSTL    FOR ANLZ-KOSTL,&lt;/P&gt;&lt;P&gt;                GDLGRP FOR ANLA-GDLGRP,&lt;/P&gt;&lt;P&gt;                INVNR     FOR ANLA-INVNR. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK SEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 00:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184577#M1518996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T00:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184578#M1518997</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;Please have a refer of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_lines(72) TYPE c.

* itab for fields selection
DATA: lt_condition LIKE TABLE OF l_lines(72),
      lt_fields    LIKE TABLE OF l_lines(72).

DEFINE m_add_fields.
  l_lines = &amp;amp;1.
  append l_lines to lt_fields.
END-OF-DEFINITION.

*
m_add_fields 'BUKRS'.
m_add_fields 'ANLK'.
m_add_fields 'GDLGRP'.
m_add_fields 'INVNR'.
*bukrs
l_lines = 'BUKRS in BUKRS'.
APPEND l_lines TO lt_condition.

* ANLK
l_lines = 'AND ANLK in ANLK'.
APPEND l_lines TO lt_condition.

*
l_lines = 'AND GDLGRP in GDLGRP'.
APPEND l_lines TO lt_condition.

*
l_lines = 'AND INVNR in INVNR'.
APPEND l_lines TO lt_condition.

* Select statement
SELECT (lt_fields)
INTO TABLE &amp;lt;table&amp;gt;
FROM &amp;lt;from&amp;gt;
WHERE (lt_condition).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 02:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184578#M1518997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T02:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184579#M1518998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The system send a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system display a message of error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 13:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184579#M1518998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184580#M1518999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what's in the dump?  What did it tell you it found wrong?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 14:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184580#M1518999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T14:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184581#M1519000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add SPACE before and after for all the strings...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'  XXXX in XXXX  ' -&amp;gt; SPACEs before and after..&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;P&gt;Veeranji Reddy P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184581#M1519000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184582#M1519001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Err.tmpo.ejec.         SAPSQL_WHERE_ILLEGAL_VALUE&lt;/P&gt;&lt;P&gt;Excep.                 CX_SY_DYNAMIC_OSQL_SEMANTICS&lt;/P&gt;&lt;P&gt;Fecha y hora           17.08.2010 10:05:08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK SEL WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: SOCIEDAD  FOR ANLA-BUKRS, " &lt;/P&gt;&lt;P&gt;                CLASEAF   FOR ANLA-ANLKL, "&lt;/P&gt;&lt;P&gt;                CENCOST   FOR ANLZ-KOSTL,"&lt;/P&gt;&lt;P&gt;                CARRESP   FOR ANLA-GDLGRP,&lt;/P&gt;&lt;P&gt;                NUMINV    FOR ANLA-INVNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK SEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_lines(72) TYPE c.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;itab for fields selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: lt_condition LIKE TABLE OF l_lines(72),&lt;/P&gt;&lt;P&gt;      lt_fields    LIKE TABLE OF l_lines(72).&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DEFINE m_add_fields.&lt;/P&gt;&lt;P&gt;  l_lines = &amp;amp;1.&lt;/P&gt;&lt;P&gt;  append l_lines to lt_fields.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;**&lt;/P&gt;&lt;P&gt;m_add_fields 'BUKRS'.&lt;/P&gt;&lt;P&gt;m_add_fields 'ANLK'.&lt;/P&gt;&lt;P&gt;m_add_fields 'GDLGRP'.&lt;/P&gt;&lt;P&gt;m_add_fields 'INVNR'.&lt;/P&gt;&lt;P&gt;*bukrs&lt;/P&gt;&lt;P&gt;l_lines = 'BUKRS in SOCIEDAD'.&lt;/P&gt;&lt;P&gt;APPEND l_lines TO lt_condition.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ANLK&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_lines = 'AND ANLK in CLASEAF'.&lt;/P&gt;&lt;P&gt;APPEND l_lines TO lt_condition.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Select statement&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SELECT INVNR ANLKL SERNR ANLN1 TXT50 AKTIV ZUGDT&lt;/P&gt;&lt;P&gt;       BSTDT LIFNR LIEFE ORD41 ORD42 ORD43 AIBN1&lt;/P&gt;&lt;P&gt;       AIBN2 VMGLI FLURN&lt;/P&gt;&lt;P&gt;INTO TABLE it_tabla&lt;/P&gt;&lt;P&gt;FROM ANLA&lt;/P&gt;&lt;P&gt;WHERE (lt_condition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184582#M1519001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184583#M1519002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why can you not just use a standard SELECT statement joining ANLA and ANLZ with IN operators for each select option? I might not be understanding "Having in count the values" correctly though, please clarify.&lt;/P&gt;&lt;P&gt;Good night&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184583#M1519002</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-08-17T15:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184584#M1519003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Why can you not just use a standard SELECT statement joining ANLA and ANLZ with IN operators for each select option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184584#M1519003</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-17T15:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184585#M1519004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi want create a Select Dynamic only with the parameters that the user add in the Screen Selection in the WHERE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184585#M1519004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184586#M1519005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Empty select options will be ignored by the select query. This is very basic, please read here and close this thread afterwards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu%5F70/en/ABENLOGEXP_SELECT_OPTION.htm" target="test_blank"&gt;http://help.sap.com/abapdocu%5F70/en/ABENLOGEXP_SELECT_OPTION.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184586#M1519005</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-08-17T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select Dynamic for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184587#M1519006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-dynamic-for-select-option/m-p/7184587#M1519006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T15:54:40Z</dc:date>
    </item>
  </channel>
</rss>

