<?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: *More time to Execute* in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004408#M956674</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;For each end every employye there may not be data for all the 20 wage types from lga01 bet01..................lga20 and bet20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your code it is better to exit the do loop IF wa_p8wage-lgart IS INITIAL rather than looping 20 times even there is no data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because wage types will be assigned to an employee in the same sequence form 1,2......20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the lga03 is initial there there will not be data for lga04 to lga 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may not be the excat reason for slow response time of ur report but may be usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at the below code for the chane i suggested&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT p0008.&lt;/P&gt;&lt;P&gt;DO 20 TIMES&lt;/P&gt;&lt;P&gt;VARYING wa_p8wage-lgart FROM p0008-lga01 NEXT p0008-lga02&lt;/P&gt;&lt;P&gt;VARYING wa_p8wage-betrg FROM p0008-bet01 NEXT p0008-bet02.&lt;/P&gt;&lt;P&gt;IF wa_p8wage-lgart IS INITIAL.&lt;/P&gt;&lt;P&gt;  exit.                  " this will exit the do loop&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_p8wage-lgart IN lgartahm&lt;/P&gt;&lt;P&gt;AND NOT wa_p8wage IS INITIAL.&lt;/P&gt;&lt;P&gt;MOVE: 'X' TO p8wage_flag,&lt;/P&gt;&lt;P&gt;p0008-waers TO wa_p8wage-waers.&lt;/P&gt;&lt;P&gt;INSERT wa_p8wage INTO TABLE it_p8wage.&lt;/P&gt;&lt;P&gt;CLEAR wa_p8wage.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2008 14:19:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-17T14:19:04Z</dc:date>
    <item>
      <title>*More time to Execute*</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004406#M956672</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;The following code is taking more time to execute...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly assist..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check wagetype selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  REFRESH it_p8wage.&lt;/P&gt;&lt;P&gt;  CLEAR:  it_p8wage, wa_p8wage, p8wage_flag.&lt;/P&gt;&lt;P&gt;  LOOP AT p0008.&lt;/P&gt;&lt;P&gt;    DO 20 TIMES&lt;/P&gt;&lt;P&gt;    VARYING wa_p8wage-lgart FROM p0008-lga01 NEXT p0008-lga02&lt;/P&gt;&lt;P&gt;    VARYING wa_p8wage-betrg FROM p0008-bet01 NEXT p0008-bet02.&lt;/P&gt;&lt;P&gt;      IF wa_p8wage-lgart IN lgartahm&lt;/P&gt;&lt;P&gt;        AND NOT wa_p8wage IS INITIAL.&lt;/P&gt;&lt;P&gt;        MOVE: 'X' TO p8wage_flag,&lt;/P&gt;&lt;P&gt;              p0008-waers TO wa_p8wage-waers.&lt;/P&gt;&lt;P&gt;        INSERT wa_p8wage INTO TABLE it_p8wage.&lt;/P&gt;&lt;P&gt;        CLEAR wa_p8wage.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;no wagetype mathing found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF p8wage_flag IS INITIAL.&lt;/P&gt;&lt;P&gt;    READ TABLE lgartahm.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      REJECT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 14:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004406#M956672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: *More time to Execute*</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004407#M956673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set a breakpoint in your code and find out where the bottle neck is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 14:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004407#M956673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T14:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: *More time to Execute*</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004408#M956674</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;For each end every employye there may not be data for all the 20 wage types from lga01 bet01..................lga20 and bet20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your code it is better to exit the do loop IF wa_p8wage-lgart IS INITIAL rather than looping 20 times even there is no data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because wage types will be assigned to an employee in the same sequence form 1,2......20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the lga03 is initial there there will not be data for lga04 to lga 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may not be the excat reason for slow response time of ur report but may be usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at the below code for the chane i suggested&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT p0008.&lt;/P&gt;&lt;P&gt;DO 20 TIMES&lt;/P&gt;&lt;P&gt;VARYING wa_p8wage-lgart FROM p0008-lga01 NEXT p0008-lga02&lt;/P&gt;&lt;P&gt;VARYING wa_p8wage-betrg FROM p0008-bet01 NEXT p0008-bet02.&lt;/P&gt;&lt;P&gt;IF wa_p8wage-lgart IS INITIAL.&lt;/P&gt;&lt;P&gt;  exit.                  " this will exit the do loop&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_p8wage-lgart IN lgartahm&lt;/P&gt;&lt;P&gt;AND NOT wa_p8wage IS INITIAL.&lt;/P&gt;&lt;P&gt;MOVE: 'X' TO p8wage_flag,&lt;/P&gt;&lt;P&gt;p0008-waers TO wa_p8wage-waers.&lt;/P&gt;&lt;P&gt;INSERT wa_p8wage INTO TABLE it_p8wage.&lt;/P&gt;&lt;P&gt;CLEAR wa_p8wage.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 14:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-time-to-execute/m-p/4004408#M956674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T14:19:04Z</dc:date>
    </item>
  </channel>
</rss>

