Application Development and Automation 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: 
Read only

Hide The Table in Table-Control Dialogue Programming

biswajit_das6
Participant
0 Likes
753

Hi all,

How to hide the TABLE itself (not the columns only but the whole table completely) in table-control in dialog-programming.can any one please help me.....

Regards,

Biswajit

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
534

Hi Biswajit,

To hide/display the table control in module pool programming, on a button click, follow code:-

Its working.

In PAI


  CASE sy-ucomm.

    WHEN 'HIDE'.
      po_tb-invisible = 'X'. "po_tb is table control name (hide table control)

    WHEN 'SHOW'.
      po_tb-invisible = ' '. "po_tb is table control name (display table control)

  ENDCASE.

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir

3 REPLIES 3
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
535

Hi Biswajit,

To hide/display the table control in module pool programming, on a button click, follow code:-

Its working.

In PAI


  CASE sy-ucomm.

    WHEN 'HIDE'.
      po_tb-invisible = 'X'. "po_tb is table control name (hide table control)

    WHEN 'SHOW'.
      po_tb-invisible = ' '. "po_tb is table control name (display table control)

  ENDCASE.

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir

Read only

0 Likes
534

Thank you all.....

Read only

Former Member
0 Likes
534

Hi,

use the screen table.

delclare as a "table" for the group properties of that table element.

LOOP AT SCREEN.

if screen-goupt1 = "table"

if the pushbutton = 'HIDE'

screen-required = 0.

screen-invsible = 0.

screen-input = 0.

MODIFY SCREEN.

ELSEIF the pushbutton = 'SHOW'

screen-required = 0.

screen-invsible = 1.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

endif.

ENDLOOP.

it solves your problme.

Thanks