08-27-2009 10:55 AM
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.
08-31-2009 3:52 AM
08-27-2009 12:43 PM
08-27-2009 12:46 PM
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
08-27-2009 1: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.
08-27-2009 2: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
08-28-2009 5: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.
08-31-2009 3:52 AM
08-31-2009 4: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
Thanks
Venkat.O
TABC-INVISIBLE = '1'.
08-31-2009 5:23 AM