‎2007 Mar 01 6:52 AM
Hi,
I have an issue. I have some fields and a table control (without any tabstrips)
in a screen.
In PBO I want to hide two fields and the table control, and on pressing a push button I want them to be displayed.
I enabled invisible check box for those fields in screen attributes itself but for table control its not possible.
In PBO I gave the code
LOOP AT tc-cols INTO wa_col.
wa_col-screen-invisible = 'X'.
wa_col-screen-active = 0.
MODIFY tc-cols FROM wa_col.
ENDLOOP.
But its not working.
I grouped the fields and gave the coding like this
LOOP AT SCREEN.
IF screen-group1 = 'GR1'.
screen-invisible = 1.
ENDIF.
IF screen-name = 'TC'.
screen-active = 0.
screen-invisible = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Moreover two i/o fields that I made invisible, are also displaying in PBO with '*' asterisks inside them.
Please help me
Regards,
Lakshmi
‎2007 Mar 01 7:10 AM
hi
try this web links, may giv u some ideas:
<a href="http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch">http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch</a>
<a href="http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch">http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch</a>
regards,
shamim
‎2007 Mar 01 7:10 AM
hi
try this web links, may giv u some ideas:
<a href="http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch">http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch</a>
<a href="http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch">http://https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forumsearch</a>
regards,
shamim
‎2007 Mar 01 7:26 AM
‎2007 Mar 01 7:27 AM
hi lakhmi
you have to add
screen-active = 0. for text box also.
Madhumati
*Reward points if helpful
‎2007 Mar 01 7:59 AM
Yes . I put all the fields in modification group1.
LOOP AT SCREEN.
IF screen-group1 = 'GR1'.
screen-invisible = 1.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Also all the fields of the table control too in group1.
but still its not working
‎2007 Mar 01 8:18 AM
OK . Except the table control all others are hidden now.
Please suggest a way to hide the table control also.
‎2007 Mar 01 8:26 AM
I gave both the codes to hide a table control in PBO but its not working.
Please suggest a solution.
LOOP AT tc-cols INTO wa_col.
wa_col-screen-invisible = 1.
wa_col-screen-active = 0.
MODIFY tc-cols FROM wa_col.
ENDLOOP.
LOOP AT SCREEN.
IF screen-name = 'TC'.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
‎2007 Mar 01 8:43 AM
Hi,
You will be having a Loop, endloop in the PBO for the table control.
Try putting this code into this.
It would work.
Moreover if you are doing the diplay/change using a Push Button in the same screen you need to be little careful.
Let me know if this works.
‎2007 Mar 01 8:58 AM
Yes pallavi.
PROCESS BEFORE OUTPUT.
LOOP WITH CONTROL tc .
MODULE tablecontrol_hide.
ENDLOOP.
module tablecontrol_hide output.
LOOP AT tc-cols INTO wa_col.
wa_col-screen-invisible = 1.
wa_col-screen-active = 0.
MODIFY tc-cols FROM wa_col.
ENDLOOP.
endmodule. " tablecontrol_hide OUTPUT
I gave like this and also like this both ae not working
module tablecontrol_hide output.
LOOP AT tc-cols INTO wa_col.
wa_col-screen-invisible = 1.
wa_col-screen-active = 0.
MODIFY tc-cols FROM wa_col.
ENDLOOP.
LOOP AT SCREEN.
IF screen-name = 'TC'.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endmodule. " tablecontrol_hide OUTPUT
‎2007 Mar 02 5:55 AM
Hi ,
I want to add search help functionality to screen field 2 based on the values i enter for screen field 1.
Please suggest a solution with codes asap.
My Thanks in advance
‎2009 Feb 05 7:34 AM