<?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: Declaring variable dynamic of decimal format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987867#M1341916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you possibly put the full snippet of ABAP code that will achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only am an amateur ABAP'er, and work on your expertise syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2009 07:44:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-14T07:44:53Z</dc:date>
    <item>
      <title>Declaring variable dynamic of decimal format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987865#M1341914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN Community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you possibly provide a sample of how to declare a variable to be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the situation is that using the TABLE CLASS INTERFACE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the numbers from I_VALUE come in as long decimal places. eg. 20.58498497&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wish to have a declaration to then use this further in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;DATA: ROUNDEDNUMBER type i DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want instead of 2, to have this dynamic, &lt;/P&gt;&lt;P&gt;the dynamic value is populated by I_NUMERIC_PRECISION which is derived from the settings of the Bex query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence my anticipated result is 20.6 (which has been rounded as well)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen Field symbols achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987865#M1341914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring variable dynamic of decimal format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987866#M1341915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY THIS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEC_NO IS THE VARIABLE WITH THE MAX 14 DECIMALS.&lt;/P&gt;&lt;P&gt;GET YOUR NUMBER IN DEC_NO AND THEN ASSIGN IT TO THE FIELD SYMBOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: DEC_NO TYPE P DECIMALS 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN DEC_NO TO &amp;lt;FS_DEC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE &amp;lt;FS_DEC&amp;gt; IN YOUR FURTHER CODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987866#M1341915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring variable dynamic of decimal format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987867#M1341916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you possibly put the full snippet of ABAP code that will achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only am an amateur ABAP'er, and work on your expertise syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987867#M1341916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T07:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring variable dynamic of decimal format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987868#M1341917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write i_display_value to lv_replace_value&lt;/P&gt;&lt;P&gt;      no-sign decimals i_numerical_precision.&lt;/P&gt;&lt;P&gt;    condense lv_replace_value no-gaps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 00:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987868#M1341917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T00:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring variable dynamic of decimal format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987869#M1341918</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;&lt;/P&gt;&lt;P&gt;I had the same issue und solved it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_decim &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;numc1 &lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lr_packed &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;fs_packed&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ANY&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lr_packed &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;p &lt;SPAN class="L0S52"&gt;DECIMALS &lt;/SPAN&gt;lv_decim&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;lr_packed&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs_packed&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 11:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable-dynamic-of-decimal-format/m-p/5987869#M1341918</guid>
      <dc:creator>martin_boerger</dc:creator>
      <dc:date>2014-07-25T11:39:57Z</dc:date>
    </item>
  </channel>
</rss>

