<?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: convert pack to integer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711511#M2019151</link>
    <description>&lt;P&gt;Is your question about &lt;STRONG&gt;rounding a number with &lt;/STRONG&gt;&lt;B&gt;decimals &lt;/B&gt;&lt;B&gt;to its closest integer&lt;/B&gt; value? (half-down, half-up, ...?)&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 11:38:14 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-05-09T11:38:14Z</dc:date>
    <item>
      <title>convert pack to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711509#M2019149</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I want to convert pack quantity to integer.&lt;/P&gt;
  &lt;P&gt;Here is the field tpcny for below if condition i want to change field type to integer. Please refer below screenshot.&lt;/P&gt;
  &lt;P&gt;Declaration:&lt;/P&gt;
  &lt;P&gt;tpcny TYPE p DECIMALS 2.&lt;/P&gt;
  &lt;P&gt;IF wa_tcurr-fcurr = 'KRW' OR wa_tcurr-fcurr = 'IDR' .&lt;/P&gt;
  &lt;P&gt;??????&lt;/P&gt;
  &lt;P&gt;Endif.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2165776-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What will be the syntax for converting?&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 16:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711509#M2019149</guid>
      <dc:creator>former_member825671</dc:creator>
      <dc:date>2023-05-04T16:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: convert pack to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711510#M2019150</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;ankitashinde173&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;you can declare the field gs_output-tpcny like an integer (make attention on the lenght of the field). If you pass to that field a quantity with decimals, the value will be directly converted.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 09:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711510#M2019150</guid>
      <dc:creator>carlottas</dc:creator>
      <dc:date>2023-05-09T09:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert pack to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711511#M2019151</link>
      <description>&lt;P&gt;Is your question about &lt;STRONG&gt;rounding a number with &lt;/STRONG&gt;&lt;B&gt;decimals &lt;/B&gt;&lt;B&gt;to its closest integer&lt;/B&gt; value? (half-down, half-up, ...?)&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 11:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711511#M2019151</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-09T11:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: convert pack to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711512#M2019152</link>
      <description>&lt;P&gt;You can use an implicit conversion from packed to integer (move, &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Read online help, Conversion Rules for Elementary Data Objects, Numeric Source Fields, Source Field Type p, &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenconversion_type_p.htm#@@ITOC@@ABENCONVERSION_TYPE_P_1"&gt;Numeric Target Fields&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Or use functions related to conversion &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Read online help, Numeric Functions, &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abennumerical_functions.htm"&gt;num_func - abs, sign, ceil, floor, &lt;STRONG&gt;trunc&lt;/STRONG&gt;, frac&lt;/A&gt; or &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abendec_floating_point_functions.htm"&gt;num_func - &lt;STRONG&gt;round&lt;/STRONG&gt;, rescale&lt;/A&gt; - check the mod option values of round()&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 09 May 2023 13:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pack-to-integer/m-p/12711512#M2019152</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-05-09T13:32:44Z</dc:date>
    </item>
  </channel>
</rss>

