<?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: Amount Conversion issue in sap script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369450#M1922741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im getting unexpected dump and decimal issue(sometimes comma as decimal and sometimes pullstop as decimal).&lt;/P&gt;&lt;P&gt;Im doing calculation in subroutine that is called script. Hence Im getting the above issue.&lt;/P&gt;&lt;P&gt;So did the calculation part in Driver program and used that value in Script. This solution worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 03:04:03 GMT</pubDate>
    <dc:creator>sreekanth_n2</dc:creator>
    <dc:date>2015-10-16T03:04:03Z</dc:date>
    <item>
      <title>Amount Conversion issue in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369448#M1922739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Im trying to print document in FBL1n transaction.&lt;/P&gt;&lt;P&gt; SAP Script is involved to show output.&lt;/P&gt;&lt;P&gt; In driver program, amount field is coming properly.&lt;/P&gt;&lt;P&gt; When the WRITE_FORM is executed, amount filed is change automatically with comma and pull stop.&lt;/P&gt;&lt;P&gt; for example, in one document of Singapore country, amount bseg-wrbtr is coming as 6.500,00&amp;nbsp;&amp;nbsp; i.e., comma as decimal&lt;/P&gt;&lt;P&gt; other doc of France country, amount amount bseg-wrbtr is coming as&amp;nbsp; 959,874,566.28&amp;nbsp;&amp;nbsp; i.e., pull stop as decimal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; for the same user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help in resolvnig the issue.&lt;/P&gt;&lt;P&gt;Let me know if you need addtional information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 03:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369448#M1922739</guid>
      <dc:creator>sreekanth_n2</dc:creator>
      <dc:date>2015-10-15T03:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Amount Conversion issue in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369449#M1922740</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;&lt;STRONG&gt;solution 1 :&lt;/STRONG&gt; Use like &amp;amp;bseg-wrbtr(K)&amp;amp; this is will bypass the conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;solution 2 :&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;The formatting for certain field types depends on the country settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;To choose a formatting option other than the one specified in the user master record,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt; use the SET COUNTRY control command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;The country-dependent formatting options are stored in the T005X table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;/: SET COUNTRY 'CAN'&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;/: SET COUNTRY &amp;amp;country_key&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;STRONG&gt;solution 3 :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;you can use this FM: CONVERT_TO_FOREIGN_CURRENCY&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;you have to write the fm code in your driver prgram&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;and get the correct value and then pass this value to sap script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;STRONG&gt;Code syntax&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;STRONG&gt;FORM get_amount TABLES it_intab&amp;nbsp; STRUCTURE itcsy&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_outtab&amp;nbsp; STRUCTURE itcsy.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;STRONG&gt;And in your SAP Script call this subroutine as follows :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;PERFORM get_amount&amp;nbsp; IN (program name)&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;CHANGING &amp;amp;V_AMOUNT((your variable name in which you have correct amt).)&amp;amp;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;thanks!!&lt;/P&gt;&lt;P style="background: #ffffff; text-align: left; color: #333333; text-indent: 0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 03:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369449#M1922740</guid>
      <dc:creator>former_member809980</dc:creator>
      <dc:date>2015-10-15T03:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Amount Conversion issue in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369450#M1922741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im getting unexpected dump and decimal issue(sometimes comma as decimal and sometimes pullstop as decimal).&lt;/P&gt;&lt;P&gt;Im doing calculation in subroutine that is called script. Hence Im getting the above issue.&lt;/P&gt;&lt;P&gt;So did the calculation part in Driver program and used that value in Script. This solution worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 03:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369450#M1922741</guid>
      <dc:creator>sreekanth_n2</dc:creator>
      <dc:date>2015-10-16T03:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Amount Conversion issue in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369451#M1922742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;please share what you have done in your driver program.. as you marked it correct answer.&lt;/P&gt;&lt;P&gt;&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, 16 Oct 2015 03:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-conversion-issue-in-sap-script/m-p/11369451#M1922742</guid>
      <dc:creator>former_member809980</dc:creator>
      <dc:date>2015-10-16T03:17:06Z</dc:date>
    </item>
  </channel>
</rss>

