<?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: Type range of in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232255#M771049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys any more inputs ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2008 22:45:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-02T22:45:37Z</dc:date>
    <item>
      <title>Type range of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232252#M771046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I am trying to create a range object using type range of decalration in a class, but when trying to select data using the range object as one of the condition the program throws an error stating "The in operator with it_pernr-low is followed be neither by an internal table nor by a value list".Listed below is the sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_pernr type range of p0001-pernr,&lt;/P&gt;&lt;P&gt;        wa_pernr like line of it_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_pernr-low = '343243'.&lt;/P&gt;&lt;P&gt;wa_pernr-sign  = 'I'.&lt;/P&gt;&lt;P&gt; wa_pernr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append wa_pernr to it_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_pernr-low = '12343'.&lt;/P&gt;&lt;P&gt;append wa_pernr to it_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from pa0001&lt;/P&gt;&lt;P&gt;            into table it_p0001&lt;/P&gt;&lt;P&gt;           where pernr in it_pernr.&lt;/P&gt;&lt;P&gt;If I cannot use the "in it_pernr"  because it does not have a header line then what would be the alternative efficient solution. All answers wud be awarded suitably.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vick&lt;/P&gt;&lt;P&gt;This is a duplicate post, I accidentally posted it in the wrong place. Will close both the posts once answered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vick vennav on Jan 2, 2008 10:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 21:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232252#M771046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T21:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Type range of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232253#M771047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it_pernr-low = '343243'.&lt;/P&gt;&lt;P&gt;it_pernr-sign = 'I'.&lt;/P&gt;&lt;P&gt;it_pernr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append it_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 21:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232253#M771047</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-02T21:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Type range of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232254#M771048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jack,&lt;/P&gt;&lt;P&gt;      I cannot use your statements as this part of the code is being written in a method.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 22:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232254#M771048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T22:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Type range of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232255#M771049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys any more inputs ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 22:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232255#M771049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T22:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Type range of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232256#M771050</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;   Why can you use the internal table with header line in the SELECT statement. Once you finish it you can move the data in to some other internal table where you dont have header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 22:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232256#M771050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T22:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Type range of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232257#M771051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually Vick, I'm having no problem whatsoever using the TYPE RANGE OF within a method.  Not sure what you are doing wrong.  Here is my example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  rich_0001.

*----------------------------------------------------------------------*
*       CLASS lcl_app DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_app DEFINITION.
  PUBLIC SECTION.


    DATA: it_t000 TYPE TABLE OF t000.
    DATA: it_mandt TYPE RANGE OF t000-mandt,
          wa_mandt LIKE LINE OF it_mandt.

    METHODS : test.

ENDCLASS.                    "lcl_app DEFINITION

*----------------------------------------------------------------------*
*       CLASS lcl_app IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_app IMPLEMENTATION.

  METHOD test.

    wa_mandt-low = '100'.
    wa_mandt-sign = 'I'.
    wa_mandt-option = 'EQ'.
    APPEND wa_mandt TO it_mandt.

    wa_mandt-low = '200'.
    APPEND wa_mandt TO it_mandt.

    SELECT * FROM t000
            INTO TABLE it_t000
                   WHERE mandt IN it_mandt.


  ENDMETHOD.                    "test

ENDCLASS.                    "lcl_app IMPLEMENTATION

DATA: o_ref TYPE REF TO lcl_app.

START-OF-SELECTION.

  CREATE OBJECT o_ref.
  o_ref-&amp;gt;test( ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 23:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-range-of/m-p/3232257#M771051</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-02T23:02:57Z</dc:date>
    </item>
  </channel>
</rss>

