Application Development 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: 

Selection screen text box not working

Former Member
0 Kudos

Hi,

I am doing Report using report catagory and selection screen check box.In my selection screen check box.if i check first time it's running after execution if i come back to selection screen if i uncheck that check box and select another one means it's not working no response.

What is a problem?

Any body know means tell me.

Thanks

Nandha

9 REPLIES 9

former_member188685
Active Contributor
0 Kudos

Hi Using that Check Box value may be you are Doing Some thing.

Because of that when you unselect it is not working.

regards

vijay.

0 Kudos

No,Same code if i execute first time it's fine.but after execution if i come back to selection screen and uncheck/check same checkbox it's not moving anywhere.

Nandha

Former Member
0 Kudos

Hi,

One question you have 2 check box right?

If so.....

Check the code of what you coded under check box...

IF P_CHECKBOX1 = 'x'.

..........

........

ELSEIF P_CHECKBOX2 = 'x'.

....

....

ENDIF.

Thanks.

0 Kudos

No,this is my code

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(17) text-017.

parameters:P1 as checkbox default 'x'.

SELECTION-SCREEN COMMENT 20(7) text-003 FOR FIELD p15.

parameters:P2 as checkbox.

SELECTION-SCREEN COMMENT 30(10) text-018 FOR FIELD p16.

parameters:P3 as checkbox.

SELECTION-SCREEN COMMENT 43(15) text-019 FOR FIELD p17.

SELECTION-SCREEN END OF LINE.

if p1 = 'x' and p2 = ' ' and p3 = ' '.

0 Kudos

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(17) text-017.

parameters:P1 as checkbox default <b>'X'.</b>

SELECTION-SCREEN COMMENT 20(7) text-003 FOR FIELD p15.

parameters:P2 as checkbox.

SELECTION-SCREEN COMMENT 30(10) text-018 FOR FIELD p16.

parameters:P3 as checkbox.

SELECTION-SCREEN COMMENT 43(15) text-019 FOR FIELD p17.

SELECTION-SCREEN END OF LINE.

if p1 = <b>'X'</b> and p2 = ' ' and p3 = ' '.

Try Now .

Vijay

0 Kudos

Hi,

Please make all your 'x' to 'X'.

it will work.

First time it is working because u have given it as 'x'.

When when u check P1 system stores it as 'X'.

Thank You,

Anu

abdul_hakim
Active Contributor
0 Kudos

Hi,

if check1 eq 'X'.

do some thing.

elseif check2 eq 'X'

do some thing.

endif.

Abdul

0 Kudos

No that is not a problem refer my code give to Deepak

Thanks

Nandha

Former Member
0 Kudos

Hi Nandha,

I do not know why and where you have used fields p15, p16 and p17, but as you have posted in your comment that before excuting for the 2nd time you are unchecking the checkbox P1 and checking other checkboxes. 

Please note that  the IF CONDITION that you have used in your program can work only when your first checkbox is checked and other 2 checkboxes are unchecked otherwise  the IF condition will fail and you cant get output.

Hope this helps you.