<?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: Adding Zero's before material using Functional Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055908#M1502615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try FM : CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jul 2010 15:33:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-14T15:33:10Z</dc:date>
    <item>
      <title>Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055907#M1502614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how to add zeros before the material using functional module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have mateial of length 18 character&lt;/P&gt;&lt;P&gt;now i have material as "MCV23456" which is 8-digit,my requirement is to add addtional zeros before the&lt;/P&gt;&lt;P&gt;material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT=MCV23456&lt;/P&gt;&lt;P&gt;OUTPUT=0000000000MCV23456.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest suitable Functional Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 15:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055907#M1502614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055908#M1502615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try FM : CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 15:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055908#M1502615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055909#M1502616</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 tried this FM is used for only mumeric values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 15:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055909#M1502616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055910#M1502617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different ways of doing this.. Call the Function Module "CONVERSION_EXIT_ALPHA_INPUT" or user Overlay like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: matnr TYPE matnr.
matnr = '12345'.
SHIFT matnr RIGHT deleting TRAILING space.
overlay matnr WITH '000000000000000000'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 15:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055910#M1502617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055911#M1502618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;MCV23456 which is 8-digit&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see three characters that are not digits...Are you sure you need to do this?  Material is an &lt;STRONG&gt;alpha&lt;/STRONG&gt; field!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you look at the domain for MATNR, you'll see that there is a conversion routine MATN1...But it doesn't shift and left zero fill...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 15:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055911#M1502618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055912#M1502619</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;You can try the same function module "CONVERSION_EXIT_ALPHA_INPUT".&lt;/P&gt;&lt;P&gt;If this is only working for numeric values, then declare a temporary variable with type numeric and pass the value to temporary variable and use that in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 15:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055912#M1502619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T15:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055913#M1502620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Come on guys, really?  3 people suggested CONVERSION_EXIT_ALPHA_INPUT for a mixed alpha-numeric field value?  I guess BP is the only one paying attention today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just have to ask: why would you zero-fill a mixed field anyway?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 17:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055913#M1502620</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-07-14T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055914#M1502621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BP - Barack Petroleum?  LOL....  Thanks, though, Brad....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 17:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055914#M1502621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T17:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055915#M1502622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;CONVERSION_EXIT_MATN1_INPUT.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Every time you need to see what conversion function a field is using go to SE11-&amp;gt;Domain (MATNR in this case)-&amp;gt;double click on "Convers. Routine". You will get the list of INPUT/OUTPUT FM's used in the conversion for this domain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 20:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055915#M1502622</guid>
      <dc:creator>agustin_cusse</dc:creator>
      <dc:date>2010-07-14T20:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055916#M1502623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you can't by default...read the question and look at the value.  MATN1 does nothing when the value contains alphas unless you force it by implementing BADI BADI_MATN1 or the old style enhancement provided...Configured material templates don't fire for non-numeric values either as far as I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can implement some wacky code in the BADI to get that result though - don't know why you would want to anyway...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 21:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055916#M1502623</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-07-14T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055917#M1502624</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; If you use CONVERSION_EXIT_ALPHA_INPUT for mixed values then the result is going to be material+spaces,  using this external to internal converison f.m it adds leading zeros for numeric material only.  if the material is going to be mixed value then you can calculate the length of the material and move 18 - length as leading zeros to new 18 character field followed  by material.&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;Manjunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 21:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055917#M1502624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055918#M1502625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; There are different ways of doing this.. Call the Function Module "CONVERSION_EXIT_ALPHA_INPUT" or user Overlay like this.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;DATA: matnr TYPE matnr.
&amp;gt; matnr = '12345'.
&amp;gt; SHIFT matnr RIGHT deleting TRAILING space.
&amp;gt; overlay matnr WITH '000000000000000000'.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Correct the code&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh has the answer, but, like Brad I am wondering why you would ever want to do this.  Can you enlighten us?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 21:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055918#M1502625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T21:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Zero's before material using Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055919#M1502626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;MCV23456 which is 8-digit&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I see three characters that are not digits...Are you sure you need to do this?  Material is an &lt;STRONG&gt;alpha&lt;/STRONG&gt; field!&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; However, if you look at the domain for MATNR, you'll see that there is a conversion routine MATN1...But it doesn't shift and left zero fill...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Man! you are just too literal.  You probably correct people who use o instead of 0 when saying a number.  Like 1"o" 4 5 instead of 1 "zero" 4 5.  We all know what is meant even though it is not &lt;EM&gt;literally&lt;/EM&gt; correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 21:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-zero-s-before-material-using-functional-module/m-p/7055919#M1502626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-14T21:57:14Z</dc:date>
    </item>
  </channel>
</rss>

