<?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: Range-Table with NUMC-Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879436#M369422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop it_ranges.


  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
     EXPORTING
          input   = it_ranges-low
   IMPORTING
         OUTPUT  = it_ranges-low.
          
  modify table it_ranges transporting low.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 09:37:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T09:37:58Z</dc:date>
    <item>
      <title>Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879434#M369420</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;I already have been searching in the forum, but didn't find a solution for my problem (propably I'm only overlooking something).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to work with a range-table with a NUMC-Type (length=20) for the low-/high-values. Unfortunately, when I fill the range-table with values (e.g. SIGN=I - OPTION=CP - LOW=*9), the numc-values are always changed to numbers with leading zeroes. I know that this is the standard-behavior of numc-fields, but how can I use a numc-range-table right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879434#M369420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879435#M369421</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;  The only possible solution is to convert the values after getting/reading the value &lt;/P&gt;&lt;P&gt;  from the range using the FM 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879435#M369421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879436#M369422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop it_ranges.


  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
     EXPORTING
          input   = it_ranges-low
   IMPORTING
         OUTPUT  = it_ranges-low.
          
  modify table it_ranges transporting low.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879436#M369422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879437#M369423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answers. I tried to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: lt_table LIKE it_doc_id_ranges.
  DATA: ls_doc_id_range LIKE LINE OF lt_table.
  FIELD-SYMBOLS: &amp;lt;fs&amp;gt; LIKE LINE OF lt_table.

  ls_doc_id_range-sign = 'I'.
  ls_doc_id_range-option = 'CP'.
  ls_doc_id_range-low = '*9'.
  INSERT ls_doc_id_range INTO TABLE lt_table.

  LOOP AT lt_table ASSIGNING &amp;lt;fs&amp;gt;.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        input  = &amp;lt;fs&amp;gt;-low
      IMPORTING
        output = &amp;lt;fs&amp;gt;-low.
  ENDLOOP.

  SELECT * FROM zspec_doc_head INTO TABLE lt_docs WHERE doc_id IN lt_table.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is, that the wildcard (*) is removed anywhere - I guess at the insert-statement. Does anyone of you an idea what I can do to avoid this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets, Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879437#M369423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879438#M369424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use concatenate as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lt_table ASSIGNING &amp;lt;fs&amp;gt;.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        input  = &amp;lt;fs&amp;gt;-low
      IMPORTING
        output = &amp;lt;fs&amp;gt;-low.
concatenate '*'  &amp;lt;fs&amp;gt;-low into &amp;lt;fs&amp;gt;-low.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 10:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879438#M369424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T10:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879439#M369425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also modify the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify table it_ranges transporting low.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 10:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879439#M369425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T10:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879440#M369426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i hope thts wht u wanted ..see my demo code and change ur tables accrodingly.&lt;/P&gt;&lt;P&gt;reward if helpfull.&lt;/P&gt;&lt;P&gt;tables zgill_main.&lt;/P&gt;&lt;P&gt;  data: begin of lt_table occurs 0,&lt;/P&gt;&lt;P&gt;        sign(1),&lt;/P&gt;&lt;P&gt;        option(2),&lt;/P&gt;&lt;P&gt;        low(2),&lt;/P&gt;&lt;P&gt;        high(2),&lt;/P&gt;&lt;P&gt;        end of lt_table.&lt;/P&gt;&lt;P&gt;  DATA: ls_doc_id_range LIKE LINE OF lt_table.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fs&amp;gt; LIKE LINE OF lt_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;  include structure zgill_main.&lt;/P&gt;&lt;P&gt;  data end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_doc_id_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;  ls_doc_id_range-option = 'CP'.&lt;/P&gt;&lt;P&gt;  ls_doc_id_range-low = '*1'.&lt;/P&gt;&lt;P&gt;  move-corresponding ls_doc_id_range to lt_table.&lt;/P&gt;&lt;P&gt;  append lt_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; INSERT ls_doc_id_range INTO TABLE lt_table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT lt_table ASSIGNING &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        input  = &amp;lt;fs&amp;gt;-low&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        output = &amp;lt;fs&amp;gt;-low.&lt;/P&gt;&lt;P&gt;modify lt_table index sy-tabix.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM zgill_main INTO TABLE itab WHERE pernr IN lt_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;  write:/ itab-pernr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 10:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879440#M369426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879441#M369427</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;I think I will need some time to check your solutions. I write again when I know if I can use any of your solution or not &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Chandrasekhar: Do I really need the modify-statement? I thought it would be ok to use a field-symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 10:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879441#M369427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879442#M369428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyhow the range with the numc-value doesn't work. I traced the Database-Select (ST05) with the following result: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT WHERE "MANDT" = '001' AND "DOC_ID" LIKE '%0%                 00000000000000000000'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; He always includes the high-value too. If I fill in the high-value %0% too, there are at least some spaces in the select-statement between the two values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone use a range-table with numc-fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 11:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879442#M369428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T11:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879443#M369429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Amit: Unfortunately I can't use your solution. I don't know which standard-type abap does use in the range but it seems to be a char-type. I have defined a range-table in the Dictionary which uses a data-element which is part of the table-key on which I do my select-statement. This data-element is of type numc - the lenght is 20.&lt;/P&gt;&lt;P&gt;I'm not happy about this, but I have to use this data-element in the range-table, otherwise in case of changes I would have to adjust the range-table manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Chandrasekhar: Concatenate would be a solution but the original expression also could have been 6* or 5*7 and I wouldn't know what it was originally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 12:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879443#M369429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T12:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879444#M369430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;If original expression has * , then

search &amp;lt;fs&amp;gt;-low for '*'.
if sy-subrc NE 0.
 * then only use CONVERSION_EXIT_ALPHA_INPUT  and concatenate statement
ndif&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 14:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879444#M369430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Range-Table with NUMC-Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879445#M369431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandrasekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if the problem with the wildcards would be eliminated, the problem with the generated select-statement would still remain. I mean that the high-value is included in the stament in every case:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT WHERE "MANDT" = '001' AND "DOC_ID" LIKE '%0%                 00000000000000000000'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT WHERE "MANDT" = '001' AND "DOC_ID" LIKE '%0%                 %0%'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 15:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-table-with-numc-fields/m-p/1879445#M369431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T15:16:29Z</dc:date>
    </item>
  </channel>
</rss>

