11-23-2005 11:18 AM
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
11-23-2005 11:21 AM
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.
11-23-2005 11:33 AM
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
11-23-2005 11:23 AM
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.
11-23-2005 11:35 AM
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 = ' '.
11-23-2005 11:46 AM
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
11-23-2005 2:11 PM
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
11-23-2005 11:31 AM
Hi,
if check1 eq 'X'.
do some thing.
elseif check2 eq 'X'
do some thing.
endif.
Abdul
11-23-2005 11:37 AM
No that is not a problem refer my code give to Deepak
Thanks
Nandha
05-14-2013 5:10 PM
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.