<?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: adding new row to table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914896#M57891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the pbo, try to call the refresh control command, where ctrlname is the name of table control:&lt;/P&gt;&lt;P&gt;"REFRESH CONTROL ctrlname FROM SCREEN scr."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gianluca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2005 07:34:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-31T07:34:51Z</dc:date>
    <item>
      <title>adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914895#M57890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; in dialog programming, i want to add a blank row to table control in which some fields are input enabled and some or not. the which i wrote, one row is adding in to the internal table(in debugging, i could see) but not to the table control. can a ny one say might be the probable reason here i'm attaching the code i wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'BULKGOODS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_itab10-lifnr = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-name1 = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-ebeln = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-ebelp = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-matnr = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-zmmwmdesadv = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-menge = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-meins = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-vbeln = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-v_pallet = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-sobkz = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-lfsnr = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-lsmng = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-nltyp = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-nlber = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-nlpla = ''.&lt;/P&gt;&lt;P&gt;      i_itab10-bktxt = ''.&lt;/P&gt;&lt;P&gt;      APPEND I_ITAB10.&lt;/P&gt;&lt;P&gt;      clear i_itab10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one blank row is added to i_itab10, but no row to table control which also uses the same table, i.e., i_itab10. can u help me in this. earlier MATNR, MENGE,MEINS are not input enabled but now these have to be. how can i make the some of the fields of the added row input enabled?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 07:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914895#M57890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914896#M57891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the pbo, try to call the refresh control command, where ctrlname is the name of table control:&lt;/P&gt;&lt;P&gt;"REFRESH CONTROL ctrlname FROM SCREEN scr."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gianluca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 07:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914896#M57891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T07:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914897#M57892</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;Check this sample programhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abap&lt;EM&gt;Code&lt;/EM&gt;Samples/Table&lt;EM&gt;Control&lt;/EM&gt;in+ABAP.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 08:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914897#M57892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T08:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914898#M57893</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;Here I am giving my sample code.I initially set flag.I made the bold the part which you asked[some fields as editable.like that try for input enabled]&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;  MODULE set_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE get_t_ctrl_lines.&lt;/P&gt;&lt;P&gt;  LOOP AT i_makt WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dynamic screen modifications&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODULE set_screen_fields.&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;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_makt.&lt;/P&gt;&lt;P&gt;    FIELD i_makt-pick MODULE check.&lt;/P&gt;&lt;P&gt;    FIELD i_makt-zmatnr MODULE zmatnr .&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program, write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTC MESSAGE-ID zz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tables Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;TABLES: zzz_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table control Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;CONTROLS: t_ctrl TYPE TABLEVIEW USING SCREEN '9000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Variable Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;DATA : flg,           "Flag to set the change mode&lt;/P&gt;&lt;P&gt;       ln TYPE i.     "No. of records&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  get_T_CTRL_lines  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; Populating data&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 get_t_ctrl_lines OUTPUT.&lt;/P&gt;&lt;P&gt;  SELECT zmatnr zmaktx&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE i_makt&lt;/P&gt;&lt;P&gt;         FROM zzz_makt.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE i_makt LINES ln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To make the vertical scroll bar to come on runtime&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  t_ctrl-lines = ln + 100.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " get_T_CTRL_lines  OUTPUT&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_9000  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;Triggering event according to the user command&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_9000 INPUT.&lt;/P&gt;&lt;P&gt;  DATA :lv_fcode LIKE sy-ucomm,    "Function Code&lt;/P&gt;&lt;P&gt;        lv_answer(1) type c.       "Storing the answer&lt;/P&gt;&lt;P&gt;  lv_fcode = sy-ucomm.&lt;/P&gt;&lt;P&gt;  CASE lv_fcode.&lt;/P&gt;&lt;P&gt;    WHEN 'CHANGE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the flag to make the table control in editable mode[excluding&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;primary key].&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      flg = 'Y'.&lt;/P&gt;&lt;P&gt;    WHEN 'DELETE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the flag to make the table control in editable mode after&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;deleting the selected line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      flg = 'Y'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Confirmation of delete&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;         TITLEBAR       = 'Confirm'&lt;/P&gt;&lt;P&gt;         text_question  = 'Are you sure to delete from database?'&lt;/P&gt;&lt;P&gt;         TEXT_BUTTON_1  = 'Yes'(001)&lt;/P&gt;&lt;P&gt;         TEXT_BUTTON_2  = 'No'(002)&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;         ANSWER         =  lv_answer.&lt;/P&gt;&lt;P&gt;      if lv_answer eq '1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Updating the database table from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        UPDATE zzz_makt FROM TABLE i_makt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting the selected row from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DELETE i_makt WHERE pick = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting the selected row from the database table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DELETE FROM zzz_makt WHERE pick = 'X'.&lt;/P&gt;&lt;P&gt;        MESSAGE s005 WITH 'Deleted Successfully'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting new record or updating existing record in database table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      MODIFY zzz_makt FROM TABLE i_makt.&lt;/P&gt;&lt;P&gt;      MESSAGE s005 WITH 'Saved Successfully'.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      SET SCREEN '0'.&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT' OR 'CANCEL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Leaving the program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&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  set_screen_fields  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;Setting the screen fields&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 set_screen_fields OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF flg IS INITIAL.&lt;/P&gt;&lt;P&gt;      screen-input = 0.&lt;/P&gt;&lt;P&gt;    ELSEIF ( flg EQ 'Y' ).&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;IF ( ( screen-name = 'I_MAKT-ZMAKTX'&lt;/P&gt;&lt;P&gt;             OR screen-name = 'I_MAKT-CHECK1' )&lt;/P&gt;&lt;P&gt;            AND t_ctrl-current_line LE ln ) .&amp;lt;/b&amp;gt;* Making the screen fields as editable&lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )&lt;/P&gt;&lt;P&gt;                 AND t_ctrl-current_line LE ln ).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen field as uneditable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modifying the screen after making changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " set_screen_fields  OUTPUT&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  zmatnr  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;Appending records to the internal table&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 zmatnr INPUT.&lt;/P&gt;&lt;P&gt;  MODIFY i_makt INDEX t_ctrl-current_line.&lt;/P&gt;&lt;P&gt;  IF t_ctrl-current_line GT ln.&lt;/P&gt;&lt;P&gt;    READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting record if it does not exist in database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      APPEND i_makt.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;     MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " zmatnr  INPUT&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  set_status  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;Setting the GUI status&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 set_status OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR  'ZTITLE'.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " set_status  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp;      Module  CHECK  INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the internal table using the current line in table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE check INPUT.&lt;/P&gt;&lt;P&gt;  MODIFY i_makt INDEX t_ctrl-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " CHECK  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 08:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914898#M57893</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-31T08:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914899#M57894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jayanthi,&lt;/P&gt;&lt;P&gt;the code was very helpful, can u tell me why u kept 'OR' command in the highlighted code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 12:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914899#M57894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T12:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914900#M57895</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;IF ( ( screen-name = 'I_MAKT-ZMAKTX'&lt;/P&gt;&lt;P&gt;OR screen-name = 'I_MAKT-ZMAKTX')&lt;/P&gt;&lt;P&gt;AND t_ctrl-current_line LE ln ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code you asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table control,I am having three fields 'I_MAKT-ZMAKTX','I_MAKT-CHECK1' and 'I_MAKT-ZMATNR'.Since I want if the screen field is 'I_MAKT-ZMAKTX' or 'I_MAKT-ZMAKTX' , I want to make the corresponding cell as editable/non-editable.Since it is on loop,it will keep on checking for all the rows in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you edit your question as a thread and reward points if the answer is useful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jayanthi Jayaraman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 12:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914900#M57895</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-31T12:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: adding new row to table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914901#M57896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no jayanthi,&lt;/P&gt;&lt;P&gt; why that 'or' command you kept in the code which u sent it just now. i got some fields MATNR MENGE MEINS etc which are non editable earlier but in the added row i have to make it editable.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and Regards,&lt;/P&gt;&lt;P&gt;swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 12:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-new-row-to-table-control/m-p/914901#M57896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T12:38:44Z</dc:date>
    </item>
  </channel>
</rss>

