<?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: Search dump using range table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280934#M152749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you getting the error(which line)? What is the error message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you are allowed to use string type ranges.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Apr 2006 03:55:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-14T03:55:35Z</dc:date>
    <item>
      <title>Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280930#M152745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the following code, it creates dump. I wonder any body can help me how to solve it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Ling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;data: t_range type range of string with HEADER LINE,&lt;/P&gt;&lt;P&gt;      s_range like line of t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;  s_range-option = 'CP'.&lt;/P&gt;&lt;P&gt;  s_range-low = '*'.&lt;/P&gt;&lt;P&gt;  append s_range to t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: BEGIN OF typ_stru,&lt;/P&gt;&lt;P&gt;  ch type c,&lt;/P&gt;&lt;P&gt;  in type i,&lt;/P&gt;&lt;P&gt;  end of typ_stru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_ids type table of typ_stru,&lt;/P&gt;&lt;P&gt;      ls_ids type typ_stru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 3 times.&lt;/P&gt;&lt;P&gt;  ls_ids-ch = sy-index.&lt;/P&gt;&lt;P&gt;  ls_ids-in = sy-index.&lt;/P&gt;&lt;P&gt;  append ls_ids to lt_ids.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;clear ls_ids.&lt;/P&gt;&lt;P&gt;loop at lt_ids into ls_ids.&lt;/P&gt;&lt;P&gt;  if ls_ids-ch in t_range.&lt;/P&gt;&lt;P&gt;    write:/ ls_ids-in.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 02:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280930#M152745</guid>
      <dc:creator>ling_shi</dc:creator>
      <dc:date>2006-04-14T02:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280931#M152746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ling,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My understanding is you cant compare a String type table range in a IF condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try to change the data definition as shown below. Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Original Code:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: t_range type range of string with HEADER LINE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Suggested Code:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: t_range type range of CHAR10 with HEADER LINE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Anyways i am still unclear of what exactally u r trying to do. Let me know if the above info helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 02:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280931#M152746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-14T02:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280932#M152747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ling,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN Forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are comparing each and every row anyway, I don't see a reason why you will have to RANGES here.&lt;/P&gt;&lt;P&gt;Why can't you do this?&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;IF ls_ids-ch CP '*'.&lt;/P&gt;&lt;P&gt;write:/ ls_ids-in.&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 02:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280932#M152747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-14T02:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280933#M152748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP is very specific about how to build range tables. Try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF typ_stru,
  ch TYPE c,
  in TYPE i,
END OF typ_stru.

DATA: lt_ids TYPE TABLE OF typ_stru,
ls_ids TYPE typ_stru.

RANGES: s_range FOR ls_ids-ch.

s_range-sign = 'I'.
s_range-option = 'CP'.
s_range-low = '*'.
APPEND s_range.

DO 3 TIMES.
  ls_ids-ch = sy-index.
  ls_ids-in = sy-index.
  APPEND ls_ids TO lt_ids.
ENDDO.
CLEAR ls_ids.
LOOP AT lt_ids INTO ls_ids.
  IF ls_ids-ch IN s_range.
    WRITE:/ ls_ids-in.
  ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 02:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280933#M152748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-14T02:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280934#M152749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you getting the error(which line)? What is the error message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you are allowed to use string type ranges.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 03:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280934#M152749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-14T03:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280935#M152750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the range table t_range will be used in dynamic search criteria in a danamic program, i.e. a variant with type char40 in t_range, a variant with type raw in t_range. So it has to be defined as range of string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Ling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 05:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280935#M152750</guid>
      <dc:creator>ling_shi</dc:creator>
      <dc:date>2006-04-14T05:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search dump using range table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280936#M152751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of below code use read statement&lt;/P&gt;&lt;P&gt;if ls_ids-ch in t_range.&lt;/P&gt;&lt;P&gt;write:/ ls_ids-in.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;read t_range with key low = ls_ids-ch .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;write:/ ls_ids-in.&lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2006 05:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-dump-using-range-table/m-p/1280936#M152751</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-04-14T05:35:51Z</dc:date>
    </item>
  </channel>
</rss>

