<?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: Initial(Prefix) zero gets truncated while saving data in table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512007#M1654965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Why dont you try to use NUMC if you are so keen on having the leading Zeros.This will store the document with leading Zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 14:05:26 GMT</pubDate>
    <dc:creator>vijaymanikandan</dc:creator>
    <dc:date>2012-02-21T14:05:26Z</dc:date>
    <item>
      <title>Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512002#M1654960</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;Through module pool, I am updating a custom table with field Doc_no whose domain has type CHAR(10) with Conversion Routine ALPHA applied on it.&lt;/P&gt;&lt;P&gt;What I need is incase user puts a single digit in DOC_NO, it should get stored with prefix zero i.e "0000000001". I have used function CONVERSION_EXIT_ALPHA_INPUT to convert single digit to "0000000001" in the module-pool. It gets converted at the interface level but while storing in table all the initial zero's get truncated.&lt;/P&gt;&lt;P&gt;Same functionality is also implemented in table VBAK &amp;amp; MARA for field VBELN &amp;amp; MATNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&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;Randhir Jha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 13:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512002#M1654960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-21T13:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512003#M1654961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Randhir.&lt;/P&gt;&lt;P&gt;Data stores as "0000000001" at database level, but in SE11 transaction you see it without leading zeroes by default (because of system conversion exit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see real values (with leading zeroes) go to: &lt;/P&gt;&lt;P&gt;SE11 transaction -&amp;gt; Menu -&amp;gt; Utilities -&amp;gt; Settings -&amp;gt; Function builder -&amp;gt; Switch off conversion exit while testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;George Shlyahov.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 13:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512003#M1654961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-21T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512004#M1654962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randhir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug at INSERT stmt, what value did you see? with zero's or without?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is with zero's it should apparently update the table well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to make sure of the issue, where are you checking the table entries, SE11 or SE16N.&lt;/P&gt;&lt;P&gt;If it is in SE16N, Doubleclick on the record to see value unconverted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 13:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512004#M1654962</guid>
      <dc:creator>former_member215575</dc:creator>
      <dc:date>2012-02-21T13:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512005#M1654963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Refer to the link [http://forums.sdn.sap.com/thread.jspa?threadID=402427]&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;Extract is here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to SE51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the program name -&amp;gt; SAPL + "Function group used to generate the screen".&lt;/P&gt;&lt;P&gt;Give the screen number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press change..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the layout..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the input field attributes for that NUMC field...Set the flag "LEADING ZEROES".&lt;/P&gt;&lt;P&gt;Activate the screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to SM30..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give 1 in the numc field and then press enter..You will see 0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you still need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 13:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512005#M1654963</guid>
      <dc:creator>vijaymanikandan</dc:creator>
      <dc:date>2012-02-21T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512006#M1654964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the prompt response.&lt;/P&gt;&lt;P&gt;I checked in debugger, it gets converted to "0000000001" but while updating the table it saves only 1. I tried with the setting you provided but it is not working. Actually after changing Setting, I changed one record in SE11 itself and saved it.&lt;/P&gt;&lt;P&gt;Again it truncated all the leading zero's.&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;Randhir Jha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 13:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512006#M1654964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-21T13:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512007#M1654965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Why dont you try to use NUMC if you are so keen on having the leading Zeros.This will store the document with leading Zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 14:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512007#M1654965</guid>
      <dc:creator>vijaymanikandan</dc:creator>
      <dc:date>2012-02-21T14:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512008#M1654966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The values of such fields as VBELN &amp;amp; MATNR will always be saved to database table with leading zeroes.&lt;/P&gt;&lt;P&gt;That's why it is impossible to create two records with "1" and "001" values.&lt;/P&gt;&lt;P&gt;For database these two records are identical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field has type char10, then values "1" and "001" are considered as the different by database.&lt;/P&gt;&lt;P&gt;In your case, an automatic transformation of types could take place before saving. When you specified "001" actually registered "1". Maybe you should choose another variable type (numeric).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;George Shlyahov.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 14:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512008#M1654966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-21T14:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Initial(Prefix) zero gets truncated while saving data in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512009#M1654967</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;Thanks for your reply. My problem is resolved.&lt;/P&gt;&lt;P&gt;Using NUMC although it was accepting leading zeros, but within the table if I double click on the record again it would show &lt;/P&gt;&lt;P&gt;document no without leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually problem was Conversion Routine. As I have mentioned earlier the data element which I was using has domain with conversion routine ALPHA assigned to it. This was truncating the leading zeros. I used same data type CHAR(10) without conversion routine and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway thanks everyone for your valuable contribution.&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;Randhir Jha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 05:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-prefix-zero-gets-truncated-while-saving-data-in-table/m-p/8512009#M1654967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T05:26:28Z</dc:date>
    </item>
  </channel>
</rss>

