‎2008 Feb 28 10:55 AM
hi,
i have a table control on the screen of an infotype regarding to a subtype and i will put another table control for some other subtype, i set the invisible parameter of the table control to X, although it is invisible there is still a blank place on the screen and the other table control is at the bottom. i guess i need to deactivate the table control but i couldn't manage to do that.
how can i do this, can anyone help me on this matter?
‎2008 Feb 28 11:48 AM
‎2008 Feb 28 11:48 AM
‎2008 Feb 28 11:59 AM
Hi,
You can very well do it. but if you disable the screen it will disable the data on the table control but the space will be always their.
You can try to use disabling the table control itself, you can loop the table control and disable it.
You can see below code in which i disabled the perticular column of the table control.
In the PBO
Loop with control <table Control name>
Module modify_screen.
ENDLOOP.
Module modify_screen.
Data: wa_col TYPE cxtab_column.
LOOP AT tc_wf_log-cols INTO wa_col.
IF wa_col-screen-name = 'BUT2'.
wa_col-invisible = 'X'.
MODIFY tc_wf_log-cols FROM wa_col.
ENDIF.
ENDLOOP.
Endmodule.
Please let me know if anything else requires.
Please give reward point if it is useful.
Cheers.
Prashant Raichurkar
‎2008 Feb 28 12:02 PM
Hi Murat,
I have been trying permutations and combinations on this and trying to get it to work, however the free space is very stubborn and not compressing.
The only solution would be to create two different screens for each subtype. Actually thats not a bad option and even standard SAP works it that way. Using T588M table maintenance you can then determine which screen is attached to which subtype.
Cheers.
‎2008 Feb 28 1:38 PM
thanks Prashant,
with a little modification, your code solved my problem, you got the points
best wishes...
‎2008 Feb 28 12:02 PM