<?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: Add leading zero to matnr in a conversion program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896461#M374638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that in configuration, the Indicator for lexicographical material numbers is unchecked?  If it checked, then SAP will not then the all numeric material numbers will not get leading zeros by default.   =====&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Indicator for lexicographical material numbers&lt;/P&gt;&lt;P&gt;Defines the way numeric material numbers are stored in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Caution&lt;/P&gt;&lt;P&gt;It is only possible to set or reset (cancel) this indicator if no numeric material numbers have been used yet in the system since they would no longer be interpretable after setting or resetting this indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this indicator is not set, numeric material numbers are padded with leading zeros and stored right-justified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2007 20:02:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-26T20:02:07Z</dc:date>
    <item>
      <title>Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896453#M374630</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;&lt;/P&gt;&lt;P&gt;When uploading matnr from a text legacy file , should i add leading zeroes to the sku value. For ex the data from the lagacy is 1000123456 (10 digits length). The values are always numbers. The matnr in SAP is 18 chars. Should my program transform it into 000000001000123456 before saving it into mara-matnr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Oli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896453#M374630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T18:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896454#M374631</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 use this FM CONVERSION_EXIT_ALPHA_INPUT to add leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT  = WA_MATNR
  IMPORTING
    OUTPUT = WA_MATNR.

...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896454#M374631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T18:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896455#M374632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it will implicitly use conversion exits for your values but prior to this you need to these values to the exact table field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, Use conversion exits before passing these values to a conversion program&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt; is used to convert from external to internal format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896455#M374632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896456#M374633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you should convert it,  you can use the function module CONVERSION_EXIT_MATN1_INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896456#M374633</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-26T18:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896457#M374634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot to all of you for your prompt answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896457#M374634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T18:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896458#M374635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's another, admittedly dirty(!) way of doing it - &lt;/P&gt;&lt;P&gt;SHIFT MATNR RIGHT DELETING TRAILING SPACE.&lt;/P&gt;&lt;P&gt;OVERLAY MATNR WITH '000000000000000000' ONLY SPACE.&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896458#M374635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896459#M374636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets keep going, how many DIFFERENT ways to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's another....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: c(18) type c value '12345'.
data: n(18) type n.

n = c.
c = n.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896459#M374636</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-26T19:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896460#M374637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Oli bumchi...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as simply u can use UNPACK statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr = '12345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unpack matnr to matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896460#M374637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T19:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896461#M374638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that in configuration, the Indicator for lexicographical material numbers is unchecked?  If it checked, then SAP will not then the all numeric material numbers will not get leading zeros by default.   =====&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Indicator for lexicographical material numbers&lt;/P&gt;&lt;P&gt;Defines the way numeric material numbers are stored in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Caution&lt;/P&gt;&lt;P&gt;It is only possible to set or reset (cancel) this indicator if no numeric material numbers have been used yet in the system since they would no longer be interpretable after setting or resetting this indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this indicator is not set, numeric material numbers are padded with leading zeros and stored right-justified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 20:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896461#M374638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T20:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896462#M374639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oli,&lt;/P&gt;&lt;P&gt;use Funciton Module  'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT  = input_value
  IMPORTING
    OUTPUT = output_value.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 20:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896462#M374639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add leading zero to matnr in a conversion program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896463#M374640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am facing similar issue... my matnr is not getting printed in alv... i appended extra zeros in front then it came... my question is matnr has implicit conversion right? so what is the need of expicit conversion function module... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-leading-zero-to-matnr-in-a-conversion-program/m-p/1896463#M374640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-06T13:32:48Z</dc:date>
    </item>
  </channel>
</rss>

