<?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: read table... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558986#M583463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jareer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;lt;b&amp;gt; Now i want to check if the field racct of table gt_tpca is the value in select options.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOOP AT GT_TPCA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF GT_TPCA-RACCT IN MYSELECTOPTION.&lt;/P&gt;&lt;P&gt;*---- CODE&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 12:02:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-10T12:02:24Z</dc:date>
    <item>
      <title>read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558975#M583452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt; I have a select statement in which i am retrieving values in a internal table.&lt;/P&gt;&lt;P&gt; how to use the values of that table in the next if statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: &lt;/P&gt;&lt;P&gt;SELECT  rfarea docct rbukrs ryear    docnr&lt;/P&gt;&lt;P&gt;              ksl  racct  sgtxt cpudt  usnam&lt;/P&gt;&lt;P&gt;              FROM glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;              WHERE docnr  EQ gw_idoc-belnr&lt;/P&gt;&lt;P&gt;               AND rclnt  EQ sy-mandt.&lt;/P&gt;&lt;P&gt;Now i want to check if the field racct of table gt_tpca is the value in select options.&lt;/P&gt;&lt;P&gt;Based on that i want to write a perfrom statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to get that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Jareer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558975#M583452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558976#M583453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Write as&lt;/P&gt;&lt;P&gt;loop at gt_tpca where&amp;lt;b&amp;gt; racct in s_racct&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;..perform...&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;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558976#M583453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558977#M583454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT rfarea docct rbukrs ryear docnr&lt;/P&gt;&lt;P&gt;ksl racct sgtxt cpudt usnam&lt;/P&gt;&lt;P&gt;FROM glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE docnr EQ gw_idoc-belnr&lt;/P&gt;&lt;P&gt;AND rclnt EQ sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_TPCA.&lt;/P&gt;&lt;P&gt;IF GT_TPCA-&amp;lt;field&amp;gt; BT &amp;lt;select-option&amp;gt;.&lt;/P&gt;&lt;P&gt;perform &amp;lt;required task&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558977#M583454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558978#M583455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT rfarea docct rbukrs ryear docnr
ksl racct sgtxt cpudt usnam
FROM glpca client specified INTO TABLE gt_tpca
WHERE docnr EQ gw_idoc-belnr
AND rclnt EQ sy-mandt and
        racct  in s_racct .  " This will check the racct from Select Options&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558978#M583455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558979#M583456</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;SELECT rfarea docct rbukrs ryear docnr&lt;/P&gt;&lt;P&gt;ksl racct sgtxt cpudt usnam&lt;/P&gt;&lt;P&gt;FROM glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE docnr EQ gw_idoc-belnr&lt;/P&gt;&lt;P&gt;AND rclnt EQ sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at gt_tpca.&lt;/P&gt;&lt;P&gt;if gt_tpca-racct in s_value.&lt;/P&gt;&lt;P&gt;perform x.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;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>Tue, 10 Jul 2007 11:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558979#M583456</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-10T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558980#M583457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jareer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          After ur select statemnt, Loop at the internal in which u got the data from the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : Loop at gt_itab.&lt;/P&gt;&lt;P&gt;          read table gt_itab .....( Press F1 on READ, to get the syntax )&lt;/P&gt;&lt;P&gt;               if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;               check ur condition.&lt;/P&gt;&lt;P&gt;               endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558980#M583457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558981#M583458</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;You can directly give that in where condition of select query using in operator..If you still need the remaining value or for some other purpose...&lt;/P&gt;&lt;P&gt;you can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT rfarea docct rbukrs ryear docnr&lt;/P&gt;&lt;P&gt;ksl racct sgtxt cpudt usnam&lt;/P&gt;&lt;P&gt;FROM glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE docnr EQ gw_idoc-belnr&lt;/P&gt;&lt;P&gt;AND rclnt EQ sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT  gt_tpca into x_m  WHERE racct IN s_racct.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;perform &amp;lt;forma name&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558981#M583458</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-10T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558982#M583459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here is the code  for yours  ...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options  :   s_racct    for glpca -racct .

