Skip to Content

How to hide table control in a screen

Hi, Gems,

I want to hide the table control.Using "loop at screen" I am able to hide all other components except table control.

Can anyone tell me how to hide table control in a screen?

Any help will be appreciated.

-Thanks

Surajit.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 31, 2009 at 02:52 AM

    Write this in PBO.

    Table_control_name-INVISIBLE = 'X'.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2009 at 11:43 AM

    hi

    Check this link.

    visible-table-control

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2009 at 11:46 AM

    Hi,

    This can be easily done by marking the value of field INVISIBLE (of your table control) to X. Check your table control deep structure in debug mode. You will see this field. Just change the value to X and you are done with it.

    Let me know if there is any issue.

    Thanks

    Sourav

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2009 at 12:46 PM

    Hi,

    In the PBO (in a module outside to the LOOP...ENDLOOP), use this

    MODULE status_0100 OUTPUT.

    if sy-ucomm eq 'value'

    perform tab_hide.

    endif.

    ENDMODULE.

    form tab_hide.

    loop at screen.

    if screen eq 'tablename'.

    LOOP AT tab1-cols[] INTO wa1.

    wa1-invisible = '1'.

    MODIFY tab1-cols[] FROM wa1 INDEX sy-tabix.

    ENDLOOP.

    endif.

    endform.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 27, 2009 at 01:10 PM

    - Place your table control on one screen i.e 200 which is of type subscreen

    - create another subscreen i.e. 201 which would be empty

    - in main screen flow logic i.e. screen 100 call subscreen in subscreen area which you place on screen layout

    "PBO
    CALL SUBSCREEN sub_area INCLUDING sy-repid dynnr.
    
    "in ABAP program
    data: dynnr(4) type n value '0200'. "by default screen with table control is shown
    
    MODULE pai INPUT.
      if condition ...  "if some condition met
         dynnr = '0200'. "then show table control
      else. 
        dynnr = '0201'. "otherwise show empty screen
      endif.
    ENDMODULE.
    

    Regards

    Marcin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 28, 2009 at 04:01 AM

    Hi,

    Check this, hope it may help you.

    TYPE-POOLS: cxtab.

    CONTROLS:

    tc1 TYPE TABLEVIEW USING SCREEN '0100'.

    START-OF-SELECTION.

    CALL SCREEN '0100'.

    MODULE status_0100 OUTPUT.

    PERFORM status.

    ENDMODULE.

    FORM status .

    DATA wa_col TYPE cxtab_column.

    LOOP AT tc1-cols INTO wa_col.

    wa_col-screen-invisible = 0.

    wa_col-screen-active = 0.

    MODIFY tc1-cols FROM wa_col.

    ENDLOOP.

    ENDFORM. " status

    Regards,

    Revathi Bhoopal.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2009 at 03:04 AM

    Hi Surajith, <li>Lets say table control name is TABC. If you see the structure of TABC in debugging, you will see INVISIBLE field. <li> Just set like below

    TABC-INVISIBLE = '1'.
    
    Thanks Venkat.O

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2009 at 04:23 AM

    Hi,

    Your question has already been answered. This is a duplicate post. Kindly mark this answered.

    [How to hide table control in a screen;

    Add comment
    10|10000 characters needed characters exceeded