<?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: Simple Correction to the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295688#M501242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;No question of using the fun module&lt;/P&gt;&lt;P&gt;it is of no use&lt;/P&gt;&lt;P&gt;it won't accept signs.&lt;/P&gt;&lt;P&gt;use the following code.&lt;/P&gt;&lt;P&gt;it will work&lt;/P&gt;&lt;P&gt;Data : V1(10) type c value ' 123-',&lt;/P&gt;&lt;P&gt;n2(10) TYPE n,&lt;/P&gt;&lt;P&gt;n3(11) TYPE n,&lt;/P&gt;&lt;P&gt;sign_flag(1).&lt;/P&gt;&lt;P&gt;IF V1 &amp;lt; 0.&lt;/P&gt;&lt;P&gt;V1 = V1 * -1 .&lt;/P&gt;&lt;P&gt;sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;V1 = - ( V1 ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move v1 to n2.&lt;/P&gt;&lt;P&gt;CONCATENATE n2 '-' into n3.&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; n3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 07:46:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T07:46:38Z</dc:date>
    <item>
      <title>Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295684#M501238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Data : V1(10) type c value '      123-', &lt;/P&gt;&lt;P&gt;       sign_flag(1).	&lt;/P&gt;&lt;P&gt;    IF V1 &amp;lt; 0.&lt;/P&gt;&lt;P&gt;      V1 = V1 * -1 .&lt;/P&gt;&lt;P&gt;      sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        INPUT  = V1&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT = V1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;      V1 = - ( V1 ).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Write : V1. 	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Above code is for Padding Leading Zeroes to Negative Number stored in field V1 with Data type C(10).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output of above code is =  123-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want it to be  = 000000123-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the correct modifications in the program.&lt;/P&gt;&lt;P&gt;Points will be given to the good ones.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tulip Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295684#M501238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T07:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295685#M501239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295685#M501239</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-05-23T07:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295686#M501240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this code/.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : V1(10) type c value ' 123-',&lt;/P&gt;&lt;P&gt;       v2(10) TYPE n,&lt;/P&gt;&lt;P&gt;       v3(11) TYPE n,&lt;/P&gt;&lt;P&gt;sign_flag(1).&lt;/P&gt;&lt;P&gt;IF V1 &amp;lt; 0.&lt;/P&gt;&lt;P&gt;V1 = V1 * -1 .&lt;/P&gt;&lt;P&gt;sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = V1&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = V1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;V1 = - ( V1 ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*v2 = v1.&lt;/P&gt;&lt;P&gt;move v1 to v2.&lt;/P&gt;&lt;P&gt;CONCATENATE v2 '-' into v3.&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; V1, / v3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295686#M501240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T07:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295687#M501241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V1 = '- 0000123'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write : V1(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this correction in ur code ..&lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295687#M501241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T07:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295688#M501242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;No question of using the fun module&lt;/P&gt;&lt;P&gt;it is of no use&lt;/P&gt;&lt;P&gt;it won't accept signs.&lt;/P&gt;&lt;P&gt;use the following code.&lt;/P&gt;&lt;P&gt;it will work&lt;/P&gt;&lt;P&gt;Data : V1(10) type c value ' 123-',&lt;/P&gt;&lt;P&gt;n2(10) TYPE n,&lt;/P&gt;&lt;P&gt;n3(11) TYPE n,&lt;/P&gt;&lt;P&gt;sign_flag(1).&lt;/P&gt;&lt;P&gt;IF V1 &amp;lt; 0.&lt;/P&gt;&lt;P&gt;V1 = V1 * -1 .&lt;/P&gt;&lt;P&gt;sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sign_flag = 'X'.&lt;/P&gt;&lt;P&gt;V1 = - ( V1 ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move v1 to n2.&lt;/P&gt;&lt;P&gt;CONCATENATE n2 '-' into n3.&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; n3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295688#M501242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T07:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295689#M501243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your replys&lt;/P&gt;&lt;P&gt;All above answers are not meeting my requirement.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295689#M501243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295690#M501244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295690#M501244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T08:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Correction to the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295691#M501245</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 this out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num = strlen(V1)&lt;/P&gt;&lt;P&gt;num2 = 10 - num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do num2 times.&lt;/P&gt;&lt;P&gt;concatenate '0' V1 into V1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sooness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-correction-to-the-code/m-p/2295691#M501245</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-05-23T08:29:05Z</dc:date>
    </item>
  </channel>
</rss>

