<?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>Question Re: Numeric output format on SAPscript: what am I missing? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13600994#M4817513</link>
    <description>The only possible reason is a SET COUNTRY somewhere. In debug, add a Statement Breakpoint on SET COUNTRY to locate where it's sent by the standard.</description>
    <pubDate>Fri, 09 Feb 2024 19:02:12 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2024-02-09T19:02:12Z</dc:date>
    <item>
      <title>Numeric output format on SAPscript: what am I missing?</title>
      <link>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaq-p/13600872</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;this is an ancient and much discussed issue, and yes, I've been all over the site like a rash looking for solutions/explanations. So far, no joy.&lt;/P&gt;&lt;P&gt;This concerns the numeric output format on a custom Purchase Order output in ECC6.&amp;nbsp; Here are the things I know, and the measures I have taken.&lt;/P&gt;&lt;P&gt;Driver program is ours;&amp;nbsp; heavily customised from the original.&amp;nbsp; SAP script ditto.&amp;nbsp; For output values,&amp;nbsp; the SAPscript is using numeric fields directly from EKKO and EKPO, rather than a character based 'carrier' structure.&amp;nbsp; The POs are all for our India Purchase Org., and they are all in rupees.&amp;nbsp; The vendors in the POs are based in India, and their currency is rupees also.&amp;nbsp; Our plant/company are in India.&amp;nbsp; The SAPscript is always invoked using the 'EN' language version.&lt;/P&gt;&lt;P&gt;The driver program contains these two lines of ABAP, executed before the form is opened:&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;SET COUNTRY 'GB'.
ITCPO-TELELAND = 'GB'.&lt;/LI-CODE&gt;&lt;P&gt;These are here because we &lt;U&gt;always want the numeric output in UK format&lt;/U&gt;;&amp;nbsp; &lt;EM&gt;i.e.&lt;/EM&gt; 999,999.00.&amp;nbsp; And lots of posts advise using both of these, although the second one seems pretty unlikely to me: it's supposed to influence the phone number, not quantities/values.&lt;/P&gt;&lt;P&gt;In the SAP script, the&amp;nbsp;SET COUNTRY 'GB' is repeated as a control command.&amp;nbsp; there are no other SET COUNTRY commands in either the driver program or the SAPscript.&lt;/P&gt;&lt;P&gt;The actual output lines in the SAPscript look like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;,,&amp;amp;EKPO-MENGE(.2ZC)&amp;amp; ,,&amp;amp;EKPO-MEINS&amp;amp; ,,&amp;amp;EKPO-MFZHI(.2ZC)&amp;amp; ,,&amp;amp;EKPO-NETPR(.2ZC)&amp;amp; 
&amp;amp;EKKO-WAERS&amp;amp; &amp;amp;'Per 'EKPO-PEINH(ZC)&amp;amp; ,,,,&amp;amp;EKPO-NETWR&amp;amp;&lt;/LI-CODE&gt;&lt;P&gt;Normal, in other words.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now here's the thing.&amp;nbsp; I have 2 almost identical POs, one of which outputs all decimal numbers in UK format: 999,999.99 - and the other of which outputs all decimal numbers in the wrong format:&amp;nbsp; 999.999,00&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I am executing both of them, and my default numeric format is UK.&amp;nbsp; The only difference in the POs is that one has more items than the other.&amp;nbsp; Otherwise remarkably similar.&amp;nbsp; Same IN10 Org., same currency (INR), same vendor country (IN), same ordering plant country (IN).&amp;nbsp; The NAST entries are identical (same printer, albeit I'm previewing both documents).&amp;nbsp;&amp;nbsp;There are some legacy WRITE commands in the driver program:&amp;nbsp; they work perfectly in both cases (UK format result).&lt;/P&gt;&lt;P&gt;So the question is, why are my two outputs behaving differently?&amp;nbsp; What other attributes influence the format of numeric outputs in SAPscripts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect I've missed something really obvious.&amp;nbsp; Thanks for reading.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 17:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaq-p/13600872</guid>
      <dc:creator>johnm16</dc:creator>
      <dc:date>2024-02-09T17:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric output format on SAPscript: what am I missing?</title>
      <link>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13600994#M4817513</link>
      <description>The only possible reason is a SET COUNTRY somewhere. In debug, add a Statement Breakpoint on SET COUNTRY to locate where it's sent by the standard.</description>
      <pubDate>Fri, 09 Feb 2024 19:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13600994#M4817513</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-02-09T19:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric output format on SAPscript: what am I missing?</title>
      <link>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13602103#M4817742</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;that's exactly what I ended up doing (should have done it 3 hours earlier), and as you correctly surmised, there's a SET COUNTRY command buried in a function call within a chunk of conditional code.&amp;nbsp; What was unexpected was why one of two almost identical POs would call that routine and the other wouldn't;&amp;nbsp; as ever, no time to dig that far.&lt;/P&gt;&lt;P&gt;Thank you for taking the trouble to post when you should really have been mellowing on down for the weekend!&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 08:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13602103#M4817742</guid>
      <dc:creator>johnm16</dc:creator>
      <dc:date>2024-02-12T08:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric output format on SAPscript: what am I missing?</title>
      <link>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13602182#M4817759</link>
      <description>Thanks for the feedback!</description>
      <pubDate>Mon, 12 Feb 2024 09:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/numeric-output-format-on-sapscript-what-am-i-missing/qaa-p/13602182#M4817759</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-02-12T09:39:55Z</dc:date>
    </item>
  </channel>
</rss>

