<?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 add line in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366961#M807996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks adity...&lt;/P&gt;&lt;P&gt;point has been given&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 15:36:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T15:36:46Z</dc:date>
    <item>
      <title>table control add line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366959#M807994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have table control it pick data from ztable there are 4 (A ,B,C,D )field in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is when it going to display field B( text-filed ) on screen it should come in disable mode and (C- int ,D - int )should come in enable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I add new line then only New Line data i.e B (Txt) come in enable mode .whatever data coming from ztable B(txt) must be disable mode . So that user can not change coming from ztale only new entries to allowed to edit..&lt;/P&gt;&lt;P&gt;How to do that logic ?&lt;/P&gt;&lt;P&gt;Please help me..&lt;/P&gt;&lt;P&gt;Point is assured..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 14:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366959#M807994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T14:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: table control add line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366960#M807995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Monica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this, assign a group (modif) id to the screen field/column for B field in the table control. When you double click on the column, you shall four boxes, which are group IDs .. SCREEN-GROUP1 to GROUP4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in first box, assign say HID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the PBO flow logic, you have the LOOP ... ENDLOOP on table control. Create a new module within this LOOP/ENDLOOP as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE md_enable_disable_b.
 LOOP AT SCREEN WHERE GROUP1 EQ 'HID'. 
IF WA-B IS INITIAL. "no value in b field
    SCREEN-INPUT = '1'. "enable field for input
ELSE.
   SCREEN-INPUT = '0'. "value is there in the field then disable
ENDIF.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming here wa is the work area of the internal table.&lt;/P&gt;&lt;P&gt;this should do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Feb 1, 2008 12:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 17:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366960#M807995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T17:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: table control add line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366961#M807996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks adity...&lt;/P&gt;&lt;P&gt;point has been given&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 15:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-add-line/m-p/3366961#M807996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T15:36:46Z</dc:date>
    </item>
  </channel>
</rss>

