‎2008 Jul 24 8:08 AM
I used checkbox at selection screen and i want output as per selected checkbox. How to do that??
‎2008 Jul 24 8:11 AM
hi,
You have to program that part in
AT SELECTION-SCREEN.
if CHk1 = 'X'.
<output code>.
else if CHk2 = 'X'.
<outpiut code 2>.
endif.
Regards
Sumit Agarwal
‎2008 Jul 24 8:13 AM
Nimit,
you can use just like:
if checkbox1 = 'X'.
perform.....
else.
perform....
endif.Amit.
‎2008 Jul 24 8:13 AM
Hi,
Write a code using if conditions.
If your check box name is r_select and r_select2.
Then write,
If r_select = 'X'.
<code>
elseif r_select2 = 'X'.
<code>
endif.
Reward pts. if usefull.
Regards,
Dhan
‎2008 Jul 24 8:14 AM
Hi,
Write your code in AT SELECTION SCREEN, check the checkbox variable value and write the respective code.
Thanks
Sudharshan
‎2008 Jul 24 8:14 AM
hiii
use following code
AT SELECTION-SCREEN.
IF p_char EQ 'X'.
w_check = 'X'.
WRITE: w_check.
ELSE.
w_check = ' '.
WRITE: w_check.
ENDIF.
SELECT b~carrid "Carrier Id
b~connid "Connection id
b~fldate "Flight date
b~price "Price
b~currency "Currency
b~seatsmax "Maximum Seats
INTO TABLE t_flight
FROM spfli AS a
INNER JOIN sflight AS b ON a~carrid = b~carrid
INNER JOIN sbook AS c ON c~carrid = b~carrid AND
c~connid = b~connid AND
c~fldate = b~fldate
WHERE b~carrid IN s_carrid AND
c~cancelled EQ w_check.regards
twinkal
‎2008 Jul 24 8:16 AM
‎2008 Jul 24 8:18 AM
hi,
Onece you have create a check box and assigned a function code( let say FCT123) to it then in PAI you can code like this,
IF sy-ucomm = 'FCT123'.
< do these operations'.
endif.
‎2008 Jul 24 8:22 AM
When i select multiple checkboxes on the screen i'll not get the output as per my selection.
‎2008 Jul 24 8:26 AM
U simly write like :
if rb1 eq 'X'.
Perform this
elseif rb2 eq 'X'.
Perform this
bla bla ....
endif.