<?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: problem checking condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862396#M363975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all sort the Internal table.&lt;/P&gt;&lt;P&gt;And then loop at it.&lt;/P&gt;&lt;P&gt;Next, at end of the % Field, SUM.&lt;/P&gt;&lt;P&gt;And then move all the fields to may be another internal table.&lt;/P&gt;&lt;P&gt;And then endat and then endloop.&lt;/P&gt;&lt;P&gt;Now you can pass this new internal table to the smart form and get it printed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2007 07:40:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-01T07:40:14Z</dc:date>
    <item>
      <title>problem checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862395#M363974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m working in smartform &lt;/P&gt;&lt;P&gt;want the sum of service tax which are same &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i m geting indivisual service tax for each item&lt;/P&gt;&lt;P&gt;but i want to sum all the service tax which are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example i m getting like this &lt;/P&gt;&lt;P&gt;service tax 10.20 % 10&lt;/P&gt;&lt;P&gt;service tax 4.0% 4&lt;/P&gt;&lt;P&gt;service tax 10.20 % 100&lt;/P&gt;&lt;P&gt;service tax 4.0% 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want like below&lt;/P&gt;&lt;P&gt;service tax 10.20 % 110&lt;/P&gt;&lt;P&gt;service tax 4.0% 54&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wote below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( t_komv-waers = '%' OR t_komv-kschl = 'JSRE' OR&lt;/P&gt;&lt;P&gt;t_komv-kschl = 'JSRF' ).&lt;/P&gt;&lt;P&gt;IF t_komv-kschl = 'JSRE' .&lt;/P&gt;&lt;P&gt;g_percentage = t_komv-kbetr / 10.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;g_percentage1 = t_komv-kbetr / 10.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;add t_komv-kwert to l_stax-amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( t_komv-waers = '%' OR t_komv-kschl = 'JSER' OR&lt;/P&gt;&lt;P&gt;t_komv-kschl = 'JSVD' ).&lt;/P&gt;&lt;P&gt;IF t_komv-kschl = 'JSER' .&lt;/P&gt;&lt;P&gt;g_percentage = t_komv-kbetr / 10.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;g_percentage1 = t_komv-kbetr / 10.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;add t_komv-kwert to l_stax-amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( t_komv-waers = '%' OR t_komv-kschl = 'JSRC' OR&lt;/P&gt;&lt;P&gt;t_komv-kschl = 'JSRD' ).&lt;/P&gt;&lt;P&gt;IF t_komv-kschl = 'JSRC' .&lt;/P&gt;&lt;P&gt;g_percentage = t_komv-kbetr / 10.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;g_percentage1 = t_komv-kbetr / 10.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;add t_komv-kwert to l_stax-amt.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( ( g_percentage IS NOT INITIAL AND&lt;/P&gt;&lt;P&gt;g_percentage1 IS NOT INITIAL ) AND&lt;/P&gt;&lt;P&gt;( t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' OR&lt;/P&gt;&lt;P&gt;t_komv-kschl = 'JSER' OR t_komv-kschl = 'JSVD' OR&lt;/P&gt;&lt;P&gt;t_komv-kschl = 'JSRC' OR t_komv-kschl = 'JSRD') ).&lt;/P&gt;&lt;P&gt;g_mul = g_percentage * g_percentage1.&lt;/P&gt;&lt;P&gt;g_percentage3 = g_percentage + ( g_mul / 100 ).&lt;/P&gt;&lt;P&gt;l_stax-per = g_percentage3.&lt;/P&gt;&lt;P&gt;append l_stax to it_stax.&lt;/P&gt;&lt;P&gt;clear : g_percentage, g_percentage1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advanced&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 07:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862395#M363974</guid>
      <dc:creator>laxman_sankhla3</dc:creator>
      <dc:date>2007-02-01T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862396#M363975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all sort the Internal table.&lt;/P&gt;&lt;P&gt;And then loop at it.&lt;/P&gt;&lt;P&gt;Next, at end of the % Field, SUM.&lt;/P&gt;&lt;P&gt;And then move all the fields to may be another internal table.&lt;/P&gt;&lt;P&gt;And then endat and then endloop.&lt;/P&gt;&lt;P&gt;Now you can pass this new internal table to the smart form and get it printed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 07:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862396#M363975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T07:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862397#M363976</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;U can store the condition in an internal table and collect the values in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF T_PERCENTAGE OCCURS 0,
               KBETR(7) TYPE C,
               KWERT    LIKE KONV-KWERT,
           END    OF T_PERCENTAGE.



WRITE: T_KONV-KBETR CURRENCY '3' TO  T_PERCENTAGE-KBETR.

T_PERCENTAGE-KWERT = T_KONV-KWERT.
COLLECT T_PERCENTAGE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 07:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862397#M363976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T07:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862398#M363977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much Max Bianchi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer helps me to understand, in VA03 tab condition price item, the difference between : &lt;/P&gt;&lt;P&gt;-  value of field KOMV-KBETR (program SAPLV69A)  displayed in DEBUG&lt;/P&gt;&lt;P&gt;--  &lt;STRONG&gt;DEBUG shows  '20.000'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- and what is displayed in the corresponding screen field KOMV-KBETR (screen 640 of  SAPLV69A).&lt;/P&gt;&lt;P&gt;-- &lt;STRONG&gt;the value displayed in the screen is '2,000'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordialement,&lt;/P&gt;&lt;P&gt;Chaouki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 12:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-checking-condition/m-p/1862398#M363977</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2008-10-31T12:06:32Z</dc:date>
    </item>
  </channel>
</rss>

