<?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: How to define Range Tables dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912099#M57293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not fit to your question, but have a look at the function module :&lt;/P&gt;&lt;P&gt;FREE_SELECTIONS_INIT&lt;/P&gt;&lt;P&gt;FREE_SELECTIONS_DIALOG&lt;/P&gt;&lt;P&gt;FREE_SELECTIONS_RANGE_2_WHERE&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;&lt;/P&gt;&lt;P&gt;Frédéric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2005 10:47:39 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2005-02-10T10:47:39Z</dc:date>
    <item>
      <title>How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912097#M57291</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;How can I define ranges dynamic for further using in the Select Statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause my Code is like this; But It comes to Short-Dump&lt;/P&gt;&lt;P&gt;lt_typnr  is Range Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF typnr IS  SUPPLIED.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'TYPNR IN' lt_typnr INTO&lt;/P&gt;&lt;P&gt;    source_line separated by space.&lt;/P&gt;&lt;P&gt;    APPEND source_line TO where_tab.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM ZTYP_TABLE&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_header&lt;/P&gt;&lt;P&gt;  WHERE (where_tab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Besi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 10:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912097#M57291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T10:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912098#M57292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi besi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using sel_opt's  is'nt possible in a dynamic wheretab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;&lt;/P&gt;&lt;P&gt;1) so you've to dissolve your sel_opt &lt;/P&gt;&lt;P&gt;2) or you've to use GENERATE SUBROUTINE POOL (F1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 10:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912098#M57292</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-02-10T10:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912099#M57293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not fit to your question, but have a look at the function module :&lt;/P&gt;&lt;P&gt;FREE_SELECTIONS_INIT&lt;/P&gt;&lt;P&gt;FREE_SELECTIONS_DIALOG&lt;/P&gt;&lt;P&gt;FREE_SELECTIONS_RANGE_2_WHERE&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;&lt;/P&gt;&lt;P&gt;Frédéric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 10:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912099#M57293</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-02-10T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912100#M57294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Besi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please see if this one works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF typnr IS SUPPLIED.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'TYPNR IN' &lt;/P&gt;&lt;P&gt;              'LT_TYPNR'&lt;/P&gt;&lt;P&gt;         INTO source_line separated by space.&lt;/P&gt;&lt;P&gt;  APPEND source_line TO where_tab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value LT_TYPNR has to be supplied as a &amp;lt;i&amp;gt;literal&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;Here in your case, you have given it as a variable. Hence the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward the points and close the thread if this solution is satisfactory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 10:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912100#M57294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T10:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912101#M57295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case Anand's solution does not work, if the range table is empty, it will have no impact on the selection.  So you could code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF typnr IS SUPPLIED.
ELSE.
  REFRESH lt_typnr[].
ENDIF.

SELECT * FROM ZTYP_TABLE
  INTO CORRESPONDING FIELDS OF TABLE lt_header
  WHERE typnr IN lt_typnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 14:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912101#M57295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T14:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912102#M57296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, &lt;/P&gt;&lt;P&gt;in Release 4.6 it is not possible to build a where clause with variables. &lt;/P&gt;&lt;P&gt;So &lt;/P&gt;&lt;P&gt;field = 'A'  would work &lt;/P&gt;&lt;P&gt;while &lt;/P&gt;&lt;P&gt;field = g_var would not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure in which Release this feature has been introduced. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2005 06:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912102#M57296</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-02-11T06:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to define Range Tables dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912103#M57297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was on Vacation. Sorry for lately Points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Besi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 15:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-tables-dynamically/m-p/912103#M57297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-16T15:01:56Z</dc:date>
    </item>
  </channel>
</rss>