SELECT rfarea docct rbukrs ryear docnr
ksl racct sgtxt cpudt usnam
FROM glpca client specified INTO TABLE gt_tpca
WHERE docnr EQ gw_idoc-belnr
AND rclnt EQ sy-mandt and
        racct  in s_racct .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;the  values are   filterred   while selecting from the database table  glpca   with  in the   &lt;/P&gt;&lt;P&gt;select-ooption  range   as  low  &amp;amp; high  &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull .....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558982#M583459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558983#M583460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Khan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I wanna suggest u that if u want a perform in which u want any logic based on condition that 'racct of table gt_tpca is the value in select options' &lt;/P&gt;&lt;P&gt;use that condition in Select statement itself rather than writing a condition later after the Select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;SELECT rfarea docct rbukrs ryear docnr&lt;/P&gt;&lt;P&gt;ksl racct sgtxt cpudt usnam&lt;/P&gt;&lt;P&gt;FROM glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE racct in S_RACCT&lt;/P&gt;&lt;P&gt;docnr EQ gw_idoc-belnr AND &lt;/P&gt;&lt;P&gt;rclnt EQ sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558983#M583460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558984#M583461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jareer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have 2 options &lt;/P&gt;&lt;P&gt;1) Filter the condition in "Select statement" before passing into the internal table gt_tpca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Once it is passed into the internal table you can use " loop..endloop" for your requirement of checking for a specific "racct"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1 is better in terms of not using loop/endloop because it slows down your performance to the extent of data contained in the table glpca and filtering is done in an initial stage&lt;/P&gt;&lt;P&gt;For this use ranges like&lt;/P&gt;&lt;P&gt;if  P_racct  is your field in select options&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;SELECT     rfarea docct  rbukrs  ryear  docnr&lt;/P&gt;&lt;P&gt;                  ksl    racct   sgtxt   cpudt  usnam&lt;/P&gt;&lt;P&gt;FROM        glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE     docnr  EQ  gw_idoc-belnr&lt;/P&gt;&lt;P&gt;AND           rclnt   EQ  sy-mandt&lt;/P&gt;&lt;P&gt;AND           racct  in     P_racct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option2 is to be used if you need not filter at an initial stage for racct &lt;/P&gt;&lt;P&gt;That can be done as follows&lt;/P&gt;&lt;P&gt;You need to use the values for a another specific "racct"  operation&lt;/P&gt;&lt;P&gt;    loop at gt_tpca where racct = 'XXXX"   "for a single racct value&lt;/P&gt;&lt;P&gt;    Perform your operation...&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;For multiple select options you can use case/if..endif inside loops '&lt;/P&gt;&lt;P&gt;or try " loop at gt_tpca where racct in P_racct "  which i have not tried yet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it clarifies your doubt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558984#M583461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558985#M583462</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;SELECT rfarea docct rbukrs ryear docnr&lt;/P&gt;&lt;P&gt;ksl racct sgtxt cpudt usnam&lt;/P&gt;&lt;P&gt;FROM glpca  INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE docnr EQ gw_idoc-belnr&lt;/P&gt;&lt;P&gt;AND rclnt EQ sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_tpca.&lt;/P&gt;&lt;P&gt;if gt_tpca-racct in s_value.&lt;/P&gt;&lt;P&gt;perform x.&lt;/P&gt;&lt;P&gt;endif.&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;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 11:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558985#M583462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558986#M583463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jareer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;lt;b&amp;gt; Now i want to check if the field racct of table gt_tpca is the value in select options.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOOP AT GT_TPCA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF GT_TPCA-RACCT IN MYSELECTOPTION.&lt;/P&gt;&lt;P&gt;*---- CODE&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 12:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558986#M583463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558987#M583464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; The problem here is there are some select statements nested in that perform statement, so theres a problem of performance here arising.so how can i aviod this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jareer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 08:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558987#M583464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558988#M583465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the transactions se30 and st05 to test performance of your routines and program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you will see some examples and tips to rewrite your code.&lt;/P&gt;&lt;P&gt;Some tips:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change SELECT... ENDSELECT to SELECT...INTO TABLE&lt;/P&gt;&lt;P&gt;use SELECT ... FOR ALL ENTRIES when possible&lt;/P&gt;&lt;P&gt;use READ TABLE... BINARY SEARCH.&lt;/P&gt;&lt;P&gt;use the command SORT before read or loop a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful, please reward points.&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, 11 Jul 2007 18:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558988#M583465</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-11T18:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558989#M583466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want only the value gt_tpca then include it in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************&lt;/P&gt;&lt;P&gt;loop at itab where &amp;lt;col&amp;gt; = 'gt_tpca'.&lt;/P&gt;&lt;P&gt;flg = 1.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flg = 1.&lt;/P&gt;&lt;P&gt;perform &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;flg = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="40" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 03:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558989#M583466</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-07-12T03:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558990#M583467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry its like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want only the value gt_tpca then include it in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************&lt;/P&gt;&lt;P&gt;loop at itab where &amp;lt;col&amp;gt; = &amp;lt;sel option value&amp;gt;&lt;/P&gt;&lt;P&gt;flg = 1.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flg = 1.&lt;/P&gt;&lt;P&gt;perform &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;flg = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 04:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558990#M583467</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-07-12T04:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: read table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558991#M583468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT rfarea docct rbukrs ryear docnr&lt;/P&gt;&lt;P&gt;ksl racct sgtxt cpudt usnam&lt;/P&gt;&lt;P&gt;FROM glpca client specified INTO TABLE gt_tpca&lt;/P&gt;&lt;P&gt;WHERE docnr EQ gw_idoc-belnr&lt;/P&gt;&lt;P&gt;AND rclnt EQ sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE gt_tpca INDEX i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM get_data USING gt_tpca-racct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 04:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2558991#M583468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T04:18:46Z</dc:date>
    </item>
  </channel>
</rss>

