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

Hiding columns dynamically in a table control

Former Member
0 Likes
925

Hello all,

Based on the selected value in a dropdown box, I want to hide some columns in a table control. The table control is generated using the wizard from a work area and itab in the program. I have tried things like

loop at screen.

if screen-name = <work area>-<field name>.

screen-invisible = 1.

modify screen.

endif.

endloop.

I have also tried screen-active = 0, but it is not working. Is there any other way to achieve this?

Thanks in advance.

Regards,

Nithya

Hello all,

Based on the selected value in a dropdown box, I want to hide some columns in a table control. The table control is generated using the wizard from a work area and itab in the program. I have tried things like

loop at screen.

if screen-name = <work area>-<field name>.

screen-invisible = 1.

modify screen.

endif.

endloop.

I have also tried screen-active = 0, but it is not working. Is there any other way to achieve this?

Thanks in advance.

Regards,

Nithya

4 REPLIES 4
Read only

Former Member
0 Likes
645

Hi Nithya,

check the link to disable a column in the table control

You can display the Column as a List Box and associate Function Code with the Column. Whenever a value is selected, User Command will be triggered and you can then modify the data in the table control based on that.

cheers,

Hema.

Read only

Former Member
0 Likes
645

hi,

u cant make it invisible but u can make it disable by making one module in PBO...

MODULE init_screen OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'ITAB_DET-BILL_NO' AND zform_track_mast-comp_code = '1000'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDMODULE. " init_screen OUTPUT

reward if usefull...

Read only

Former Member
0 Likes
645

Hi Nithya,

Try this below logic that will solve ur problem.Write this logic in PAI EVENT(compulsory in PAI event).

loop at screen.

if screen-name = 'WA-FIELDNAME'.

screen-input = 0.

endif.

modify screen.

endloop.

Reward points if helpful.

Kiran Kumar.G.A

Edited by: KIRAN KUMAR on Jan 16, 2008 12:32 PM

Read only

Former Member
0 Likes
645

Hi,

use like,

loop at screen.

if screen-name = <your column heading>. "like ztab-fieldnam1 etc..

screen-active = 0.

endif.

modify screen.

endloop.

Regards,

Renjith Michael.