<?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: Leading Zero's in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175770#M1822542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hi Sujan T,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Does the user always expects a leading zero even if the value has 7 digits?&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;If so, then after you use the FM &lt;SPAN style="color: #333333; font-size: 12px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt;CONVERSION_EXIT_ALPHA_OUTPUT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt;use the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; color: navy; font-style: inherit; font-weight: inherit;"&gt;CONCATENATE '0'&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;358934' into new_value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 16:07:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-14T16:07:33Z</dc:date>
    <item>
      <title>Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175764#M1822536</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;&amp;nbsp;&amp;nbsp; I am facing the problem with leading zeros.I am getting the&amp;nbsp; value for the field ZZMATNR is '00000000000000000000000000000000000000000000000000358934'.But user is expecting the value '0358934'.&lt;/P&gt;&lt;P&gt;I used the function module '&lt;SPAN style="color: navy;"&gt;CONVERSION_EXIT_ALPHA_OUTPUT'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy;"&gt;I am getting the value is '&lt;/SPAN&gt;358934'.But user expecting the value is '0358934'.&lt;/P&gt;&lt;P&gt;In the table itself the value is '0358934'.&lt;/P&gt;&lt;P&gt;Please help me how to code this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sujan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175764#M1822536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T13:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175765#M1822537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where is you problem, code a conversation_exit.&lt;/P&gt;&lt;P&gt;Here is the docu to it. If you face some problems, use the search.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm" title="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm"&gt;SAP Library - Domains&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a specific problem and not suitable for the whole system, you also can use the write_statement explained here&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_470/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm" title="http://help.sap.com/saphelp_470/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm"&gt;SAP Library - ABAP Programming (BC-ABA)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case it is in a Form, Sapscript or Smartforms, you use the wrong space and there, you got other options to solve the problem.&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;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175765#M1822537</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2014-03-14T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175766#M1822538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the actual conversion exit, if any, associated to your customer field ZZMATNR (thru its domain definition) is this actually ALPHA ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt it, an ALPHA conversion-exit would not allow an internal value of '0358934' except if length of domain is 7 or if "someone" updated the database with OPEN-SQL statement forgetting the conversion-exit (CONVERSION_EXIT_XXXX_INPUT) and generating records that can no longer be selected on this field value when executed in correct program &lt;SPAN __jive_emoticon_name="angry" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/angry.gif"&gt;&lt;/SPAN&gt;&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;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175766#M1822538</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-03-14T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175767#M1822539</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;Can't we use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SHIFT MATNR DELETING ADJACANT DELETING ZERO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175767#M1822539</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2014-03-14T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175768#M1822540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as Raymond said, you will have to use a different conversion exit (once there is one). I suppose your ZZMATNR is the same type as MATNR (but for a different purpose). The conversion exit there is MATN1, which will decide on how many leading zeros are to be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so use &lt;SPAN style="color: #333333;"&gt;C&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; color: navy;"&gt;ONVERSION_EXIT_MATN1_OUTPUT instead (if this is your case)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175768#M1822540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T15:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175769#M1822541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the data element associated to field &lt;SPAN style="color: #333333; font-size: 12px;"&gt;ZZMATNR and check the domain of the data element, does it has a conversion routine assigned. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* Create a data element say Type : CHAR and ;length 7 and assign this data element to ZZMATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175769#M1822541</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-14T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175770#M1822542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hi Sujan T,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Does the user always expects a leading zero even if the value has 7 digits?&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;If so, then after you use the FM &lt;SPAN style="color: #333333; font-size: 12px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt;CONVERSION_EXIT_ALPHA_OUTPUT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt;use the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: navy;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; color: navy; font-style: inherit; font-weight: inherit;"&gt;CONCATENATE '0'&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;358934' into new_value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 16:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175770#M1822542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175771#M1822543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;those are really business-orientated solutions &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 16:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175771#M1822543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175772#M1822544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hi Sujan T,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;check the domain output characteristics for MATNR it is having conversion routine "MATN1"&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;so u can use "CONVERSION_EXIT_MATN1_OUTPUT" .&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;here you can avoid all leading zeros..&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;but if u want 'ONE' leading zero then u need to concatenate it after conversion .. as john suggested .&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 16:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leading-zero-s/m-p/10175772#M1822544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T16:41:06Z</dc:date>
    </item>
  </channel>
</rss>

