<?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 - data update on pressing enter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261302#M1215144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
" PA! of subscreen.
' ----&amp;gt; Comment this line, instead try just with the loop "Loop with control zmeter.
loop.
field : zgen_read-AUFNR,
zgen_read-Z_OPEN_READ,
zgen_read-Z_CLOSE_READ.

module itab_read .
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always Learner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2009 08:07:10 GMT</pubDate>
    <dc:creator>Mohamed_Mukhtar</dc:creator>
    <dc:date>2009-03-02T08:07:10Z</dc:date>
    <item>
      <title>TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261285#M1215127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table control and the its ready for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I enter the data and press enter the data is being updated in the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my requierment is the data should be updated only on pressing the save button and the data should be visible in the table control even after pressing the enter key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W. Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 06:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261285#M1215127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T06:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261286#M1215128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Block Enter by using:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check SY-UCOMM NE ' '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK SY-UCOMM NE ' ' .&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;Modify &amp;lt;&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDCASE.&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;Hope this resolves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Mar 2009 10:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261286#M1215128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-01T10:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261287#M1215129</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;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;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
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;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 03:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261287#M1215129</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-02T03:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261288#M1215130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the logic but didn't work pleas esuggest....got stuck just because of it..&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;&lt;/P&gt;&lt;P&gt;W. Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261288#M1215130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261289#M1215131</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;Try with the above logic provided with me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will definitely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the function code for the for the standard save button in pf-status as &lt;STRONG&gt;SAVE&lt;/STRONG&gt;.&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, 02 Mar 2009 06:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261289#M1215131</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-02T06:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261290#M1215132</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'hv done the same but... my ztable is been updated with entries on pressing the standard save button....but my problem is when I press the enter key the table control fields become blank...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to over come this issue......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I'm clear what the problem is ?&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;&lt;/P&gt;&lt;P&gt;W. Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261290#M1215132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T06:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261291#M1215133</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;When you give some data in the table control and hit ENTER key, PAI is executed:-&lt;/P&gt;&lt;P&gt;&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
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this module will be executed, as it contains no use of sy-ucomm. Automatically this code will be executed and the line of table control will be appended to the internal table inside the loop with table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that you dont use the sy-ucomm value for this module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And definitely it will work&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, 02 Mar 2009 06:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261291#M1215133</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-02T06:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261292#M1215134</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;STRONG&gt;To retain values after pressing ENTER&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
LOOP AT it_table INTO workarea WITH CONTROL &amp;lt;tablecontrol name&amp;gt;.
MODULE map_fields.
 ENDLOOP.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  map_fields  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*

"screennames = program field names.
"example ztrip-sno = screen name i,e table control field
        "wa_trip-sno. = Program field, i,e work area of ur program.
"below is  the example for table control which have four fields.

       ztrip-sno = wa_trip-sno.
        ztrip-expen = wa_trip-expen.
        ztrip-curr = wa_trip-curr.
        ztrip-amot = wa_trip-amot.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REgards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always Learner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261292#M1215134</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-02T06:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261293#M1215135</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 tried this also but didn't help.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest....&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;&lt;/P&gt;&lt;P&gt;W. Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261293#M1215135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261294#M1215136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paste your code.&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, 02 Mar 2009 07:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261294#M1215136</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-02T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261295#M1215137</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;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
LOOP AT it_table INTO workarea WITH CONTROL &amp;lt;tablecontrol name&amp;gt;.
MODULE map_fields.
 ENDLOOP.

PROCESS AFTER INPUT.
LOOP.
 MODULE insert_records_create.
ENDLOOP.


 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  map_fields  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
 
"screennames = program field names.
"example ztrip-sno = screen name i,e table control field
        "wa_trip-sno. = Program field, i,e work area of ur program.
"below is  the example for table control which have four fields.
 
if it_table is not initial.
       ztrip-sno = wa_trip-sno.
        ztrip-expen = wa_trip-expen.
        ztrip-curr = wa_trip-curr.
        ztrip-amot = wa_trip-amot.
endif.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_fill_tripdetails
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
"in PAI Program names = screennames

if sy-ucomm = 'ENTER'
wa_trip-sno      = ztrip-sno.
  wa_trip-expen    = ztrip-expen.
  wa_trip-curr     = ztrip-curr.
wa_trip-amot     = ztrip-amot .

