<?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: How to accept input using a table control? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230195#M1380484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitwick and everyone, &lt;/P&gt;&lt;P&gt;I apply your code with mine:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*  Z_TABLE is the table
*  T_ITAB is the internal table
*  WA_ITAB is the work area
*  TC_ID is the Table Control Name
*PAI Event
  LOOP WITH CONTROL TC_ID.
    MODULE MODIFY_DATA.
  ENDLOOP.

module MODIFY_DATA input.
  DATA W_DBCNT LIKE SY-DBCNT.

  CASE OK_CODE.
    WHEN 'CREATE'.
        MOVE: Z_TABLE-WERKS TO WA_ITAB-WERKS,
                    Z_TABLE-MATNR TO WA_ITAB-MATNR,
                    Z_TABLE-LICHA   TO WA_ITAB-LICHA,
                    Z_TABLE-LIFNR    TO WA_ITAB-LIFNR.

         APPEND WA_IITAB TO T_ITAB.

         MODIFY Z_TABLE FROM TABLE T_ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table control columns, ZTABLE-field1, ZTABLE-field2, and so on, does not contain any values in the debug.  It seems like inside the LOOP of Table Control, Moving the Table-Field inside the table control will not allow values to be stored.&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 10:40:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-09T10:40:47Z</dc:date>
    <item>
      <title>Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230185#M1380474</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 development where I need to accept inputs from user:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;PLANT  MATERIAL  BATCH&lt;/P&gt;&lt;P&gt;XX01    44001001   TEST01&lt;/P&gt;&lt;P&gt;XX01    44001001   TEST01&lt;/P&gt;&lt;P&gt;XX01    44002001   TEST02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to display data using Table Control (TC) but I need more info on how to use TC for accepting data then appending it to a table instead of displaying data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 00:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230185#M1380474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T00:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230186#M1380475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And here's the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE CLEAR_OKCODE.
  MODULE LOAD_TABLECTRL.
  LOOP AT T_TEST INTO WA_TEST WITH CONTROL TC_ID.
    MODULE POPULATE_TABLECTRL.
  ENDLOOP.
* MODULE STATUS_9001.

PROCESS AFTER INPUT.
* MODULE USER_COMMAND_9001.
  LOOP AT T_TEST.
    
  ENDLOOP.

module LOAD_TABLECTRL output.
   SELECT * FROM ZTEST INTO CORRESPONDING FIELDS OF TABLE T_TEST.
endmodule.                 " LOAD_TABLECTRL  OUTPUT

module POPULATE_TABLECTRL output.
  IF sy-stepl = 1.
      TC_ID-lines = TC_ID-top_line + sy-loopc - 1.
  ENDIF.
  MOVE-CORRESPONDING WA_TEST TO Z_TEST.
endmodule.    

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 00:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230186#M1380475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T00:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230187#M1380476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, basically this thread is for Table Control that can accept input instead of displaying it.  Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 05:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230187#M1380476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230188#M1380477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
&amp;lt;li&amp;gt;Flow logic of the screen
    &lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tabc.
      ENDLOOP.

    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      LOOP AT itab.
        MODULE read_table_control.
      ENDLOOP.
      MODULE user_command_0100.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Code for read_table_control
  &lt;PRE&gt;&lt;CODE&gt;MODULE read_table_control INPUT.
   MODIFY itab INDEX tabc-current_line."This statement update itab table which is used to show data on table control
 ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt; 

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 03:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230188#M1380477</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-19T03:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230189#M1380478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaime Cabanban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display data in table control , you use a loop in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarily to read data from the table control , you have a loop in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you run a loop in PAI , it reads a line from table control and place it in work area then you can append it to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign a value  to TC-lines = '20'  which enables you to add 20 lines . You can dynamicaly increase it if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how you do .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coding is already given by others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 04:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230189#M1380478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T04:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230190#M1380479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_zekpo is my internal table w/o header line,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo is work area.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name of input/output fields on screen are:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo-field1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo-field2, and so on...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a button on the screen with function-code &lt;STRONG&gt;SAVE&lt;/STRONG&gt; or in the pf-status take the function code of the standard save button as &lt;STRONG&gt;SAVE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use code:-&lt;/P&gt;&lt;P&gt;At screen logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
*  MODULE status_8003.
 
  LOOP WITH CONTROL po_tab. "po_tab is table control on screen 8003
    MODULE read_data.
  ENDLOOP.
 
PROCESS AFTER INPUT.
*  MODULE user_command_8003.
 
  LOOP WITH CONTROL po_tab.
    MODULE modify_data.
  ENDLOOP.

  MODULE SAVE_DATA.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In PBO:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  READ_DATA  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE read_data OUTPUT.
  READ TABLE it_zekpo INTO wa_zekpo INDEX po_tab-current_line. "po_tab is table control name
 
  data : line_count type i.
 
  describe it_zekpo
  lines line_count.
  po_tab-lines = line_count + 10.
  "to increase the number of lines in table control dynamically
 
ENDMODULE.                 " READ_DATA  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In PAI:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  MODIFY_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE MODIFY_DATA INPUT.
  MODIFY IT_ZEKPO FROM WA_ZEKPO INDEX po_tab-currentline.
  "this will modify the contents of existing line
