<?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: Padding Zeros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578968#M1566172</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 function module 'HRPBSNO_FORMAT_ZERO' for adding zeros to left.&lt;/P&gt;&lt;P&gt;Data: pfield1 TYPE p DECIMALS 2 VALUE '123.99',&lt;/P&gt;&lt;P&gt;         cfield1(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cfield1 =   pfield1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HRPBSNO_FORMAT_ZERO'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      left          = '4'&lt;/P&gt;&lt;P&gt;      right         = '2'&lt;/P&gt;&lt;P&gt;      in_separator  = ' '&lt;/P&gt;&lt;P&gt;      out_separator = '.'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      str           = cfield1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Jan 2011 10:23:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-30T10:23:39Z</dc:date>
    <item>
      <title>Padding Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578967#M1566171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know there are a lot of threads that talk about padding zeros, but I could not find the solution to my prolem by seraching threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is  ... how do convert below ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123.99 to 0123.99&lt;/P&gt;&lt;P&gt;  23.99 to 0023.99&lt;/P&gt;&lt;P&gt;    2.99 to 0002.99 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that single statement to dynamically pad zeros before the numbers, can MASK EDIT do it? or CONVERSION_EXIT_ALPHA_INPUT, or do I need to use SHIFT statement or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest, a small code snippet would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jan 2011 05:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578967#M1566171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-30T05:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Padding Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578968#M1566172</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 function module 'HRPBSNO_FORMAT_ZERO' for adding zeros to left.&lt;/P&gt;&lt;P&gt;Data: pfield1 TYPE p DECIMALS 2 VALUE '123.99',&lt;/P&gt;&lt;P&gt;         cfield1(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cfield1 =   pfield1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HRPBSNO_FORMAT_ZERO'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      left          = '4'&lt;/P&gt;&lt;P&gt;      right         = '2'&lt;/P&gt;&lt;P&gt;      in_separator  = ' '&lt;/P&gt;&lt;P&gt;      out_separator = '.'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      str           = cfield1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jan 2011 10:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578968#M1566172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-30T10:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Padding Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578969#M1566173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frozen Monkey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use WRITE, press F1m check USING EDIT MASK option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jan 2011 17:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/padding-zeros/m-p/7578969#M1566173</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-01-30T17:33:05Z</dc:date>
    </item>
  </channel>
</rss>

