<?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: Invoice smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391381#M1924488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pooja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Ciel,ROUND,Floor etc to round the value to its nearest value ( + or - ) by adding CODELINES in your Smartform at the corresponding window.Btw, truncate is not same as ROUNDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do search in SCN before posting your queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 09:58:37 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2015-12-16T09:58:37Z</dc:date>
    <item>
      <title>Invoice smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391380#M1924487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total amount value that gets printed on the smartform is GS_HD_KOMK-FKWRT. This is related to invoice smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This value has decimal values . &amp;lt;i want to round off this value and truncate the decimals . How do I do this in a smartform .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391380#M1924487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Invoice smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391381#M1924488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pooja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Ciel,ROUND,Floor etc to round the value to its nearest value ( + or - ) by adding CODELINES in your Smartform at the corresponding window.Btw, truncate is not same as ROUNDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do search in SCN before posting your queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391381#M1924488</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2015-12-16T09:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invoice smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391382#M1924489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pooja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In smartform there is program lines tab. in that&amp;nbsp; add code for rounding off the total amount.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;v_variable = CEIL( v_variable)&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;else.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;v_variable = FLOOR(v_variable).&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Try following code to truncate.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;data: lv_var type p decimals 5 value '12345.12345'.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;data: lv_str type string.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;data: lv_len type i.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;data: lv_offset type i.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;lv_str = lv_var.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;lv_len = strlen( lv_str ).&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;lv_offset = lv_len - 3.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;lv_var = lv_str(lv_offset).&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Reshma Patil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 10:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391382#M1924489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invoice smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391383#M1924490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pooja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can firsy round the value using ceil floor or any custom logic of yours. Then take a Char variable and then use &lt;/P&gt;&lt;P&gt;Write num to char decimals 0.&lt;/P&gt;&lt;P&gt;This will truncate your decimal values. Then map this char variable to your form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 02:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-smartform/m-p/11391383#M1924490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-17T02:23:08Z</dc:date>
    </item>
  </channel>
</rss>

