<?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: Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073692#M429723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;',' (comma) is not considered as any numeric value, so remove the comma, and do the calculations, &lt;/P&gt;&lt;P&gt;if the purpose of puttin comma there is for display means, while u display the data to the list, it will diplay with commas based on user settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2007 05:23:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-23T05:23:15Z</dc:date>
    <item>
      <title>Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073687#M429718</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;My query is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : v_rates(20) type c
          v_n1(20) tye c.

           v_rates = '23456,00000'.
          v_n1  = v_rates / 100.
           
          write : /  v_n1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;While Execution program goes to dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error message &amp;lt;b&amp;gt;unable to interpret v_rates as numer&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me with sample code how to convert text to packerd number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if helpful answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;SEK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073687#M429718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073688#M429719</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;       "pack" Converts type C variables to type P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PACK &amp;lt;f&amp;gt; TO &amp;lt;g&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Packs the string &amp;lt;f&amp;gt; and places it in the field &amp;lt;g&amp;gt;. This can be reversed with the UNPACK statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unpack &amp;lt;g&amp;gt; to &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073688#M429719</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-03-23T05:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073689#M429720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_rates(20) type c,&lt;/P&gt;&lt;P&gt;          v_n1(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           v_rates = '2345600000'.&lt;/P&gt;&lt;P&gt;          v_n1  = v_rates / 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          write : /  v_n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful......&lt;/P&gt;&lt;P&gt;Suresh......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073689#M429720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073690#M429721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Why are u taking the data as characters.&lt;/P&gt;&lt;P&gt;Why dont u take it as follows :&lt;/P&gt;&lt;P&gt;Data : v_rates type p&lt;/P&gt;&lt;P&gt;          v_n1 type p.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           v_rates = '23456,00000'.&lt;/P&gt;&lt;P&gt;          v_n1  = v_rates / 100.&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;          write : /  v_n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, if taking in a character format is mandatory then u can take them as numc as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_rates(20) type n&lt;/P&gt;&lt;P&gt;          v_n1(20) tye n.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           v_rates = '2345600000'.&lt;/P&gt;&lt;P&gt;          v_n1  = v_rates / 100.&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;          write : /  v_n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shud wrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073690#M429721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073691#M429722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;You get dump , because you cannot perform operation '/' on char type data field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead use :&lt;/P&gt;&lt;P&gt;Data : v_rates type p decimals 5 ,&lt;/P&gt;&lt;P&gt;          v_n1(20) tye c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then say v_rates = v_rates / 100 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then pass this value to v_n1 and then perform necessary changes in the display for v_n1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073691#M429722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073692#M429723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;',' (comma) is not considered as any numeric value, so remove the comma, and do the calculations, &lt;/P&gt;&lt;P&gt;if the purpose of puttin comma there is for display means, while u display the data to the list, it will diplay with commas based on user settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073692#M429723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073693#M429724</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;Thank you for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atuallt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cuuency exchange rates took form excel file into internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are uploading Currency rates in EUR format 55.605,00000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_rates(20) type c&lt;/P&gt;&lt;P&gt;          v_n1(20) tye c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           v_rates = '55.605,00000'.&lt;/P&gt;&lt;P&gt;           v_n1  = v_rates / 100.&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;           write : /  v_n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone plz help on this its urgent&lt;/P&gt;&lt;P&gt;&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;SEK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073693#M429724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073694#M429725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u need to replace all the ',' s with space, then proceed with the required operations.&lt;/P&gt;&lt;P&gt;Hops this hint may help u out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073694#M429725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073695#M429726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following case, u can use the numc data type as I hv defined in my code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly what I can see in ur code is that the decimal is represented by ',' and the place where ',' should be there, is the decimal. Is this the way u require.&lt;/P&gt;&lt;P&gt;Otherwise u can change the settings and get the currency to be displayed in the format 55,000.989.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073695#M429726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073696#M429727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check if below code helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: input type  bapicurr-bapicurr .&lt;/P&gt;&lt;P&gt;data: c(20) type c.&lt;/P&gt;&lt;P&gt;data: output(15) type p decimals 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;c = '215,654.54'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;clear sy-subrc.&lt;/P&gt;&lt;P&gt;while sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  replace ',' with space into c.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;condense c no-gaps.&lt;/P&gt;&lt;P&gt;input = c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA digit(11) VALUE ' 0123456789'.&lt;/P&gt;&lt;P&gt;PARAMETERS: text(16) DEFAULT '20,000.00'.&lt;/P&gt;&lt;P&gt;DATA c_text(16).&lt;/P&gt;&lt;P&gt;DATA amount TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;DATA n TYPE n.&lt;/P&gt;&lt;P&gt;DATA i TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_text = text.&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.&lt;/P&gt;&lt;P&gt;MOVE c_text TO amount.&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PREPARE_STRING'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_valid_chars = digit&lt;/P&gt;&lt;P&gt;i_xvalid_check = 'X'&lt;/P&gt;&lt;P&gt;i_xchar_repl = 'X'&lt;/P&gt;&lt;P&gt;i_xtoupper = 'X'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;c_string = c_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE c_text NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD amount DECIMALS n.&lt;/P&gt;&lt;P&gt;i = 10 ** n.&lt;/P&gt;&lt;P&gt;amount = c_text / i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ text, 50 amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/2073696#M429727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T05:54:37Z</dc:date>
    </item>
  </channel>
</rss>

