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

Table control on selection-screen

Former Member
0 Likes
1,324

Hi All,

If a check box is checked, I want to place a table control in a block on a normal selection-screen.

Please suggest me how to do this.

6 REPLIES 6
Read only

Former Member
0 Likes
788

create a table control from the start of the code.. then just make it invisible... then create a logic that if the checkbox is ticked, then make the table control visible.

hope this helps.

Read only

Former Member
0 Likes
788

Hello Manasa,

Its not posible using a simple selection-screen.

You need to create a MODULE POOL program for that.

In your Initial screen give your selection screen data.

below it create your table control.

Now in PBO add this code.

IF CHECK_BOX = ' '.

LOOP AT screen.

IF Screen-name = 'TBCL'.

screen-input = 0.

screen-invisible = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Hope this solves your problem. Revert back in case the problem persits.

Cheers,

Suvendu

Read only

Former Member
0 Likes
788

Hi,

You have to create a different screen for holding the table control.. When the checkbox is ticked just call the screen in your program which will display your table control.

Read only

Former Member
0 Likes
788

Hello manasa,

Its not possible in normal selection screen to create Table control.

Go with module pool program.

Design the screen as your requirement.

Under PBO write the bleow code.

Create a module like MODULE_DEACTIVATE_TC.

write the below code to invisible TC initially.

IF CHECKBOX IS INITIAL.

LOOP AT SCREEN.

IF SCREEN-NAME = 'TC'.

SCREEN-INPUT = '0'.

SCREEN_INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDIF.

Create module inder PAI,to acivate TC

MODULE ACTIVE_TC.

inside module write bleow code.

IF CHECKBOX EQ 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'TC'.

SCREEN-INPUT = '1'.

SCREEN_INVISIBLE = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

Read only

Former Member
0 Likes
788

Hi All,

Thanks for the response.

My Program is a Report Program. I have many other parameters on the sel-scr. Additionally I want to put a table control so that when user enters data, I need to put the data into an internal table and use it for futher processing.

I've already done this using a tabbed selection-scr.

But I want it on the normal sel-scr.

Read only

0 Likes
788

Hi,

You can use a table control wizard. With that, you will have the standard behavior of the table control without coding it manually (which is erroneous).

Hope this helps.

Thanks.

Best Regards,

Benedict