<?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: float values are not showing correctly. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611067#M1278625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi take your internal table field like packed type .  use the fallowing code to modify the content of internal table. See example below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:   float TYPE f, &lt;/P&gt;&lt;P&gt;             pack TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;float = 73050 * '0.0727'.                     " result: 5.3107349999999997E+03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pack = float. &lt;/P&gt;&lt;P&gt;WRITE pack.                                   " result: 5310.73&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;Deepanker Dwivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2009 07:12:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-22T07:12:26Z</dc:date>
    <item>
      <title>float values are not showing correctly.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611065#M1278623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have my  QA Trend Analysis Report in which I have field "mittelwert" whose data type is FLTP of length 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my internal table it_inspection contains...&lt;/P&gt;&lt;P&gt;mittelwert LIKE qamr-mittelwert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and selecting from my select query below:&lt;/P&gt;&lt;P&gt;SELECT * FROM qamv AS qamv&lt;/P&gt;&lt;P&gt;JOIN qals AS qals&lt;/P&gt;&lt;P&gt;ON  qamv&lt;SUB&gt;prueflos = qals&lt;/SUB&gt;prueflos&lt;/P&gt;&lt;P&gt;JOIN qamr AS qamr&lt;/P&gt;&lt;P&gt;ON qamr&lt;SUB&gt;prueflos = qamv&lt;/SUB&gt;prueflos&lt;/P&gt;&lt;P&gt;AND qamr&lt;SUB&gt;merknr = qamv&lt;/SUB&gt;merknr&lt;/P&gt;&lt;P&gt;AND qamr&lt;SUB&gt;vorglfnr = qamv&lt;/SUB&gt;vorglfnr&lt;/P&gt;&lt;P&gt; INTO CORRESPONDING FIELDS OF TABLE it_inspection&lt;/P&gt;&lt;P&gt;WHERE qals~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND qals~stat35 = p_ud&lt;/P&gt;&lt;P&gt;AND qals~pastrterm IN r_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting values as below in my report ALV output:&lt;/P&gt;&lt;P&gt;6.000000000E+00&lt;/P&gt;&lt;P&gt;5.600000000E+00&lt;/P&gt;&lt;P&gt;6.100000000E+00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I go and see in the tcode : qe01, by giving the Inspection lot values..&lt;/P&gt;&lt;P&gt;I have values as below which is of character type of length 16.&lt;/P&gt;&lt;P&gt; 6.00&lt;/P&gt;&lt;P&gt;5.60&lt;/P&gt;&lt;P&gt;6.10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the probelm is how can I show the values above in the report output ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611065#M1278623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: float values are not showing correctly.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611066#M1278624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM &lt;STRONG&gt;'FLTP_CHAR_CONVERSION'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FLTP_CHAR_CONVERSION'
  EXPORTING
    DECIM = L_CONVERT_DIGITS            "Decimals
    EXPON = 0
    INPUT = L_FLOAT                             " Input &amp;gt;&amp;gt;&amp;gt; Floating number
    IVALU = L_CONVERT_NOT_INITIAL
  IMPORTING
    FLSTR = L_CONVERT_CHARACTER. " Output &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611066#M1278624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: float values are not showing correctly.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611067#M1278625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi take your internal table field like packed type .  use the fallowing code to modify the content of internal table. See example below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:   float TYPE f, &lt;/P&gt;&lt;P&gt;             pack TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;float = 73050 * '0.0727'.                     " result: 5.3107349999999997E+03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pack = float. &lt;/P&gt;&lt;P&gt;WRITE pack.                                   " result: 5310.73&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;Deepanker Dwivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611067#M1278625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: float values are not showing correctly.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611068#M1278626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use the output from variable  STRING in your ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is similar to how it is done for the screen fields in your standard transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA
    : MITTELWERT LIKE QAMR-MITTELWERT VALUE '6.000000000E+00',
      STRING     TYPE CHAR20.

CALL FUNCTION 'QSS4_FSTRING_AUSGEBEN'
     EXPORTING
          I_NOTINI    = 'X'
          I_FLOAT     = MITTELWERT
          I_DECIMALS  = '2'         "No of decimals you require in the standard it is 2
     IMPORTING
          E_STRING    = STRING
*       TABLES
*            T_OPTIPOS   = OPTIPOS
          .

WRITE STRING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/float-values-are-not-showing-correctly/m-p/5611068#M1278626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:20:32Z</dc:date>
    </item>
  </channel>
</rss>

