<?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: Where to clear variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887266#M1888647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aziz,&lt;/P&gt;&lt;P&gt;My requirement is let say in one invoice there are 10 line items, for every line item there is amount filed... it can be +ve amount in Debit case or -ve in credit case... i need to calculate the total amount of a invoice... if the total amount it -ve... than in the output file...which is in XML format... -ve amount should not be seen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if some more details are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 14:19:34 GMT</pubDate>
    <dc:creator>Anja292027</dc:creator>
    <dc:date>2015-02-19T14:19:34Z</dc:date>
    <item>
      <title>Where to clear variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887264#M1888645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement, it is FI interface where need to calculate CR ,Dr Amount.&lt;/P&gt;&lt;P&gt;Let say i have total 10 line items fora invoices... based on total amount i need to calculate if it is +ve amount it would be DR or if total amount is -ve than it would be credit... after calculating&amp;nbsp; the amount i am generating an output file in XML format. in XML file if tolal amount i-ve it should not show the -ve amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me here... where to clear this filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 11:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887264#M1888645</guid>
      <dc:creator>Anja292027</dc:creator>
      <dc:date>2015-02-19T11:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where to clear variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887265#M1888646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did not understand your query. Could you please reframe it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MAAUS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 12:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887265#M1888646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-19T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where to clear variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887266#M1888647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aziz,&lt;/P&gt;&lt;P&gt;My requirement is let say in one invoice there are 10 line items, for every line item there is amount filed... it can be +ve amount in Debit case or -ve in credit case... i need to calculate the total amount of a invoice... if the total amount it -ve... than in the output file...which is in XML format... -ve amount should not be seen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if some more details are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 14:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887266#M1888647</guid>
      <dc:creator>Anja292027</dc:creator>
      <dc:date>2015-02-19T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Where to clear variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887267#M1888648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i get you right you must have an internal table with you line items(the +ve and -ve records).&lt;/P&gt;&lt;P&gt;You must then be looping at that table and summing the values.&amp;nbsp; Once summed you check that value against the value you should have in your XML file...so i would suggest clearing the value of the invoice after you check it against the file value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_invoices assinging &amp;lt;lt_invoices&amp;gt;.&lt;/P&gt;&lt;P&gt;at end of &amp;lt;lt_invoices&amp;gt;-belnr.&lt;/P&gt;&lt;P&gt;*...check total value against XML&lt;/P&gt;&lt;P&gt;*...clear your variable here&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;lv_tot = lv_tot + &amp;lt;lt_invoices&amp;gt;-amount.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 15:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-clear-variable/m-p/10887267#M1888648</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2015-02-19T15:38:29Z</dc:date>
    </item>
  </channel>
</rss>