append workarea to internal table.  " Append internal table 
endif.
Debug your program and see whether your internal table contails any data after pressing enter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261295#M1215137</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-02T07:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261296#M1215138</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;Plz chk the code below.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow Logic for main screen...&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 fill_dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN SUB1 INCLUDING sy-cprog dynnr.&lt;/P&gt;&lt;P&gt;  Module clear_ok_code.&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;  CALL SUBSCREEN SUB1.&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 USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow logic for the sub-screen..&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;&lt;/P&gt;&lt;P&gt;loop with control zmeter.&lt;/P&gt;&lt;P&gt;module itab_display.&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 with control zmeter.&lt;/P&gt;&lt;P&gt;field : zgen_read-AUFNR,&lt;/P&gt;&lt;P&gt;        zgen_read-Z_OPEN_READ,&lt;/P&gt;&lt;P&gt;        zgen_read-Z_CLOSE_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module itab_read .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main Program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_GENERATOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : Zgen_read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS GENERATOR_READING TYPE TABSTRIP.&lt;/P&gt;&lt;P&gt;CONTROLS : ZMETER TYPE TABLEVIEW USING SCREEN '0101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ok_code type sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA dynnr type sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_zgen_read type zgen_read,&lt;/P&gt;&lt;P&gt;       wa1_zgen_read type zgen_read,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       it_zgen_read type standard table of zgen_read with header line initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check ok_code NE ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'FC1' or 'FC2'.&lt;/P&gt;&lt;P&gt;generator_reading-activetab = ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'F3'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;clear wa_zgen_read.&lt;/P&gt;&lt;P&gt;loop at it_zgen_read into wa_zgen_read .&lt;/P&gt;&lt;P&gt;insert into zgen_read values wa_zgen_read  .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'ENTER'.&lt;/P&gt;&lt;P&gt;zgen_read-ZDATE_READING = wa_zgen_read-ZDATE_READING.&lt;/P&gt;&lt;P&gt;zgen_read-AUFNR = wa_zgen_read-AUFNR.&lt;/P&gt;&lt;P&gt;zgen_read-Z_OPEN_READ = wa_zgen_read-Z_OPEN_READ.&lt;/P&gt;&lt;P&gt;zgen_read-Z_CLOSE_READ = wa_zgen_read-Z_CLOSE_READ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndCase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  ITAB_READ  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE ITAB_READ INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_zgen_read-ZDATE_READING = zgen_read-ZDATE_READING.&lt;/P&gt;&lt;P&gt;wa_zgen_read-AUFNR = zgen_read-AUFNR.&lt;/P&gt;&lt;P&gt;wa_zgen_read-Z_OPEN_READ = zgen_read-Z_OPEN_READ.&lt;/P&gt;&lt;P&gt;wa_zgen_read-Z_CLOSE_READ = zgen_read-Z_CLOSE_READ.&lt;/P&gt;&lt;P&gt;append wa_zgen_read to it_zgen_read .&lt;/P&gt;&lt;P&gt;*Append&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " ITAB_READ  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  ITAB_DISPLAY  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE ITAB_DISPLAY OUTPUT.&lt;/P&gt;&lt;P&gt;read table it_zgen_read into wa_zgen_read index zmeter-current_line.&lt;/P&gt;&lt;P&gt;*data : line_count type i.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*describe table it_zgen_read lines line_count.&lt;/P&gt;&lt;P&gt;zgen_read-ZDATE_READING = wa_zgen_read-ZDATE_READING.&lt;/P&gt;&lt;P&gt;zgen_read-AUFNR = wa_zgen_read-AUFNR.&lt;/P&gt;&lt;P&gt;zgen_read-Z_OPEN_READ = wa_zgen_read-Z_OPEN_READ.&lt;/P&gt;&lt;P&gt;zgen_read-Z_CLOSE_READ = wa_zgen_read-Z_CLOSE_READ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " ITAB_DISPLAY  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;&lt;/P&gt;&lt;P&gt;Please chk and suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W. Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261296#M1215138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261297#M1215139</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;PRE&gt;&lt;CODE&gt;when 'ENTER'.
zgen_read-ZDATE_READING = wa_zgen_read-ZDATE_READING.
zgen_read-AUFNR = wa_zgen_read-AUFNR.
zgen_read-Z_OPEN_READ = wa_zgen_read-Z_OPEN_READ.
zgen_read-Z_CLOSE_READ = wa_zgen_read-Z_CLOSE_READ .

APpend wa_zgen_read to it_zgen_read.
"APpend your internal table here&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261297#M1215139</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-02T07:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261298#M1215140</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;For what purpose are you using the sub-screen....??&lt;/P&gt;&lt;P&gt;Are you not displaying data in table control on the screen 0100....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that the above code provided by you is a bit confusing.&lt;/P&gt;&lt;P&gt;So instead if you can again go through the first reply by me, coz in my case its working absolutely fine (for the same requirement).&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, 02 Mar 2009 07:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261298#M1215140</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-02T07:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261299#M1215141</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;After pressing enter my int table contains the values entered in the tabe control fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as u suggested but still didn't work ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261299#M1215141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261300#M1215142</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.

loop at it_table into wa_Area with control zmeter.  "----&amp;gt;'at it_table into wa_Area' add workarea and itable name
module itab_display.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261300#M1215142</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-02T07:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261301#M1215143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Always Learner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it but getting a error "with control zmeter " missing in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Archana W.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 07:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261301#M1215143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T07:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261302#M1215144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
" PA! of subscreen.
' ----&amp;gt; Comment this line, instead try just with the loop "Loop with control zmeter.
loop.
field : zgen_read-AUFNR,
zgen_read-Z_OPEN_READ,
zgen_read-Z_CLOSE_READ.

module itab_read .
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always Learner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 08:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261302#M1215144</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-02T08:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261303#M1215145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I understood that you are entering data in the table control and immediately when you click on SAVE data was not capturing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, i hope data was not updating in the internal table itself. so you need to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB index &amp;lt;tablecontrol-currentline&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 08:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261303#M1215145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T08:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL - data update on pressing enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261304#M1215146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No my problem is when I press 'enter' key the data is updated in the internal table but it disappears from the screen.....and even if i click the save button it gets updated in my ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want the table control data should disappear from the screen only when i click the save button....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W. ARchana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 09:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-data-update-on-pressing-enter/m-p/5261304#M1215146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T09:01:11Z</dc:date>
    </item>
  </channel>
</rss>