ENDMODULE.                 " MODIFY_DATA  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  SAVE_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE SAVE_DATA INPUT.

  DATA : A LIKE SY-DBCNT.
  OK_CODE = SY-UCOMM.
  CASE OK_CODE.
    WHEN 'SAVE'. "function code for SAVE button
      MODIFY ZEKPO FROM TABLE IT_ZEKPO.
      A = SY-DBCNT.
      IF SY-SUBRC = 0.
        MESSAGE S008 WITH A.
      ENDIF.
  ENDCASE.

ENDMODULE.                 " SAVE_DATA  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you put in new entries in the table control and perform any user action, the records will be appended to the internal table and when you click SAVE button, the records will be inserted into the DATABASE table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 05:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230190#M1380479</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-19T05:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230191#M1380480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PAI code, I debug it in my code code, but it seems like it is not reading the entries in the table control, am I missing something?&lt;/P&gt;&lt;P&gt;Let's say I have 5 entries, so I would expect 5 loops should go through the po_tab right?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
  LOOP WITH CONTROL po_tab.
    MODULE modify_data.
  ENDLOOP.

MODULE SAVE_DATA.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 16:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230191#M1380480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230192#M1380481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Are you trying something like this? This is used to take input from the table control into the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
  LOOP WITH CONTROL po_tab.
    MODULE modify_data.
  ENDLOOP.
MODULE SAVE_DATA.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module modify_data input
  if sy-ucomm eq 'SAVE'.
    wa_itab-field1 = ztab-field1.
    wa_itab-field2 = ztab-field2.
    wa_itab-field3 = ztab-field3. 
    append wa_itab to it_tab.
  endif.
endmodule.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 17:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230192#M1380481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T17:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230193#M1380482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Nitwick, yes you're correct, that's what I'm exactly trying to do - accept input from table control (I don't need to display anything on the table control).  But on my debug on the PAI, I can't get/read my input/values I entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 07:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230193#M1380482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-08T07:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230194#M1380483</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;Lets say your table control has columns namely ztable-field1, ztable-field2. Now if you want to read the input, then in the PAI, just write the code that I have previously mentioned. Debug to see if the screen field has data that you have entered as input. Also check your sy-ucomm value and see whether the code that you want gets triggered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 18:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230194#M1380483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-08T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230195#M1380484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitwick and everyone, &lt;/P&gt;&lt;P&gt;I apply your code with mine:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*  Z_TABLE is the table
*  T_ITAB is the internal table
*  WA_ITAB is the work area
*  TC_ID is the Table Control Name
*PAI Event
  LOOP WITH CONTROL TC_ID.
    MODULE MODIFY_DATA.
  ENDLOOP.

module MODIFY_DATA input.
  DATA W_DBCNT LIKE SY-DBCNT.

  CASE OK_CODE.
    WHEN 'CREATE'.
        MOVE: Z_TABLE-WERKS TO WA_ITAB-WERKS,
                    Z_TABLE-MATNR TO WA_ITAB-MATNR,
                    Z_TABLE-LICHA   TO WA_ITAB-LICHA,
                    Z_TABLE-LIFNR    TO WA_ITAB-LIFNR.

         APPEND WA_IITAB TO T_ITAB.

         MODIFY Z_TABLE FROM TABLE T_ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table control columns, ZTABLE-field1, ZTABLE-field2, and so on, does not contain any values in the debug.  It seems like inside the LOOP of Table Control, Moving the Table-Field inside the table control will not allow values to be stored.&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 10:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230195#M1380484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T10:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230196#M1380485</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;-&amp;gt; Check if your OK_CODE = 'CREATE' in your debug mode&lt;/P&gt;&lt;P&gt;-&amp;gt; Did you refer the columns of your tabe control to Dictionary?&lt;/P&gt;&lt;P&gt;-&amp;gt; Are the names of the columns on the table control and the ones in your code the same?&lt;/P&gt;&lt;P&gt;-&amp;gt; Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"PAI
LOOP AT T_ITAB.  "Try the change here
    MODULE MODIFY_DATA.
  ENDLOOP.

module MODIFY_DATA input.
  DATA W_DBCNT LIKE SY-DBCNT.
 
  CASE OK_CODE.
    WHEN 'CREATE'.
        MOVE: Z_TABLE-WERKS TO WA_ITAB-WERKS,
                    Z_TABLE-MATNR TO WA_ITAB-MATNR,
                    Z_TABLE-LICHA   TO WA_ITAB-LICHA,
                    Z_TABLE-LIFNR    TO WA_ITAB-LIFNR.
 
         APPEND WA_IITAB TO T_ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 04:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230196#M1380485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T04:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230197#M1380486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitwick and All,&lt;/P&gt;&lt;P&gt;Yes, OK_CODE's value is 'CREATE'.&lt;/P&gt;&lt;P&gt;Yes I refer to the columns of my table control to the Dictionary.&lt;/P&gt;&lt;P&gt;Yes, all the names of the columns on the table control and the ones in my code are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jaime Cabanban on Nov 10, 2009 6:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230197#M1380486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230198#M1380487</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;Did you try this change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"PAI
LOOP AT T_ITAB.  "Try the change here
    MODULE MODIFY_DATA.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230198#M1380487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: How to accept input using a table control?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230199#M1380488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitwick,&lt;/P&gt;&lt;P&gt;Thanks, just rewarded you 10pts., problem solved. &lt;/P&gt;&lt;P&gt;The field-name in my table control-screen painter is not updated/the same as what I indicated in the PAI event on Loop Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-how-to-accept-input-using-a-table-control/m-p/6230199#M1380488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:41:50Z</dc:date>
    </item>
  </channel>
</rss>

