<?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 edit in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993583#M1343010</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 created a screen, in that screen a table control is added for that table i changed table fields settings only to 'Display ' .....&lt;/P&gt;&lt;P&gt;now i created a button in application bar and if i click that button i must edit that table control........&lt;/P&gt;&lt;P&gt;plz can any help me how to get edit mode in table ..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2009 09:16:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-14T09:16:58Z</dc:date>
    <item>
      <title>edit in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993583#M1343010</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 created a screen, in that screen a table control is added for that table i changed table fields settings only to 'Display ' .....&lt;/P&gt;&lt;P&gt;now i created a button in application bar and if i click that button i must edit that table control........&lt;/P&gt;&lt;P&gt;plz can any help me how to get edit mode in table ..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 09:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993583#M1343010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: edit in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993584#M1343011</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;U need to manage it into the LOOP/ENDLOOP of table controls in PBO process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's better to create a flag to be set when the user press the button for display/edit, this flag has to be checked in order to decide which value has to be assigned to output chararcteristic of the fields of the table control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; PROCESS PBO.
   
   LOOP AT ITAB WITH ................
       MODULE CHANGE_SCREEN.
  ENDLOOP.

PROCESS PAI.
   
   LOOP AT ITAB.
  ENDLOOP.
  
   MODULE USER_COMMAND.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE CHANGE_SCREEN
    LOOP AT SCREEN.
      SCREEN-INPUT = FL:INPUT.
      MODIFY SCREEN.
   ENDLOOP.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; MODULE USER_COMMAND.
   CASE OK_CODE.
      WHEN 'EDIT'. FL_INPUT = '1'.
      WHEN 'DISP'. FL_INPUT = '0'.
     ....................
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define that flag in top include with a default value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: FL_INPUT(1) TYPE C VALUE '0'. "&amp;lt;--- Screen not editable by default &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 09:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993584#M1343011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T09:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: edit in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993585#M1343012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ask,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code like this in the PAI of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table control name is flights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : cols like line of flights-cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-ucomm =  'TOGGLE'.  "Assuming  buttons function code is TOGGLE&lt;/P&gt;&lt;P&gt;      LOOP AT flights-cols INTO cols.&lt;/P&gt;&lt;P&gt;        IF  cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;          cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;        ELSEIF  cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;          cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        MODIFY flights-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rohit Gaharwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 09:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993585#M1343012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T09:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: edit in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993586#M1343013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are creating table control Without Wizard, Then Do Following Steps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Suppose In table contro you are using It_disp Internal Table.&lt;/P&gt;&lt;P&gt;2 When you are clicking Pushbutton, There will be some Sy-ucomm is coming.&lt;/P&gt;&lt;P&gt;3 Inside MODULE USER_COMMAND_0101.&lt;/P&gt;&lt;P&gt;4 At-sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write Following Code.&lt;/P&gt;&lt;P&gt;Inside PBO For Making it in Display Mode, Add code like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if it_disp is initial and flag ne 'X'.
loop at screen.
if screen-group2 = 'X'.
  screen-input = 0.
  modify screen.
endif.
endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case sy-ucomm.
 WHEN 'INSR'. 
flag = 'X'.
append initial line to it_disp. 
describe table it_disp lines idisp-lines
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shelly Malik on Aug 14, 2009 11:42 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shelly Malik on Aug 14, 2009 11:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 09:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993586#M1343013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T09:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: edit in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993587#M1343014</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  table control i hav take table 't_itab2' from program,   am able 2 c data but am not abl 2 edit data in table......&lt;/P&gt;&lt;P&gt;plz can u further help me ..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx 4 reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 12:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993587#M1343014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: edit in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993588#M1343015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For editing data in table t_itab2 you have to write code in PBO .&lt;/P&gt;&lt;P&gt;As an example please refer the following test code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: WA_TAB TYPE CXTAB_COLUMN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT t_itab2-COLS INTO WA_TAB.&lt;/P&gt;&lt;P&gt;        IF WA_TAB-SCREEN-GROUP1 = 'A1' .&lt;/P&gt;&lt;P&gt;          WA_TAB-SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;         MODIFY y_itab-COLS FROM WA_TAB.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will solve your prob.&lt;/P&gt;&lt;P&gt;Gaurav Handa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gaurav Kumar on Oct 30, 2009 6:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 05:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-in-table-control/m-p/5993588#M1343015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-30T05:40:04Z</dc:date>
    </item>
  </channel>
</rss>

