<?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: calculation on chars in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037147#M85413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can convert the String field to char by FM CHAR_FLTP_CONVERSION and then perform the calculations. After the calculations you can again convert the Floating field to char field by using FM FLTP_CHAR_CONVERSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;P&gt;Pls. Reward appropriate points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2005 13:21:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-07T13:21:45Z</dc:date>
    <item>
      <title>calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037142#M85408</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;I have an amount in a char or string field. On any calculation(even absolute) on that field the decimal value is lost or shifted on either side.&lt;/P&gt;&lt;P&gt;I need this field as char only because I'm concatenating it with a sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037142#M85408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T13:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037143#M85409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about using field = field * -1 for switching the sign. In output you have several options in write ... using edit mask to place a sign and the decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037143#M85409</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-12-07T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037144#M85410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First do the required calculations not necesary to define as string.  While concatenating into another string, simply pass that value into a string type variable.  And finally concatenate those 2 strings into the final one.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037144#M85410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T13:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037145#M85411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initially declare the field as AMOUNT field.&lt;/P&gt;&lt;P&gt;Do, the necessary calculations on the field. Finally move this data into a char field and u can concatenate the '-' value to the char field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. award appropriate points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037145#M85411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T13:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037146#M85412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and just by the way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until last week I never tried but this works!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable = - variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be faster than&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable = variable * -1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037146#M85412</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2005-12-07T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037147#M85413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can convert the String field to char by FM CHAR_FLTP_CONVERSION and then perform the calculations. After the calculations you can again convert the Floating field to char field by using FM FLTP_CHAR_CONVERSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;P&gt;Pls. Reward appropriate points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037147#M85413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037148#M85414</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;For putting '-'sign in front of amount you can use&lt;/P&gt;&lt;P&gt;FM 'CLOI_PUT_SIGN_IN_FRONT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always refer currency field with write.&lt;/P&gt;&lt;P&gt;WRITE:/ sum_it-dwrbtr currency bkpf_it-waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and remaining manipulation you can do as usual before write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i know for which currencies the decimal is lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037148#M85414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037149#M85415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;initially I have this value in a string field...but as soon as I transfer it into an amount field, the decimal value gets lost or is shifted (as though divided by ten or hundred)...so I actually don reach the stage to reverse the sign...&lt;/P&gt;&lt;P&gt;and I have tried all the above but nothing is working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help...this is very unusual...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037149#M85415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037150#M85416</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;Change your CHAR field to &lt;/P&gt;&lt;P&gt;Data: amnt like bseg-wrbtr.(example).&lt;/P&gt;&lt;P&gt;So that you can do what ever manipulations you want.As i said you need to refer currency field while write statement.&lt;/P&gt;&lt;P&gt;When comes to Decimal for JPY and KOR you wont find Decimals for this currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help u.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If this helps u reward with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 14:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037150#M85416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037151#M85417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need a conversion from string to number - this would even happen implicit in calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try further with FM CHAR_FLTP_CONVERSION (or make some own coding like shift left, replace ',.'...). Only in case of correct conversion all the other hints can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 15:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037151#M85417</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-12-07T15:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037152#M85418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first move the string to a variable with type p decimals 2 , carry out the calculations and move back the result to the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 15:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-on-chars/m-p/1037152#M85418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T15:55:38Z</dc:date>
    </item>
  </channel>
</rss>

