<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672662#M884538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are missing updating the table control in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
MODULE DATA_RETRIEVAL.

loop at it_sflight into wa_sflight with control TABLE_CONT cursor TABLE_CONT-top_line.

move-corresponding wa_sflight to table_cont. "insert this line

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if this helps,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kiran&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 13:15:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T13:15:51Z</dc:date>
    <item>
      <title>Table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672660#M884536</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;Underlying is my code for populating the table control : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TABLE_CONT TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;TABLES : SFLIGHT.&lt;/P&gt;&lt;P&gt;DATA: IT_SFLIGHT TYPE STANDARD&lt;/P&gt;&lt;P&gt;           TABLE OF SFLIGHT INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;           WA_SFLIGHT TYPE SFLIGHT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'PF'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'Pranshu Table Control'.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&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 DATA_RETRIEVAL OUTPUT.&lt;/P&gt;&lt;P&gt;  SELECT * UP TO 10 ROWS FROM SFLIGHT INTO CORRESPONDING FIELDS OF TABLE IT_SFLIGHT.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " data_retrieval  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;   MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;   MODULE DATA_RETRIEVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at   it_sflight into wa_sflight with control TABLE_CONT cursor TABLE_CONT-top_line.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_SFLIGHT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************************************&lt;/P&gt;&lt;P&gt;But when I run this , I get the empty table in output . Please let me kwno what can be the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672660#M884536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672661#M884537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow the steps to update the database table records.&lt;/P&gt;&lt;P&gt;1.TOP INCLUDE code&lt;/P&gt;&lt;P&gt;TABLES: EKKO.&lt;/P&gt;&lt;P&gt;DATA: OK_CODE TYPE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TC100 TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_EKKO LIKE EKKO OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: CUR TYPE I.&lt;/P&gt;&lt;P&gt;DATA: I_EKKO2 LIKE EKKO OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: V_FNAM TYPE I,V_FVAL(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Create screen with number(e.g 123) and click on layout tab&lt;/P&gt;&lt;P&gt;Give the table control name as TC100.&lt;/P&gt;&lt;P&gt;SELECT THE FIELDS FROM INTERNAL TABLE (IT_EKKO). DRAG THE TEXT FIELDS INTO THE TABLE CONTROL FOR FIELD HEADINGS.&lt;/P&gt;&lt;P&gt;Create 4 pushbuttons(insert,fetch,delete and exit)&lt;/P&gt;&lt;P&gt;CLICK ON &amp;#147;Element list&amp;#148; TAB AND ENTER THE &amp;#147;OK_CODE&amp;#148;.&lt;/P&gt;&lt;P&gt;CLICK ON FLOWLOGIC TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Flowlogic code&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;LOOP AT IT_EKKO CURSOR CUR WITH CONTROL TC100.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;LOOP AT IT_EKKO.&lt;/P&gt;&lt;P&gt;MODULE MODIFY_ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Double click on MODIFY_ITAB and write as&lt;/P&gt;&lt;P&gt;module MODIFY_ITAB input.&lt;/P&gt;&lt;P&gt;APPEND IT_EKKO TO I_EKKO2.&lt;/P&gt;&lt;P&gt;endmodule. " MODIFY_ITAB INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.Activate PAI and double click on it and write the code as&lt;/P&gt;&lt;P&gt;module USER_COMMAND_0100 input.&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN 'INS'.&lt;/P&gt;&lt;P&gt;LOOP AT I_EKKO2.&lt;/P&gt;&lt;P&gt;MODIFY EKKO FROM I_EKKO2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;SELECT * FROM EKKO INTO TABLE IT_EKKO.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;MESSAGE S003(ZCSMSG).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'FETCH'.&lt;/P&gt;&lt;P&gt;SELECT * FROM EKKO INTO TABLE IT_EKKO UP TO 2000 ROWS.&lt;/P&gt;&lt;P&gt;TC100-LINES = SY-DBCNT.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.Create Transaction code and execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on Fetch button to get the data into table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward,if useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672661#M884537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672662#M884538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are missing updating the table control in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
MODULE DATA_RETRIEVAL.

loop at it_sflight into wa_sflight with control TABLE_CONT cursor TABLE_CONT-top_line.

move-corresponding wa_sflight to table_cont. "insert this line

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if this helps,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kiran&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672662#M884538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T13:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672663#M884539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it_sflight into wa_sflight with control TABLE_CONT cursor TABLE_CONT-top_line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_sflight into sflight with control TABLE_CONT cursor TABLE_CONT-top_line.&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;where as sflight is the name of the field in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open the table control and put cursor on the table, see the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672663#M884539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672664#M884540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what fields did you put on the table control ?  from the internal table it_sflight or from work area wa_sflight ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i beleive u did it from IT_SFLIGHT , right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_sflight &lt;DEL&gt;into wa_sflight&lt;/DEL&gt; with control TABLE_CONT cursor TABLE_CONT-top_line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672664#M884540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672665#M884541</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;I think Sujamol has figured out the issue.  Another way to achieve the same result is to keep your loop the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_sflight into wa_sflight with control TABLE_CONT cursor TABLE_CONT-top_line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT put the wa_sflight fields into your table control container in screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/3672665#M884541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T13:33:09Z</dc:date>
    </item>
  </channel>
</rss>

