<?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: Table control doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292494#M787815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Every time you are deleting  or adding in table control  LOOP will get triggered and updated data will display on table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP will be there in&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PBO  and  PAI. to pass the data to and fro.to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only few key words only will work in flow logic editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like  LOOP ,FIELDS ,CHAIN and end chain,Module etc.&lt;/P&gt;&lt;P&gt;I think max. 7 or 8 key fields will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.SFLIGHT = itab. *** What is the significance? Why it is required ??? ***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what i mensioned in above answer. To move the deleted or added data(changes)  passing to screen to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2008 09:30:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-10T09:30:10Z</dc:date>
    <item>
      <title>Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292493#M787814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please explain me the below code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab with CONTROL TC CURSOR TC-top_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FETCHDATA. *** &lt;U&gt;Why FETCHDATA should be called inside the Loop? Will this code hit the database again and again while looping? I tried FETCHDATA before the loop but did not work. why???&lt;/U&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;&lt;/P&gt;&lt;P&gt;MODULE FETCHDATA OUTPUT.&lt;/P&gt;&lt;P&gt;SELECT * FROM SFLIGHT INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SFLIGHT = itab. *** &lt;U&gt;What is the significance? Why it is required ???&lt;/U&gt; ***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 06:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292493#M787814</guid>
      <dc:creator>former_member359513</dc:creator>
      <dc:date>2008-01-10T06:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292494#M787815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Every time you are deleting  or adding in table control  LOOP will get triggered and updated data will display on table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP will be there in&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PBO  and  PAI. to pass the data to and fro.to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only few key words only will work in flow logic editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like  LOOP ,FIELDS ,CHAIN and end chain,Module etc.&lt;/P&gt;&lt;P&gt;I think max. 7 or 8 key fields will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.SFLIGHT = itab. *** What is the significance? Why it is required ??? ***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what i mensioned in above answer. To move the deleted or added data(changes)  passing to screen to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 09:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292494#M787815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T09:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292495#M787816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Murali krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Ok, one more question, so each and every time while modifying the Table Control the data gets updated to the database. What if I use my Table Control only for displaying the records; is it possible to put my FETCHDATA module outside the LOOP (Single time data fetch), since no updates possible???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are hitting the database inside the loop, will this decrease the performance???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292495#M787816</guid>
      <dc:creator>former_member359513</dc:creator>
      <dc:date>2008-01-10T10:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292496#M787817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module FETCHDATA has to be in the loop only because the fetching of data is being done into the table control using an internal table associated with it.&lt;/P&gt;&lt;P&gt;If the FETCHDATA module is out of the loop,then the data will no longer be fetched as the module is not being references to the table control(i.e., it is not being looped with the table control's internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the loop,the table control cannot recieve the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SFLIGHT = itab.&lt;/P&gt;&lt;P&gt;This statement is generally used to move the contents of one internal table into the other.But here,it is not possible as SFLIGHT is a transparent table and itab is an internal table.&lt;/P&gt;&lt;P&gt;So you will get an error message saying &lt;/P&gt;&lt;P&gt;'The type of SFILGHT cannot be converted to the type of ITAB'.&lt;/P&gt;&lt;P&gt;Please check with the code once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kashyap Ivaturi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292496#M787817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T10:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292497#M787818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fetching the data is always written in a loop because u fetch data into an internal table or from an internal table.so if u want to access all the fields of an internal table u have to put it in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to retrieve the data from internal table then also fetching should be done ina loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SFLIGHT = itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is also used to move the contents of sfilght to itab,but i think it will give an error,because sflight and itab are not compatible.&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;sravanthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292497#M787818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T10:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292498#M787819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No error, the code works fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;(Sorry the SFLIGHT here is Table Control field structure name... That is the reason its working)&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anand Deenadayalu on Jan 10, 2008 12:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292498#M787819</guid>
      <dc:creator>former_member359513</dc:creator>
      <dc:date>2008-01-10T10:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table control doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292499#M787820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I got a better solution from my friend to this...&lt;/P&gt;&lt;P&gt;This works fine and the select query is outside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FETCHDATA.&lt;/P&gt;&lt;P&gt;LOOP AT itab with CONTROL TCFLIGHT CURSOR TCFLIGHT-top_line.&lt;/P&gt;&lt;P&gt;module move_data_to_tablecontrol.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;MODULE move_data_to_tablecontrol OUTPUT.&lt;/P&gt;&lt;P&gt;move-corresponding itab to sflight.&lt;/P&gt;&lt;P&gt;ENDMODULE.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FETCHDATA OUTPUT.&lt;/P&gt;&lt;P&gt;SELECT * FROM SFLIGHT INTO TABLE itab.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-doubt/m-p/3292499#M787820</guid>
      <dc:creator>former_member359513</dc:creator>
      <dc:date>2008-01-10T10:41:42Z</dc:date>
    </item>
  </channel>
</rss>

