<?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: Need help in writing the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843464#M1591146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the get curser and parllel curser u can help it out in this case syst variable in sy-tabx&lt;/P&gt;&lt;P&gt;when u use the above stmts u can do in whaich debuging can be done but see that a set of stmt should be used ids that&lt;/P&gt;&lt;P&gt;refeseh&lt;/P&gt;&lt;P&gt;loop and &lt;/P&gt;&lt;P&gt;append should be kept must so that ur record will be displayed in the given table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 09:08:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-13T09:08:30Z</dc:date>
    <item>
      <title>Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843463#M1591145</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;My table data is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunnr  BDAT EDAT  D1 D2 D3 D4 D5&lt;/P&gt;&lt;P&gt;1111    2001  2002   1      2    1      2     1&lt;/P&gt;&lt;P&gt;1111    2003  2008   1      0    4     1      2&lt;/P&gt;&lt;P&gt;1111    2008  2011   1      1    1     1      1&lt;/P&gt;&lt;P&gt;2222    2003  2008   1      2    2             2&lt;/P&gt;&lt;P&gt;2222    2008  2011           1    2     1      1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here for kunnr  between begin and end date we have to caluclate the dependencies. (I.e if there is any value in D1or D2 or D3orD4 it shoulbe counted as 1. of it is zero or blank then it should not be coutned).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Ex: for 1111 between 2001 &amp;amp; 2002 tot dependencies are 5.             &lt;/P&gt;&lt;P&gt;           for 1111 between 2003 &amp;amp; 2008 tot dependencies are 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this scenario what will be the best way of writing the code. Do we need to check each and every field when counting the Sum value or and simple way to improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vishnuvadhan K on May 13, 2011 10:30 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;Moderator Message: This is not a forum, where you can get your work done by others.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on May 13, 2011 3:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 08:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843463#M1591145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T08:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843464#M1591146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the get curser and parllel curser u can help it out in this case syst variable in sy-tabx&lt;/P&gt;&lt;P&gt;when u use the above stmts u can do in whaich debuging can be done but see that a set of stmt should be used ids that&lt;/P&gt;&lt;P&gt;refeseh&lt;/P&gt;&lt;P&gt;loop and &lt;/P&gt;&lt;P&gt;append should be kept must so that ur record will be displayed in the given table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 09:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843464#M1591146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T09:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843465#M1591147</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;I am not sure if i really understand what your saying. &lt;/P&gt;&lt;P&gt;Can you please give the skeliton of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 09:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843465#M1591147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T09:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843466#M1591148</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;First Sort your Internal Table.Then Use the Control Statements like AT END OF ,AT FIRST etc in a  Loop on the Internal  table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do your Calculation part in these Control Statemests between blocks for Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF (Field1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO SUM and Store it in another Variable in the Ineternal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write your Internal table contents .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i wrongly Understood ,Please let  me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 09:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843466#M1591148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843467#M1591149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, you will have to check for the range of your begin date &amp;amp; end date. If it comes in the said range, then you simply have to add the values of your D1, D2,... DX values which you can store in some variables by setting out a flag as one counter for each.&lt;/P&gt;&lt;P&gt;If your case is satisfied for any of the date range, then just check for the flag values which are satisfied &amp;amp; add them or display the sum of the number of counters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Ambujavalli, At End Of won't work here because the date ranges given by Vishnu will differ.&lt;/P&gt;&lt;P&gt;Those statements are useful in a case when suppose for the same field value, you need to calculate a particular sum. &lt;/P&gt;&lt;P&gt;Here, that is not the case. Hence, AT First &amp;amp; At End Of won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gayathri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gnikesh88 on May 13, 2011 11:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 09:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843467#M1591149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T09:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843468#M1591150</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;I can't add the values of D1, D2..Dx. This fields may cantain either 1 or 2 or any value. But if it is greate than one, then cound should be one. otherwise do not count it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 09:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843468#M1591150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843469#M1591151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just keep counters for them and add up the number of those counters for which your condition is satisfied.&lt;/P&gt;&lt;P&gt;Please check out my modified comments for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gayathri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 09:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-writing-the-code/m-p/7843469#M1591151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T09:57:58Z</dc:date>
    </item>
  </channel>
</rss>

