<?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: Getting minimum charge indiactor on form in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183832#M1373643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please help me out with this if possible? The work done  mentioned above fails somehow for some invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Help will be gretaly appreciated .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 17:08:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-25T17:08:25Z</dc:date>
    <item>
      <title>Getting minimum charge indiactor on form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183830#M1373641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a slight issue in printing of the minimum charge flag &lt;/P&gt;&lt;P&gt;on my invoicewhen there are transportation line on the document.&lt;/P&gt;&lt;P&gt;A minimum value charge is charged when the total of the invoice is lesser than&lt;/P&gt;&lt;P&gt;the minim set charge , in our case is 250 , so whenever the invoice total&lt;/P&gt;&lt;P&gt; is less than 250 automatically the invoice should print 'min charge' in place of &lt;/P&gt;&lt;P&gt;unit price and the value in the total. I am having the problem when theer are &lt;/P&gt;&lt;P&gt;transportation line on the documnet , then the minimum charge indicator dosent act correctly and &lt;/P&gt;&lt;P&gt;shows min charge flag even when it should not be a min mun charge one.&lt;/P&gt;&lt;P&gt;my code doing it is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
** Set minimum charge flag when there is transportation line
read table gt_gen_del into ws_gen_del
 with key uepos = gs_gen_del-itm_number.
if sy-subrc = 0.
  loop at gt_konv into gs_konv
  where kposn = gs_gen_del-itm_number
    and kschl = 'ZAMW'   "minimun value
    or  kposn = ws_gen_del-itm_number.
    ws_kwert = ws_kwert + gs_konv-kwert.

* Method of excluding the markup and adding the minimum value
    if ws_kwert &amp;gt;= g_item_tot and ws_kwert &amp;lt;&amp;gt; 0.
      g_item_tot = ws_kwert.
      read table is_bil_invoice-it_kond into ls_kond
      with key
      itm_number = gs_gen_del-itm_number
      kschl      = 'ZSER'.
      if sy-subrc = 0.
        ls_kond-kwert = ls_kond-kwert - gs_gen_del-kzwi3.
        modify is_bil_invoice-it_kond from ls_kond index sy-tabix.
      endif.
      clear gs_gen_del-kzwi3.
      g_min_charge_flag = 'X'.
    endif.
  endloop.
else.
* When there is no transportation line
  loop at gt_konv into gs_konv
    where kposn = gs_gen_del-itm_number
      and kschl = 'ZAMW'.   "minimun value

* Method of excluding the markup and adding the minimum value
    if gs_konv-kwert &amp;gt;= g_item_tot and gs_konv-kwert &amp;lt;&amp;gt; 0.
      g_item_tot = gs_konv-kwert .
      read table is_bil_invoice-it_kond into ls_kond
        with key
            itm_number = gs_gen_del-itm_number
            kschl      = 'ZSER'.
      if sy-subrc = 0.
        ls_kond-kwert = ls_kond-kwert - gs_gen_del-kzwi3.
        modify is_bil_invoice-it_kond from ls_kond index sy-tabix.
      endif.
      clear gs_gen_del-kzwi3.
      g_min_charge_flag = 'X'.
    endif.
    exit.
  endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please help me out correcting this so that this works ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aarav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 20:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183830#M1373641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T20:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting minimum charge indiactor on form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183831#M1373642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COuld anyone please be kind enough to help m eout with this .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 21:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183831#M1373642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T21:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting minimum charge indiactor on form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183832#M1373643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please help me out with this if possible? The work done  mentioned above fails somehow for some invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Help will be gretaly appreciated .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-minimum-charge-indiactor-on-form/m-p/6183832#M1373643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T17:08:25Z</dc:date>
    </item>
  </channel>
</rss>

