<?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 Out Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196253#M1625731</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;Remove Appending Lines in select statement. Move the values to another table then use append lines of ITAB1 to ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remove NE comparison in where condition, later delete ITAB where NE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check for the JOIN conditions which tables are taking more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check runtime analysis and performance analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2011 18:27:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-12T18:27:30Z</dc:date>
    <item>
      <title>Time Out Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196252#M1625730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have below Select Query which is written in Remote Enabled Function Module. This RFC is called by Thrid party application and it gives "TIME_OUT" runtime error. &lt;/P&gt;&lt;P&gt;I need your suggestions to Improve the performance of this query or if there is any way to run the RFC in background. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT t1~avm_nr  "Order number
             t1~gpag    "Sold to party
             t2~pos_nr  "Line item number
             t5~upos_nr "Sub-item
             t3~inhk_kfm "Business Content component
             t5~ur_beleinh "Initial booking Unit
             t5~belegeinh "Basic Booking Unit
             t2~pstyv "Item categories
             t4~ein_nr   "Schedule line number
             t4~aendate  "Sched line last change date
             t4~aentime  "Sched line last Change time
             t5~s_termin "Publication date
             t5~webpubl_date_frm "Web Pub start date
             t5~webpubl_date_to "Web Pub end date
             t7~motivid   "Technical spec id
             t7~motiv  "Ad spec no.
             t7~azart_gest  "Design Type
             t2~bsark  "PO type
             t3~chiffre_nr "IS-M/AM: Box Number
             APPENDING TABLE it_bcc_list
      FROM  jhak AS t1
            INNER JOIN jhap AS t2
              ON t2~avm_nr = t1~avm_nr
            INNER JOIN jhapa AS t3
                    ON t3~avm_nr = t1~avm_nr
                  AND  t3~pos_nr = t2~pos_nr
            INNER JOIN jhae AS t4
              ON t4~avm_nr = t1~avm_nr
              AND t4~pos_nr = t2~pos_nr
            INNER JOIN jhaea AS t5
              ON t5~avm_nr = t1~avm_nr
              AND t5~pos_nr = t2~pos_nr
              AND t5~ein_nr = t4~ein_nr
            INNER JOIN jhamot AS t7
              ON t7~avm_nr = t1~avm_nr
            INNER JOIN jhamoz AS t8
              ON t8~avm_nr = t1~avm_nr
             AND t8~pos_nr = t2~pos_nr
             AND t8~ein_nr = t4~ein_nr
             AND t8~motiv =  t7~motiv
        WHERE
              (
               t1~avm_nr IN it_sel_order_no_loop "Order no.
               AND
               (
* Selection based on Content Component and Booking Unit
* and Web publication date from &amp;amp; to and record change date
* and time from &amp;amp; to
                (
                   t3~inhk_kfm IN it_sel_bus_cc
                   AND
                   t5~belegeinh IN it_sel_book_unit
                   AND
                   (
                   NOT
                       (
                         t5~webpubl_date_frm &amp;gt; pub_end_date
                         OR
                         t5~webpubl_date_to &amp;lt; pub_start_date
                        )
                    )
                  )
                )
              )
        AND    t2~pstyv IN it_pstyv
        AND    t2~statusk &amp;lt;&amp;gt; '01' "-- Line item not deleted
        AND    t4~statusk &amp;lt;&amp;gt; '01' "-- Schedule line not deleted
        AND    t4~upos_nr &amp;lt;&amp;gt; '0000'
        AND    t5~belegeinh &amp;gt; ''
        AND    t5~merkmal8 &amp;lt;&amp;gt; 'X' "-- Schedule line not unpublishable
        AND    t5~upos_nr &amp;lt;&amp;gt; '0000'
        AND    t5~xersch IN (v_pubd,v_unpubd) "-- Published indicator
        AND    t7~motivstat &amp;lt;&amp;gt; '01' "-- Ad spec not deleted
        AND    t8~upos_nr &amp;lt;&amp;gt; '0000'.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;CJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 18:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196252#M1625730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-12T18:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time Out Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196253#M1625731</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;Remove Appending Lines in select statement. Move the values to another table then use append lines of ITAB1 to ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remove NE comparison in where condition, later delete ITAB where NE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check for the JOIN conditions which tables are taking more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check runtime analysis and performance analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 18:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196253#M1625731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-12T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time Out Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196254#M1625732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Shiva - the &amp;lt;&amp;gt; is not on an index field, so it would be better to leave it in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@CJ - have you first analyzed this using ST05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Sep 12, 2011 2:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 18:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-issue/m-p/8196254#M1625732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-12T18:39:49Z</dc:date>
    </item>
  </channel>
</rss>

