<?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: Time Limit Exceeded in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648549#M878738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loop for like 3000 persons in 100 tables.&lt;/P&gt;&lt;P&gt;So the code that stands below is executed like 3000 times.. &lt;/P&gt;&lt;P&gt;For every row I get I split the row with the help of the table structure.&lt;/P&gt;&lt;P&gt;The splitted part I write to a text variable. &lt;/P&gt;&lt;P&gt;(here's where I think it goes wrong..) &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*   get data form internal table tabname into &amp;lt;it&amp;gt;
    SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE &amp;lt;it&amp;gt;
    WHERE pernr EQ personellnumber AND begda GE startdate AND begda LE
    enddate.

    LOOP AT &amp;lt;it&amp;gt; ASSIGNING &amp;lt;temp&amp;gt;.
      LOOP AT datafields WHERE infotype = tabname+2.
        ASSIGN COMPONENT datafields-field_name OF STRUCTURE
&amp;lt;temp&amp;gt; TO &amp;lt;wa&amp;gt;.

*       check if the field should be scrambled.
        IF down_scr_flds = 'X'.
          REFRESH cust_scr.
          SELECT * FROM zcustom_scramble INTO cust_scr WHERE
profile_id = profile_id AND infotype = tabname AND field_name =
datafields-field_name.
            MOVE cust_scr-scram_value TO &amp;lt;wa&amp;gt;.
          ENDSELECT.

        ENDIF.

*        check if they want to change the pernr
        IF datafields-field_name EQ 'PERNR' AND down_pernr = 'X'.
          LOOP AT pernrs_oldnew WHERE old_pernr = &amp;lt;wa&amp;gt;.
            MOVE pernrs_oldnew-new_pernr TO &amp;lt;wa&amp;gt;.
          ENDLOOP.
        ENDIF.

        MOVE &amp;lt;wa&amp;gt; TO output_tab-data+datafields-field_start.

      ENDLOOP
      APPEND output_tab.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 09:00:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T09:00:01Z</dc:date>
    <item>
      <title>Time Limit Exceeded</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648544#M878733</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;I'm testing my program.. Now when I select all possible options I get the 'Time Limit Exceeded' error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question. Is there a way to split the action because all it does is write text into a table of variables. when I get the error the table already contains 57000 records.. Thats more than half of them so.. Is there some way to restart the time limit counter after 50000 records or something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 07:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648544#M878733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T07:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Time Limit Exceeded</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648545#M878734</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;In your program you mention &lt;STRONG&gt;up to 5000 rows&lt;/STRONG&gt; ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648545#M878734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time Limit Exceeded</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648546#M878735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't there a better way to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like execute the program in job mode or something??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648546#M878735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time Limit Exceeded</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648547#M878736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the program in the background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648547#M878736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time Limit Exceeded</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648548#M878737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u paste ur code here..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648548#M878737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Time Limit Exceeded</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648549#M878738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loop for like 3000 persons in 100 tables.&lt;/P&gt;&lt;P&gt;So the code that stands below is executed like 3000 times.. &lt;/P&gt;&lt;P&gt;For every row I get I split the row with the help of the table structure.&lt;/P&gt;&lt;P&gt;The splitted part I write to a text variable. &lt;/P&gt;&lt;P&gt;(here's where I think it goes wrong..) &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*   get data form internal table tabname into &amp;lt;it&amp;gt;
    SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE &amp;lt;it&amp;gt;
    WHERE pernr EQ personellnumber AND begda GE startdate AND begda LE
    enddate.

    LOOP AT &amp;lt;it&amp;gt; ASSIGNING &amp;lt;temp&amp;gt;.
      LOOP AT datafields WHERE infotype = tabname+2.
        ASSIGN COMPONENT datafields-field_name OF STRUCTURE
&amp;lt;temp&amp;gt; TO &amp;lt;wa&amp;gt;.

*       check if the field should be scrambled.
        IF down_scr_flds = 'X'.
          REFRESH cust_scr.
          SELECT * FROM zcustom_scramble INTO cust_scr WHERE
profile_id = profile_id AND infotype = tabname AND field_name =
datafields-field_name.
            MOVE cust_scr-scram_value TO &amp;lt;wa&amp;gt;.
          ENDSELECT.

        ENDIF.

*        check if they want to change the pernr
        IF datafields-field_name EQ 'PERNR' AND down_pernr = 'X'.
          LOOP AT pernrs_oldnew WHERE old_pernr = &amp;lt;wa&amp;gt;.
            MOVE pernrs_oldnew-new_pernr TO &amp;lt;wa&amp;gt;.
          ENDLOOP.
        ENDIF.

        MOVE &amp;lt;wa&amp;gt; TO output_tab-data+datafields-field_start.

      ENDLOOP
      APPEND output_tab.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-limit-exceeded/m-p/3648549#M878738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:00:01Z</dc:date>
    </item>
  </channel>
</rss>

