‎2009 Jun 15 9:17 AM
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.
‎2009 Jun 15 9:19 AM
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.
‎2009 Jun 15 10:07 AM
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
‎2009 Jun 15 10:10 AM
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.
‎2009 Jun 15 10:15 AM
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.
‎2009 Jun 15 10:22 AM
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.
‎2009 Jun 16 3:18 AM
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