<?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: need to put procedding zero before a number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693541#M889375</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;my restrictio nis to declare the varialble type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i want to put a leading zero in front of values in the varialbel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fir egh variable has valure&lt;/P&gt;&lt;P&gt;659&lt;/P&gt;&lt;P&gt;i want to pass it further as 0659&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 06:29:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-17T06:29:35Z</dc:date>
    <item>
      <title>need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693536#M889370</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 wnat to put zero digit bofre a number which is coming in a variable...pls sugest for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do we use concatenate or i dont want to use alpha input etc functionon module only one zero i want to put not all empty space to zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so pls suggest how to put a zero before a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;egang;e number in varialbe as comiing is 587&lt;/P&gt;&lt;P&gt;i want it like to be 0587 ie zero in fron of it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 05:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693536#M889370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T05:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693537#M889371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:accno(10) type n.&lt;/P&gt;&lt;P&gt;accno = '1405'.&lt;/P&gt;&lt;P&gt;unpack accno to accno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare the variable type N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: v_amt(10) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the value to v_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Use the FM : CONVERSION_EXIT_ALPHA_INPUT to convert it to 10 digit number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 05:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693537#M889371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T05:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693538#M889372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi murali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as i told i dont want to use this FM as it put leading zeros in front i want only single zeroo not leading zeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693538#M889372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693539#M889373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the easiest way is declare it of type N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : var(4) TYPE N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693539#M889373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693540#M889374</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;STRONG&gt;option 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate '0' '8' into variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;option2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;declare a vairable like below.&lt;/P&gt;&lt;P&gt;data: myvar(2) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move: '8' to myvar.&lt;/P&gt;&lt;P&gt;now my var will be 08&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;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693540#M889374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693541#M889375</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;my restrictio nis to declare the varialble type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i want to put a leading zero in front of values in the varialbel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fir egh variable has valure&lt;/P&gt;&lt;P&gt;659&lt;/P&gt;&lt;P&gt;i want to pass it further as 0659&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693541#M889375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693542#M889376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Try the below code and reward accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: var(10) TYPE c.&lt;/P&gt;&lt;P&gt;MOVE '587' TO var.&lt;/P&gt;&lt;P&gt;CONCATENATE '0' var INTO VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693542#M889376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693543#M889377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i suppose u are not getting my point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a varialbe say var1 it has value 567&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to put a leading zero infront of this value ONLY&lt;/P&gt;&lt;P&gt;now after  puting leading zero the var1 is = 0567&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and concetenate doesentl work as var1 is a char field it give error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693543#M889377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693544#M889378</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;Send the declarations which you have done.&lt;/P&gt;&lt;P&gt;so that i can test before posting the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the code i sen works fine in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And var variable in my last post is defined as char type only, you can have a one more look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693544#M889378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: need to put procedding zero before a number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693545#M889379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proceed as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: v_cout TYPE charn.  "Here replace 'n' by any number say char20

v_cout = '123456'.

CONCATENATE '0' v_cout INTO v_cout.

WRITE:/ v_cout.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the output gets displayed as &lt;STRONG&gt;0123456&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't work out then send me your code so that I can modify the same and send it back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Maddineni Bharath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-put-procedding-zero-before-a-number/m-p/3693545#M889379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:51:49Z</dc:date>
    </item>
  </channel>
</rss>

