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

deactivating table control on screen

murat_kaya
Participant
0 Likes
712

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?

1 ACCEPTED SOLUTION
Read only

murat_kaya
Participant
0 Likes
683

no idea??

5 REPLIES 5
Read only

murat_kaya
Participant
0 Likes
684

no idea??

Read only

0 Likes
683

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

Read only

0 Likes
683

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.

Read only

0 Likes
683

thanks Prashant,

with a little modification, your code solved my problem, you got the points

best wishes...

Read only

Vijay
Active Contributor
0 Likes
683

hi

in the pbo of the screen showing table control try like this.....

loop at screen.

if screen-name = <table control name>.

screen-input = 0.

endif.

endloop.

regards

vijay

reward points if helpful