<?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 reg the logic required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546334#M853182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;LOOP AT it_output INTO wa_output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if wa_output-bldat  &amp;lt;= p_date.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_datum_bis                   = p_date&lt;/P&gt;&lt;P&gt;        i_datum_von                   = wa_output-bldat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_EXCL_VON                 = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_INCL_BIS                 = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_ULT_BIS                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_ULT_VON                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_STGMETH                     = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SZBMETH                     = '1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       e_tage                        = wa_date&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   days_method_not_defined       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                        = 2.&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF wa_date &amp;lt;= 30.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO amount.&lt;/P&gt;&lt;P&gt;      amount = amount + wa_output-wrbtr1.&lt;/P&gt;&lt;P&gt;      move amount to wa_output-wrbtr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF wa_date &amp;gt; 30 AND wa_date =&amp;lt; 60.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO wa_output-wrbtr2.&lt;/P&gt;&lt;P&gt;      amount1 = amount1 + wa_output-wrbtr2.&lt;/P&gt;&lt;P&gt;      move amount1 to wa_output-wrbtr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSEIF wa_date &amp;gt; 60 AND wa_date &amp;lt;= 90.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO wa_output-wrbtr3.&lt;/P&gt;&lt;P&gt;.     amount2 = amount2 + wa_output-wrbtr3.&lt;/P&gt;&lt;P&gt;      move amount2 to wa_output-wrbtr3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSEIF wa_date &amp;gt; 90.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO wa_output-wrbtr4.&lt;/P&gt;&lt;P&gt;      amount3 = amount3 + wa_output-wrbtr4.&lt;/P&gt;&lt;P&gt;      move amount3 to wa_output-wrbtr4.&lt;/P&gt;&lt;P&gt;      append wa_output to it_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   append wa_output to it_output.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODIFY it_output FROM wa_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;in this code the the wa_output is not filling all the data,&lt;/P&gt;&lt;P&gt;it is picking all the data ,,when it come out of the loop wrbtr3 is&lt;/P&gt;&lt;P&gt;becoming 0, but wrbtr4 is getting the value..........it is getting value becoming the wa_date is more the 90....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrtbr3 also i need to get...&lt;/P&gt;&lt;P&gt;pls on this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some body can help to fill the all the fields when it come out of the loop,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2008 13:37:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-20T13:37:16Z</dc:date>
    <item>
      <title>reg the logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546334#M853182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;LOOP AT it_output INTO wa_output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if wa_output-bldat  &amp;lt;= p_date.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_datum_bis                   = p_date&lt;/P&gt;&lt;P&gt;        i_datum_von                   = wa_output-bldat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_EXCL_VON                 = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_INCL_BIS                 = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_ULT_BIS                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KZ_ULT_VON                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_STGMETH                     = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SZBMETH                     = '1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       e_tage                        = wa_date&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   days_method_not_defined       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                        = 2.&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF wa_date &amp;lt;= 30.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO amount.&lt;/P&gt;&lt;P&gt;      amount = amount + wa_output-wrbtr1.&lt;/P&gt;&lt;P&gt;      move amount to wa_output-wrbtr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF wa_date &amp;gt; 30 AND wa_date =&amp;lt; 60.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO wa_output-wrbtr2.&lt;/P&gt;&lt;P&gt;      amount1 = amount1 + wa_output-wrbtr2.&lt;/P&gt;&lt;P&gt;      move amount1 to wa_output-wrbtr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSEIF wa_date &amp;gt; 60 AND wa_date &amp;lt;= 90.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO wa_output-wrbtr3.&lt;/P&gt;&lt;P&gt;.     amount2 = amount2 + wa_output-wrbtr3.&lt;/P&gt;&lt;P&gt;      move amount2 to wa_output-wrbtr3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSEIF wa_date &amp;gt; 90.&lt;/P&gt;&lt;P&gt;      MOVE wa_output-wrbtr TO wa_output-wrbtr4.&lt;/P&gt;&lt;P&gt;      amount3 = amount3 + wa_output-wrbtr4.&lt;/P&gt;&lt;P&gt;      move amount3 to wa_output-wrbtr4.&lt;/P&gt;&lt;P&gt;      append wa_output to it_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   append wa_output to it_output.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODIFY it_output FROM wa_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;in this code the the wa_output is not filling all the data,&lt;/P&gt;&lt;P&gt;it is picking all the data ,,when it come out of the loop wrbtr3 is&lt;/P&gt;&lt;P&gt;becoming 0, but wrbtr4 is getting the value..........it is getting value becoming the wa_date is more the 90....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrtbr3 also i need to get...&lt;/P&gt;&lt;P&gt;pls on this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some body can help to fill the all the fields when it come out of the loop,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 13:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546334#M853182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T13:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: reg the logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546335#M853183</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;Why are you modifying the output table after appeninding it? Is there any reason for that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you are reading a record where date is more than 90, are sure there is value in wrbtr3? if there is no value this field wa_output-wrbrt3 will be empty because the loop is reading a different record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have doubts get in touch with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 13:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546335#M853183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T13:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: reg the logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546336#M853184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anil, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i removed that appending,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the last loop wrbtr4 is getting value , so it  wrbtr3 is not getting the valueee..it is becoming empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case what would be the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help on this issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 13:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546336#M853184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T13:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: reg the logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546337#M853185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;append wa_output to it_output&lt;/STRONG&gt; after &lt;STRONG&gt;endif&lt;/STRONG&gt; or&lt;/P&gt;&lt;P&gt;append it in every if-else loops. No need to modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 13:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546337#M853185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: reg the logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546338#M853186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramya,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it i use append it is taking lot of time,, after dump is coming showing time is exceeded...what to do in that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 14:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-logic-required/m-p/3546338#M853186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T14:00:50Z</dc:date>
    </item>
  </channel>
</rss>

