<?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: ALV Grid Filter problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201508#M470428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field for ekko ebeln on my report output.  (this is also char field..has con exit alpha, same as ur field )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while displaying on screen, it is displayed without leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried filtering with leading zeroes..without leaidng zeros...  with wildcard it is working perfect for all cases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie.. filter for 0042000003  and 42000003... got in both cases..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is all i have for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; COL_POS               = COL_POS + 1.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-COL_POS   = COL_POS.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-FIELDNAME = 'EBELN'.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-TABNAME   = P_DETAIL.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-REF_FIELD = 'EBELN'.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-REF_TABLE = 'EKKO'.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-KEY       = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND GT_FIELDCAT.&lt;/P&gt;&lt;P&gt;  CLEAR GT_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please modify ur fieldcat ? remove all this..&lt;/P&gt;&lt;P&gt;s_fieldcat-datatype = 'CHAR'.&lt;/P&gt;&lt;P&gt;s_fieldcat-no_zero = ''.&lt;/P&gt;&lt;P&gt;s_fieldcat-lzero = 'X'.&lt;/P&gt;&lt;P&gt;s_fieldcat-NO_CONVEXT = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2007 13:30:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-04T13:30:55Z</dc:date>
    <item>
      <title>ALV Grid Filter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201507#M470427</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'm having problems filtering columns of type 'CHAR' that contain numbers (for instance aufk-aufnr); initially the filter was not working, that is, I was filtering by an existing value and the result was no rows returned. Then I discovered that in the database there were leading zeroes not shown in the grid, so it made sense why there was no result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to keep the datatype as 'CHAR' in order to allow wildcards in the filter (something like '6001*' as a filter criteria, for instance) and I would be happy even with allowing the leading zeroes to be shown in the grid (ugly, but it would be at least consistent for the user). I tried setting the following properties and it didn't work (I'm using 4.6C):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcat-lzero       = 'X'. "I know it works only for numeric types, but I tried anyway&lt;/P&gt;&lt;P&gt;s_fieldcat-NO_CONVEXT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code for that column's definintion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;................................................&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcat.&lt;/P&gt;&lt;P&gt;  s_fieldcat-col_pos       = l_col_count.&lt;/P&gt;&lt;P&gt;  l_col_count = l_col_count + 1.&lt;/P&gt;&lt;P&gt;  s_fieldcat-tabname       = 'I_PROJECT'.   &lt;/P&gt;&lt;P&gt;  s_fieldcat-fieldname     = 'AUFNR'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-datatype      = 'CHAR'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-outputlen     = '12'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-seltext_l     = 'Internal Order'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-seltext_m     = 'Internal Order'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-seltext_s     = 'Internal Order'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-just          = 'C'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; s_fieldcat-lowercase     = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  s_fieldcat-no_zero       = ''.&lt;/P&gt;&lt;P&gt;  s_fieldcat-lzero       = 'X'.&lt;/P&gt;&lt;P&gt;  s_fieldcat-NO_CONVEXT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcat TO gt_fieldcat.&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discovered a half-solution: if we force that field to be numeric (s_fieldcat-inttype = 'N'.),  the filter will work for numeric selection, but the wildcards are not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the final question is: is there a way to make it work without forcing the numeric type? Even allowing leading zeroes would be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 13:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201507#M470427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T13:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Filter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201508#M470428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field for ekko ebeln on my report output.  (this is also char field..has con exit alpha, same as ur field )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while displaying on screen, it is displayed without leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried filtering with leading zeroes..without leaidng zeros...  with wildcard it is working perfect for all cases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie.. filter for 0042000003  and 42000003... got in both cases..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is all i have for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; COL_POS               = COL_POS + 1.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-COL_POS   = COL_POS.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-FIELDNAME = 'EBELN'.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-TABNAME   = P_DETAIL.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-REF_FIELD = 'EBELN'.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-REF_TABLE = 'EKKO'.&lt;/P&gt;&lt;P&gt;  GT_FIELDCAT-KEY       = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND GT_FIELDCAT.&lt;/P&gt;&lt;P&gt;  CLEAR GT_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please modify ur fieldcat ? remove all this..&lt;/P&gt;&lt;P&gt;s_fieldcat-datatype = 'CHAR'.&lt;/P&gt;&lt;P&gt;s_fieldcat-no_zero = ''.&lt;/P&gt;&lt;P&gt;s_fieldcat-lzero = 'X'.&lt;/P&gt;&lt;P&gt;s_fieldcat-NO_CONVEXT = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 13:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201508#M470428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T13:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Filter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201509#M470429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sujamol, it works now; the key components that solved the problem were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GT_FIELDCAT-REF_FIELD = '&amp;lt;fieldname&amp;gt;'.&lt;/P&gt;&lt;P&gt;GT_FIELDCAT-REF_TABLE = '&amp;lt;tablename&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 14:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-filter-problem/m-p/2201509#M470429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T14:54:38Z</dc:date>
    </item>
  </channel>
</rss>

