Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Invisible Column in Table control

Former Member
0 Kudos

HOw can I do invisible a column in a table control? In the screen Printer I cant see anything.

I have the tablecontrol:

LINE BURKS TEXT

I dont want to watch BURKS. But the column has to be here because i work with it..

thanks

Message was edited by:

Marc PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check this link:

http://help.sap.com/saphelp_sm32/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/frameset.htm

I think you need to use Internal table CXTAB_COLUMN which is a component of the structure CXTAB_CONTROL.

Thanks,

Santosh

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

In you Program PBO.

do like this.

loop at itab with <table Control>....

module modify_tc.

endloop.

in program

module modify_tc.

loop at screen.

if screen-name = 'ITAB-BUKRS'. "Give the name of your field

screen-invisible = 1.

modify screen.

endif.

endloop.

endmodule.

Regards,

Ravi

Former Member
0 Kudos

Check this link:

http://help.sap.com/saphelp_sm32/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/frameset.htm

I think you need to use Internal table CXTAB_COLUMN which is a component of the structure CXTAB_CONTROL.

Thanks,

Santosh

Former Member
0 Kudos

Hi

U need to change tha attribute of table control in PBO

PROCESS PBO
  
   MODULE CHANGE_TC.

   LOOP AT ....
   ENDLOOP.

  MODULE CHANGE_TC
     DATA: BEGIN OF WA_CTRL,
            SCREEN LIKE SCREEN,
            INDEX       TYPE I,
            SELECTED(1) TYPE C,         
            VISLENGTH   LIKE ICON-OLENG, 
            INVISIBLE(1) TYPE C,         
      END   OF WA_CTRL.




    LOOP AT <TABLE CONTROL>-COLS INTO WA_CTRL.
        IF WA_CTRL-SCREEN-NAME = 'BUKRS'.
          WA_CTRL-SCREEN-INPUT = 0.
          WA_CTRL-INVISIBLE = 1.
          MODIFY <TABLE CONTROL>-COLS IFROM WA_CTRL.
        ENDIF.
    ENDLOOP.
  ENDMODULE.

Max

Message was edited by:

max bianchi