<?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: Decimal Notation in Check Printing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992334#M1605713</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;You have written routine so that it fetches value from routine to script .&lt;/P&gt;&lt;P&gt;the value returned from routine to script  will be in char format , in routine you mite have declared variable as numeric and transfering the value to variable type of char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solution is you have to explicitly has to format the variable to have have separators. there are lot of funcions available for this.&lt;/P&gt;&lt;P&gt;you can check on sdn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 05:43:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-06T05:43:01Z</dc:date>
    <item>
      <title>Decimal Notation in Check Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992332#M1605711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am facing a problem in displaying amount value in SAP script. Actually i have written a form routine which returns a amount value to Check print SAP script. For example my form routine return 50000.00 to script, it should display as 50,000.00 where as it's displaying 50000..00.&lt;/P&gt;&lt;P&gt;Please help me. Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 20:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992332#M1605711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-03T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Notation in Check Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992333#M1605712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smarty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's no a bug, it's a feature: Probably the display field is of length 8. The formatted output of 50,000.00 is 9 characters wide. ABAP will try to remove the thousand's separator to fit in the field. If this is not enough it will add a * at the end, try 500000.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the reason then SAPScript formatting may use [Omitting the Separator for u2018Thousandsu2019|http://help.sap.com/saphelp_nw73/helpdata/en/d1/803486454211d189710000e8322d00/frameset.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or User settings are responsible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You did not post more information, so this is just guessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 21:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992333#M1605712</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-06-03T21:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Notation in Check Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992334#M1605713</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;You have written routine so that it fetches value from routine to script .&lt;/P&gt;&lt;P&gt;the value returned from routine to script  will be in char format , in routine you mite have declared variable as numeric and transfering the value to variable type of char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solution is you have to explicitly has to format the variable to have have separators. there are lot of funcions available for this.&lt;/P&gt;&lt;P&gt;you can check on sdn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 05:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992334#M1605713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T05:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Notation in Check Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992335#M1605714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the decimal settings in the 'Conuntry Global Parameters' for the country code being used. check the below path in SPRO.&lt;/P&gt;&lt;P&gt;SAP Customizing Implementation Guide &lt;DEL&gt;&amp;gt; SAP NetWeaver&lt;/DEL&gt;&amp;gt;General settings&lt;DEL&gt;&amp;gt;Set Countries&lt;/DEL&gt;&amp;gt;Define Countries in my SAP System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijaymadhur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 05:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992335#M1605714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Notation in Check Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992336#M1605715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your form routine : &lt;/P&gt;&lt;P&gt;Suppose v_amount is your amount field, then convert it into character format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : v_char_amount(18) type c.

data :     v_decimal_notation TYPE xudcpfm,"Decimal notation
              v_replace_char TYPE char1,      "Character with which the decimal seperator should be modified
              v_search_char  TYPE char1.      "Character with which the factor should be searched

v_char_amount =  v_amount.

*selecting the settings for the field decimal notation
*from user master table
  SELECT SINGLE dcpfm
                INTO  v_decimal_notation
                FROM usr01
                WHERE bname = sy-uname.
  IF sy-subrc = 0.
    CASE v_decimal_notation.
      WHEN 'X'.
        v_search_char  = '.'.
        v_replace_char = ','.
      WHEN OTHERS.
        v_search_char  = ','.
        v_replace_char = '.'.
    ENDCASE.
  ENDIF.

    IF v_char_amount IS NOT INITIAL.
*     search the variable for the character with which the decimal seperator
*     needs to be replaced
      SEARCH v_char_amount FOR v_search_char.
*     if the decimal separator is not the same as the user settings then replace it
*     as per the user settings
      IF sy-subrc &amp;lt;&amp;gt; 0.
        REPLACE ALL OCCURRENCES OF v_replace_char IN v_char_amount WITH v_search_char.
      ENDIF.
    ENDIF.

* Noe move character field to your original amount field.

Move v_char_amount to  v_amount. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will display your amount field based user user settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mr.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 06:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992336#M1605715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T06:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Notation in Check Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992337#M1605716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All for your unconditional help. My problem is solved. What i did is before returning to script i moved the value to currency type field(NETWR) and used the write statement to move to returning parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regard.&lt;/P&gt;&lt;P&gt; AH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-notation-in-check-printing/m-p/7992337#M1605716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T07:54:03Z</dc:date>
    </item>
  </channel>
</rss>

