<?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: Run time Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424849#M1549772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Actually I am calcualting the due and over due amount. in current fiscal year I have to show the over due amount into &lt;/P&gt;&lt;P&gt;0 to 30 days , 31 to 60 days, 61 to 90 days, 91 to 120 days, and above 120 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I have calculated the due date and as per the due date from Key date(mean current date) . I am calculating the days of overdue&lt;/P&gt;&lt;P&gt;For this I have declared DUER1 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with Using ON CHANGE OF DUER1  and AT END OF DUER1. In both cases I did not got any result in those fields.&lt;/P&gt;&lt;P&gt;I thought may be its not the first field so I am not getting the result. So I made it as 2nd field. after that I got  run time  error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there any other way to get the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this code I got all the financial years amoount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_BSEG BY GJAHR DUER1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;AT END OF GJAHR.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;      LOOP AT IT_ITAB INTO WA_ITAB WHERE GJAHR = WA_BSEG-GJAHR.&lt;/P&gt;&lt;P&gt;           WA_ITAB-PRICE = WA_BSEG-DUE_AMT.&lt;/P&gt;&lt;P&gt;      MODIFY IT_ITAB FROM WA_ITAB TRANSPORTING PRICE SPART.&lt;/P&gt;&lt;P&gt;      CLEAR WA_ITAB.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now using thsi section of code to get the over due amount days like 0 to 30 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_BSEG BY DUER1.&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;AT END OF DUER1.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_ITAB INTO WA_ITAB WHERE GJAHR = WA_BSEG-DUER1.&lt;/P&gt;&lt;P&gt;       WA_ITAB-PRICE = WA_BSEG-DUE_AMT.&lt;/P&gt;&lt;P&gt;    MODIFY IT_ITAB FROM WA_ITAB.&lt;/P&gt;&lt;P&gt;    CLEAR WA_ITAB.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any way to sum both the fields at the same location and at the same time. I mean can I do this in this way&lt;/P&gt;&lt;P&gt;SORT IT_BSEG BY GJAHR DUER1.&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;AT END OF GJAHR DUER1.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;     LOOP AT IT_ITAB INTO WA_ITAB GJAHR = WA_BSEG-GJAHR.&lt;/P&gt;&lt;P&gt;     WA_ITAB-PRICE = WA_BSEG-DUE_AMT.&lt;/P&gt;&lt;P&gt;   MODIFY IT_ITAB FROM WA_ITAB.&lt;/P&gt;&lt;P&gt;   CLEAR WA_ITAB.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi Narayan Padhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi Narayan Padhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Narayan Padhi on Oct 28, 2010 6:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Oct 2010 11:47:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-28T11:47:25Z</dc:date>
    <item>
      <title>Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424847#M1549770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In my declartaion I have declared a field DUER1. This field gets data at the run time. But on this field I am using ATEND OF DUER!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this the filed must be at the first poiitonof my internal table. Befor that once I have used the ATEND of GJAHR.&lt;/P&gt;&lt;P&gt;So I made it my 2nd field.. In my select statement i coded this field at the 2nd position. When Iactivated the program its getting activating.&lt;/P&gt;&lt;P&gt;But while I am checking the out put in another client I am getting run time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution for this.&lt;/P&gt;&lt;P&gt; Or I have to put this field DUER! after all the predefined fields I have declared. How can this be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 10:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424847#M1549770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-28T10:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424848#M1549771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would do a manual groupchange check as the statements AT END OF, AT NEW are not to trust in such a complex scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 11:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424848#M1549771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-28T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424849#M1549772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Actually I am calcualting the due and over due amount. in current fiscal year I have to show the over due amount into &lt;/P&gt;&lt;P&gt;0 to 30 days , 31 to 60 days, 61 to 90 days, 91 to 120 days, and above 120 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I have calculated the due date and as per the due date from Key date(mean current date) . I am calculating the days of overdue&lt;/P&gt;&lt;P&gt;For this I have declared DUER1 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with Using ON CHANGE OF DUER1  and AT END OF DUER1. In both cases I did not got any result in those fields.&lt;/P&gt;&lt;P&gt;I thought may be its not the first field so I am not getting the result. So I made it as 2nd field. after that I got  run time  error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there any other way to get the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this code I got all the financial years amoount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_BSEG BY GJAHR DUER1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;AT END OF GJAHR.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;      LOOP AT IT_ITAB INTO WA_ITAB WHERE GJAHR = WA_BSEG-GJAHR.&lt;/P&gt;&lt;P&gt;           WA_ITAB-PRICE = WA_BSEG-DUE_AMT.&lt;/P&gt;&lt;P&gt;      MODIFY IT_ITAB FROM WA_ITAB TRANSPORTING PRICE SPART.&lt;/P&gt;&lt;P&gt;      CLEAR WA_ITAB.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now using thsi section of code to get the over due amount days like 0 to 30 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_BSEG BY DUER1.&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;AT END OF DUER1.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_ITAB INTO WA_ITAB WHERE GJAHR = WA_BSEG-DUER1.&lt;/P&gt;&lt;P&gt;       WA_ITAB-PRICE = WA_BSEG-DUE_AMT.&lt;/P&gt;&lt;P&gt;    MODIFY IT_ITAB FROM WA_ITAB.&lt;/P&gt;&lt;P&gt;    CLEAR WA_ITAB.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any way to sum both the fields at the same location and at the same time. I mean can I do this in this way&lt;/P&gt;&lt;P&gt;SORT IT_BSEG BY GJAHR DUER1.&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSEG INTO WA_BSEG.&lt;/P&gt;&lt;P&gt;AT END OF GJAHR DUER1.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;     LOOP AT IT_ITAB INTO WA_ITAB GJAHR = WA_BSEG-GJAHR.&lt;/P&gt;&lt;P&gt;     WA_ITAB-PRICE = WA_BSEG-DUE_AMT.&lt;/P&gt;&lt;P&gt;   MODIFY IT_ITAB FROM WA_ITAB.&lt;/P&gt;&lt;P&gt;   CLEAR WA_ITAB.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi Narayan Padhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi Narayan Padhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Narayan Padhi on Oct 28, 2010 6:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 11:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424849#M1549772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-28T11:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424850#M1549773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there any other way to get the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is the same question you asked in another post the other day - did you review the standard aging reports as I suggested?  I see no aging logic in your code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 13:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424850#M1549773</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-10-28T13:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424851#M1549774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have already calculated tall the due and over due amount. Also I am picking up the amount into each fiscal year. Also in My run time I am getting the desired overdue in which bucket it falls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used AT END of GJAHR to pick up the amounts for each fiscal year then SUM to calculate the total amount in the fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same syntax I am using to calculate if the desired amount falls in let 0 to 30 days bucket. But the amount is not picking up by my code. I have displayed the amount in my out put for each fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I checked the standard ageing report RFDOPR10 AND RFKOPR10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Narayan Padhi on Oct 29, 2010 6:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 05:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424851#M1549774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-29T05:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424852#M1549775</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;Please provide the run time error description.&lt;/P&gt;&lt;P&gt;You have made it as your second field. I donot think so the error will be from control break statements.&lt;/P&gt;&lt;P&gt;Check the select into clauses etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 13:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424852#M1549775</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-10-29T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424853#M1549776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Now I am not getting run time error, the field is getting value at the run time. So I changed the position of the field.After that the run time error is not coming. &lt;/P&gt;&lt;P&gt;Is  there any way out to get value using AT END OF DUER1. I can't make this field as first or second field. Already I have made my GJAHR as the first filed. I am calculating the over due amount as per each fiscal year. After that I am checking the over due amount for 0 to 30 days and 31 to 60 days and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I sort the field DUER1 as per the current financial year. I mean DUER1 should only be sorted at the current financial year in my internal table.&lt;/P&gt;&lt;P&gt;I tried using AT END of DUER1 also tried with using CASAE  ENDCASE statemment. desired result is not coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u suggest me any other way to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Oct 2010 05:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/7424853#M1549776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-30T05:25:01Z</dc:date>
    </item>
  </channel>
</rss>

