<?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 Maintenace dialog modification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198754#M1202930</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 this code...I tried it and it is working for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 
** New code.   " Naren.
   
  MODULE remove_column.

** New code end.   " Naren.
 MODULE LISTE_INITIALISIEREN.
 LOOP AT EXTRACT WITH CONTROL
  TCTRL_xxxxxxx CURSOR NEXTLINE.   " TCTRL_xxxxxxx  - table control name check your Flow logic
   MODULE LISTE_SHOW_LISTE.
 ENDLOOP.&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 code

 MODULE remove_column OUTPUT.

* You can get the table control name from the flow logic.
  DATA: wa_cols LIKE LINE OF TCTRL_XXXXXXX-COLS. 

  READ TABLE TCTRL_XXXXXXX-COLS 
                        INTO WA_COLS
                       WITH KEY SCREEN-NAME = 'Your column name'.

  IF SY-SUBRC = 0.
    WA_COLS-INVISIBLE = 'X'   . " Remove the column.
    MODIFY TCTRL_XXXXXXX-COLS FROM WA_COLS INDEX SY-TABIX.
  ENDIF.

 ENDMODULE..&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2009 17:43:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-13T17:43:53Z</dc:date>
    <item>
      <title>Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198746#M1202922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem wit a maintenace table. I have genereated  a maintenace dialog for a customizing table. Now i'd like to hide one column. But I'm not able to do this.I went to my generated dynpro and inserted a module with following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'Tab-Field1'.&lt;/P&gt;&lt;P&gt;screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;modify screen.&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;The column is no read only - but I still see the column. I there any possibility to do this with coding. I don't like to delete the columns in the element list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 16:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198746#M1202922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198747#M1202923</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 you always want the column to be invisible...Instead of writing code..change the attributes of the column to be invisible..and then activate the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198747#M1202923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198748#M1202924</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;Loop at screen.
if screen-name = 'TAB-FIELD1'. " the field name should be in caps
screen-active = 0.
modify screen.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameter: p_field(20) type c invisible.&lt;/CODE&gt;&lt;/PRE&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>Fri, 13 Feb 2009 17:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198748#M1202924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198749#M1202925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if somebody regenerate the table maintenance generator functiongroup again , then you will loose all your flow logic coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of coding the table maintenace screen flow logic , create a maintenance view for the customising table and create a table maintenance generator for that view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : remember while creating the maintenance view please kept only fields you want to display in the table maintenance generator..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198749#M1202925</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-02-13T17:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198750#M1202926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for the answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I can't make it invisible via checkbox, because the checkboxes in the element list are greyed out.&lt;/P&gt;&lt;P&gt;2. Sorry, in my codeexample I don't write it in captials, but in my "real program" i do.&lt;/P&gt;&lt;P&gt;3. I  understand you, but with a view I have the same problem - because I have to fill the hidden column before saving to the db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198750#M1202926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T17:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198751#M1202927</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 giving the following inside the LOOP AT...ENDLOOP...of the flow logic in the PBO event..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flow logic.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.

 LOOP AT EXTRACT
 ...............
   MODULE REMOVE.   " Custom code.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Module*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE remove OUTPUT.
Loop at screen.
if screen-name = 'Tab-Field1'.
screen-invisible = '1'.
screen-active = 0.
modify screen.
endif.
endloop.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198751#M1202927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T17:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198752#M1202928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For filling hidden column in the table maintenance  while saving you may need to use EVENT in table maintenance generator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198752#M1202928</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-02-13T17:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198753#M1202929</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;thank you for the fast answers, but it doesn't work. I can still see the column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but any other ideas - i have no one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198753#M1202929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T17:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table Maintenace dialog modification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198754#M1202930</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 this code...I tried it and it is working for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 
** New code.   " Naren.
   
  MODULE remove_column.

** New code end.   " Naren.
 MODULE LISTE_INITIALISIEREN.
 LOOP AT EXTRACT WITH CONTROL
  TCTRL_xxxxxxx CURSOR NEXTLINE.   " TCTRL_xxxxxxx  - table control name check your Flow logic
   MODULE LISTE_SHOW_LISTE.
 ENDLOOP.&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 code

 MODULE remove_column OUTPUT.

* You can get the table control name from the flow logic.
  DATA: wa_cols LIKE LINE OF TCTRL_XXXXXXX-COLS. 

  READ TABLE TCTRL_XXXXXXX-COLS 
                        INTO WA_COLS
                       WITH KEY SCREEN-NAME = 'Your column name'.

  IF SY-SUBRC = 0.
    WA_COLS-INVISIBLE = 'X'   . " Remove the column.
    MODIFY TCTRL_XXXXXXX-COLS FROM WA_COLS INDEX SY-TABIX.
  ENDIF.

 ENDMODULE..&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 17:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenace-dialog-modification/m-p/5198754#M1202930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T17:43:53Z</dc:date>
    </item>
  </channel>
</rss>

