<?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: filter on character fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642457#M286094</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;use the function module&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt; converts any number into a string fill with zeroes, with the number at the extreme right&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input  = 123 &lt;/P&gt;&lt;P&gt;output = 0000000000000...000000000000123 &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 07:21:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-08T07:21:01Z</dc:date>
    <item>
      <title>filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642456#M286093</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;  Is there any way to have filter on character fields to get the data even if the input is not given without padding zeroes before the data. for eg in ALV grid display if the data is having 7 characters but total field length is 10 chars then in filter we have give 3 zeroes leading to the data to get the filtered condition. is there any way to avoid this so that the users can give directly the data without leading zeroes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 07:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642456#M286093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T07:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642457#M286094</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;use the function module&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt; converts any number into a string fill with zeroes, with the number at the extreme right&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input  = 123 &lt;/P&gt;&lt;P&gt;output = 0000000000000...000000000000123 &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 07:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642457#M286094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T07:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642458#M286095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;l_var (fild which u declared)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the function module&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in export  pass l_val&lt;/P&gt;&lt;P&gt;in import  get  l_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok&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;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 07:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642458#M286095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T07:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642459#M286096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way is to use the data element for the particular field similar to VBELN. In that case you can enter the filter with or without zero's and it would be taken care off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 08:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642459#M286096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642460#M286097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sathya, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your itab declare the same field referring to Db table.&lt;/P&gt;&lt;P&gt;this will take care of the padding of zeros as alpha routine is applied on that filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the user can proceed with the same by not giving the input padded with zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below code will give u an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : val1 like  vbak-vbeln value '0005002030'.
data : val(10) type c  value '0005002030'.

write:/ val.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input        = val
 IMPORTING
   OUTPUT        = val.

write:/ val.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input         = val1
 IMPORTING
   OUTPUT        = val1.


write:/ val1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i agree with anurag ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 09:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642460#M286097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T09:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642461#M286098</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 have declared the fields same as the database field only. But in the report only if we pad zeroes manually the filter is working. How can I apply the function module when the user clicks filter for all the character fields. I think it is impossible. but I wnat to avoid the users to enter zeroes before the input. please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 12:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642461#M286098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T12:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642462#M286099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not work like that as it is the property of the domain/data element which drives that ...If you follow my post..you need to define the field like VBELN to use the particular property of the domain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 12:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642462#M286099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T12:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: filter on character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642463#M286100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   If you have declared the field inside an internal table, loop that internal table and pass the value to the FM CONVERSION_EXIT_ALPHA_INPUT,by which you will be able to filter for all the character fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yamini.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 13:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-on-character-fields/m-p/1642463#M286100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T13:21:35Z</dc:date>
    </item>
  </channel>
</rss>

