<?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: Function Module to put leading zero in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694298#M304668</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;chk this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = in_value&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = out_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls mark helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 04:51:41 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-11-07T04:51:41Z</dc:date>
    <item>
      <title>Function Module to put leading zero</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694295#M304665</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;Function that puts leading zeros. I am getting a text file which has got cost center as 1234, but i need to put leading zero in order to check the availability of the value in the table csks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a function module which puts leading zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 04:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694295#M304665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T04:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to put leading zero</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694296#M304666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT for getting leading zeros&lt;/P&gt;&lt;P&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  = IBSIS-ZUONR&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                OUTPUT = IBSIS-ZUONR&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                OTHERS = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 04:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694296#M304666</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-11-07T04:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to put leading zero</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694297#M304667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data : l_val type lifnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = l_val
IMPORTING
OUTPUT = l_val.

write : l_val&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 04:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694297#M304667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T04:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to put leading zero</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694298#M304668</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;chk this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = in_value&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = out_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls mark helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 04:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694298#M304668</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-07T04:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to put leading zero</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694299#M304669</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;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 04:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694299#M304669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T04:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to put leading zero</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694300#M304670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; Use FM &amp;lt;b&amp;gt;'CONVERSION_EXIT_ALPHA_INPUT'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FU CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Conversion exit ALPHA, external-&amp;gt;internal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.&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 field and output field are both eight characters in length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. '1234    ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;2. 'ABCD    ' --&amp;gt; 'ABCD    '&lt;/P&gt;&lt;P&gt;3. ' 1234   ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;INPUT&lt;/P&gt;&lt;P&gt;OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;ALFA&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 05:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-put-leading-zero/m-p/1694300#M304670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T05:12:57Z</dc:date>
    </item>
  </channel>
</rss>

