<?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 Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2285845#M498118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am a new commer in this field. i am working with table control.&lt;/P&gt;&lt;P&gt;i have a table control with 10 fields of which first 2 are key fields and should be input disabled. and for example i have 10 records.  When i press a button 'ADD New Records' i should u get a blank table control. AFter that when i m entering the first row and click save. i should get the first 2 colums input disabled and other inputenabled. and this should be only for the first row. when i click back this row should be appended to the table which was displyed at first.&lt;/P&gt;&lt;P&gt;                                 Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 08:43:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T08:43:17Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2285845#M498118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am a new commer in this field. i am working with table control.&lt;/P&gt;&lt;P&gt;i have a table control with 10 fields of which first 2 are key fields and should be input disabled. and for example i have 10 records.  When i press a button 'ADD New Records' i should u get a blank table control. AFter that when i m entering the first row and click save. i should get the first 2 colums input disabled and other inputenabled. and this should be only for the first row. when i click back this row should be appended to the table which was displyed at first.&lt;/P&gt;&lt;P&gt;                                 Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 08:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2285845#M498118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T08:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2285846#M498119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Using the Field attributes You make the first 2 fields of that table control as OUTPUT fields only, so that they are disbaled for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creating new entries in PAI write the logic:&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;New Entries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WHEN 'NEWE'.&lt;/P&gt;&lt;P&gt;      CLEAR: v_new, okcode,v_del_flag.&lt;/P&gt;&lt;P&gt;      v_new = 'X'.&lt;/P&gt;&lt;P&gt;  CLEAR v_lines.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE t_102_tc LINES v_lines.&lt;/P&gt;&lt;P&gt;  ctr2-lines = v_lines + 10.&lt;/P&gt;&lt;P&gt;  ctr2-top_line = v_lines + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      CLEAR okcode.&lt;/P&gt;&lt;P&gt;      IF v_input = c_flag.&lt;/P&gt;&lt;P&gt;         loop at Itab(table control).&lt;/P&gt;&lt;P&gt;              first check whether the record exists in DB table. if not&lt;/P&gt;&lt;P&gt;               then update the datavbase table with the records of internal table&lt;/P&gt;&lt;P&gt;              (Table control).&lt;/P&gt;&lt;P&gt;         endloop.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;        clear_102_data.&lt;/P&gt;&lt;P&gt;        LEAVE TO SCREEN 101.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 08:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2285846#M498119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T08:57:30Z</dc:date>
    </item>
  </channel>
</rss>

