<?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: Doubt in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704968#M626617</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;It is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fetch required records through select statements into internal table at PBO.  Use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;INTERNAL TABLE&amp;gt; LINES &amp;lt;YOUR TABLE CONTROL&amp;gt;-LINES.&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;NAME&amp;gt; FROM SCREEN &amp;lt;SCREEN NO.&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very important that while adding fields to your table control assign your internal table column name as name of the table column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table columns are editable, if you modify or add records to your table control, write appropriate code to modify or add records to your internal table independently and refresh the control using,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;NAME&amp;gt; FROM SCREEN &amp;lt;SCREEN NO.&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if answer is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Sep 2007 07:17:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-09T07:17:49Z</dc:date>
    <item>
      <title>Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704962#M626611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I have a internal table having data which is not from any ztables,&lt;/P&gt;&lt;P&gt;it is from standard tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to display the internal table values into table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to do, please advice me and give the sample code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say my internal table it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 04:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704962#M626611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T04:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704963#M626612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;check program : demo_dynpro_tabcont_loop_at.&lt;/P&gt;&lt;P&gt;u will get brief overview of table controls.&lt;/P&gt;&lt;P&gt;If u still have any doubts, revert back to me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasant&lt;/P&gt;&lt;P&gt;*Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704963#M626612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704964#M626613</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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;THIS IS THE FLOW LOGIC.&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;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TAB1'&lt;/P&gt;&lt;P&gt;  MODULE fetch_data.&lt;/P&gt;&lt;P&gt;  MODULE tab1_change_tc_attr.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: MODULE TAB1_CHANGE_COL_ATTR.&lt;/P&gt;&lt;P&gt;  LOOP AT   itab&lt;/P&gt;&lt;P&gt;       INTO itab&lt;/P&gt;&lt;P&gt;       WITH CONTROL tab1&lt;/P&gt;&lt;P&gt;       CURSOR tab1-current_line.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD:   MODULE TAB1_CHANGE_FIELD_ATTR&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE status_1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TAB1'&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD itab-xblnr.&lt;/P&gt;&lt;P&gt;      FIELD itab-bldat.&lt;/P&gt;&lt;P&gt;      FIELD itab-rmwwr.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;    FIELD itab-mark&lt;/P&gt;&lt;P&gt;      MODULE tab1_mark ON REQUEST.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: MODULE TAB1_CHANGE_TC_ATTR.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: MODULE TAB1_CHANGE_COL_ATTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_1000.&lt;/P&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;&lt;P&gt;u have to just made one MODULE as &amp;lt;b&amp;gt;FETCH_DATA&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;module fetch_data output.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE xblnr bldat rmwwr FROM rbkp INTO&lt;/P&gt;&lt;P&gt;    corresponding fields of itab&lt;/P&gt;&lt;P&gt;    WHERE xblnr = '5105600513'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MODIFY itab FROM itab INDEX tab1-current_line.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endmodule.                 " fetch_data  OUTPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my internal table is &amp;lt;b&amp;gt;itab&amp;lt;/b&amp;gt; and table control is &amp;lt;b&amp;gt;tab1&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will b useful to u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 12:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704964#M626613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704965#M626614</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;Since you have internal table in your program with the data then you can bring it directly on the screen(table it_final)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the following&lt;/P&gt;&lt;P&gt;double click on the screen containing the table control&lt;DEL&gt;-&amp;gt; go to screen layout&lt;/DEL&gt;-&amp;gt; change mode ---&amp;gt; you will be able to view the table control in change mode ---&amp;gt; on the top of the screen...u can view three buttons (small,square,coloured) of which one stands for "Get from Program"....the one used for your program now will be "Get from Dictionary"&lt;/P&gt;&lt;P&gt;click on "Get from Program" ---&amp;gt;&lt;/P&gt;&lt;P&gt;a list will be displayed showing all variables declared in the program ---&amp;gt; on the window you can view the internal table fields you have already declared in the program ---&amp;gt; click on it and select it(if it is already being used in the table control a lock will appear beside it) ---&amp;gt; field appears on the screen ---&amp;gt; bring it to the table control by dragging and dropping it into the table control...you can change the position and other actions by drag-drop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the needful coding to show data(PBO) and retrieve or actions (PAI)&lt;/P&gt;&lt;P&gt;For coding in PBO/PAI&lt;/P&gt;&lt;P&gt;in SAP ..go to se38 and view the following programs&lt;/P&gt;&lt;P&gt;1)DEMO_DYNPRO_TABCONT_LOOP_AT&lt;/P&gt;&lt;P&gt;2)demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following exract code if from the above pgms&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 WITH CONTROL  it_final.&lt;/P&gt;&lt;P&gt;    MODULE FILL_TABLE_CONTROL.&lt;/P&gt;&lt;P&gt;"in this module write code to display the data&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;  MODULE CANCEL AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL  it_final.&lt;/P&gt;&lt;P&gt;    module read_table_control.&lt;/P&gt;&lt;P&gt;"write code for validations in this module&lt;/P&gt;&lt;P&gt;"The user actions will be captured here&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope the above suggestions proved useful&lt;/P&gt;&lt;P&gt;You can only learn more through writing your own code for the table control after going through the standard demo examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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>Mon, 27 Aug 2007 13:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704965#M626614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704966#M626615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi   Raja&lt;/P&gt;&lt;P&gt;       You can do it easily.&lt;/P&gt;&lt;P&gt;First of all you design your screen which table control.and your internal table and columns of table control should match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the module pool program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.internal table  it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.declare of table control.&lt;/P&gt;&lt;P&gt;     tcontrol    type tableview using screen number '1111'.&lt;/P&gt;&lt;P&gt;3 . in module status input.&lt;/P&gt;&lt;P&gt; write user-command program to get data into the inernal table,&lt;/P&gt;&lt;P&gt;            select........from  .... into table it_table.&lt;/P&gt;&lt;P&gt;4.then in module status output&lt;/P&gt;&lt;P&gt;        move-corresponding it_table into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. write loop endloop on process-before-output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_table with control tcontrol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; This statement will copy row of data into table control row.&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>Wed, 29 Aug 2007 06:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704966#M626615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T06:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704967#M626616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;just fetch the data in ur pai &lt;/P&gt;&lt;P&gt;then go to the pbo event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write loop with control table control.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&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;inside this just move the field from your internal table to ur table cotrol.&lt;/P&gt;&lt;P&gt;u can use the move corresponding if u have same fileds in ur tab control and internal table.&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;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 06:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704967#M626616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T06:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704968#M626617</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;It is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fetch required records through select statements into internal table at PBO.  Use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;INTERNAL TABLE&amp;gt; LINES &amp;lt;YOUR TABLE CONTROL&amp;gt;-LINES.&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;NAME&amp;gt; FROM SCREEN &amp;lt;SCREEN NO.&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very important that while adding fields to your table control assign your internal table column name as name of the table column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table columns are editable, if you modify or add records to your table control, write appropriate code to modify or add records to your internal table independently and refresh the control using,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;NAME&amp;gt; FROM SCREEN &amp;lt;SCREEN NO.&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if answer is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2007 07:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/2704968#M626617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-09T07:17:49Z</dc:date>
    </item>
  </channel>
</rss>

