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

How to unhide a table control?

Former Member
0 Likes
921

Hi gems,

I need to make a table control visible based on a push button press.

For your information, initially i am hiding the table control using table control component INVISIBLE = 1.

While pressing the button, I am making INVISIBLE = 0. But not getting desired output.

can any1 help me on this?

Any help will be appreciated.

--thanks,

Surajit

Hi gems,

I need to make a table control visible based on a push button press.

For your information, initially i am hiding the table control using table control component INVISIBLE = 1.

While pressing the button, I am making INVISIBLE = 0. But not getting desired output.

can any1 help me on this?

Any help will be appreciated.

--thanks,

Surajit

6 REPLIES 6
Read only

Former Member
0 Likes
835

Hi,

We have to do the unhiding in PBO of the screen so i hope you are doing the invisible = 0,input = 1 in the PBO of the screen on which you have the table control.

Also if it is not working can you share the code.

Regards,

Himanshu

Read only

Former Member
0 Likes
835

Thanks for your reply.

I am doing it in PBO only.

Table control have a component called INVISIBLE but there is no component called ACTIVE or INPUT(these are screen component).

Right now i dont hav the code with me but i can give you a idea.

In PAI i am populating a flag.

In PBO, based on the flag I am calling a perform.

Code in the perform is as follows:

Form A.

*--


to modify screen component--


loop at screen.

.....

.....

endloop.

*----


TABC1-INVISIBLE = '1'.

ENDFORM.

Hope this will help you to understand.

Read only

Sandra_Rossi
Active Contributor
0 Likes
835

Your algorithm seems correct. I guess there is just a little error somewhere in your code not linked to "invisible".

>

> But not getting desired output.

What are you getting, does something appear?

Did you check all the fields of the "controls" structure ([abap doc - table control|http://help.sap.com/abapdocu_70/en/ABAPCONTROLS_TABLEVIEW.htm])

Read only

Former Member
0 Likes
835

guys...i got the sol.

It is not 1 or 0...it is X or space.

i.e. INVISIBLE = 'X' or INVISIBLE = space.

thanks all for ur effort.

Read only

Former Member
0 Likes
835

guys...i got the sol.

It is not 1 or 0...it is X or space.

i.e. INVISIBLE = 'X' or INVISIBLE = space.

thanks all for ur effort.

Read only

Former Member
0 Likes
835

Resolved by captain Surajit