2008 Jan 16 11:07 AM
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
2008 Jan 16 11:10 AM
2008 Jan 16 11:27 AM
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...
2008 Jan 16 11:31 AM
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
2008 Jan 16 11:37 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |