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

using checkbox at selection screen

Former Member
0 Likes
934

I used checkbox at selection screen and i want output as per selected checkbox. How to do that??

9 REPLIES 9
Read only

Former Member
0 Likes
902

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

Read only

Former Member
0 Likes
902

Nimit,

you can use just like:

if checkbox1 = 'X'.
perform.....
else.
perform....
endif.

Amit.

Read only

Former Member
0 Likes
902

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

Read only

Former Member
0 Likes
902

Hi,

Write your code in AT SELECTION SCREEN, check the checkbox variable value and write the respective code.

Thanks

Sudharshan

Read only

Former Member
0 Likes
902

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

Read only

Former Member
0 Likes
902

Hi Nimit,

Check this link:

Hope this helps you.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
902

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.

Read only

Former Member
0 Likes
902

When i select multiple checkboxes on the screen i'll not get the output as per my selection.

Read only

Former Member
0 Likes
902

U simly write like :

if rb1 eq 'X'.

Perform this

elseif rb2 eq 'X'.

Perform this

bla bla ....

endif.