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

Module Pool

Former Member
0 Likes
1,093

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,076

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,077

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

Read only

0 Likes
1,076

Shamim,

Those links are not working

invalid domain names

Read only

Former Member
0 Likes
1,076

hi lakhmi

you have to add

screen-active = 0. for text box also.

Madhumati

*Reward points if helpful

Read only

0 Likes
1,076

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

Read only

0 Likes
1,076

OK . Except the table control all others are hidden now.

Please suggest a way to hide the table control also.

Read only

Former Member
0 Likes
1,076

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.

Read only

0 Likes
1,076

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.

Read only

0 Likes
1,076

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

Read only

0 Likes
1,076

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

Read only

Former Member
0 Likes
1,076

Closed