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: 

control checkboxes input on basic list

Former Member
0 Kudos
102

Dear all,

I want to collect user input on a list which is displaying checkboxes. I want to display a pop-up window with some info as soon as any user selects one check box from the basic list and on validation display the message on pop-up.

after user confirmation if user again selects some other check box again a message needs to be displayed

I am not sure of the events fired when the user clicks on the list.

Please help with some example.

I have some user buttons( PF status) also on the same list.

7 REPLIES 7

Former Member
0 Kudos
55

hi Amit,

you can use..

AT SELECTION-SCREEN OUTPUT.

if check1 eq 'X'.

message i000(zmsg).

endif.

if check2 eq 'X'.

message i001(zmsg).

endif.

regards

satesh

Former Member
0 Kudos
55

HI Amit

PARAMETERS check1 as CHECKbox USER-COMMAND flag.

PARAMETERS check2 as checkbox user-command falg1.

at selection-screen output.

LOOP AT SCREEN.

IF check1 = 'X'

message i001(ztext) with 'Hello'.

ENDIF.

IF check2 = 'X'

message i002(ztext) with 'Hello'.

ENDIF.

endloop.

<b>to display popup window instead if messgae you can use

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

EXPORTING

  • TITEL = ' '

TEXTLINE1 =

  • TEXTLINE2 = ' '

  • START_COLUMN = 25

  • START_ROW </b> = 6

then you have to add a push button in the screen. then when the user clicks the button you have to show the messge. for that you have to use

At user-command.

if sy-lsind eq '2'.

if sy-ucomm eq 'fcode'.

<call the popup'

regards

kishore<b></b>

Message was edited by: Harikishore Sreenivasulu

Message was edited by: Harikishore Sreenivasulu

0 Kudos
55

DEar All,

Ihave to achieve this when I am already in the basic list which displays check boxes along with data records and not on the selection screen.

Thanks,

Amit

Former Member
0 Kudos
55

Hi amit,

1. AT LINE-SELECTION.

(while ticking the checkbox on basic list,

i don't think any event will fire)

2. The user should PICK the line

by double-clicking or should press F2.

3. Then u can go further.

4. see this code (just copy paste in new program)

It will display popup message.

REPORT abc.

*----


DATA : ck TYPE c.

DATA : flag TYPE c.

PARAMETERS : a TYPE c.

*----


START-OF-SELECTION.

PERFORM basiclist.

*----


FORM basiclist.

sy-lsind = 0.

flag = ''.

WRITE 😕 ck AS CHECKBOX , 'Basic List'.

ENDFORM. "basiclist

*----


at line-selection.

WINDOW STARTING AT 5 10 .

WRITE 😕 'Pop up window'.

regards,

amit m.

0 Kudos
55

Amit,

Since I am also having user defined PF status on the list hence this even At line selection is not getting triggered on double click or F2

thanks,

Amit

0 Kudos
55

Hi again,

1. AT USER-COMMAND

use this event.

and check sy-ucomm.

2. Moreove, when u use

WINDOW STARTING AT,

3. Make sure u set the new pf status,

otherwise the old one will come by default

in the popup window.

regards,

amit m.

former_member186077
Active Participant
0 Kudos
55

Hi Amit ,

As you have mentioned that there are certain user buttons on the application tool bar as well...

i assume that the user selects a checkbox and then clicks on any of the user buttons...In this case

suppose u have a push button calculate with FCODE 'CAL'

u can proceed with using

at user-command

case sy-ucomm.

when 'CAL'.

the contents of the selected record would be present in the sy-lisel.and process the data according.

endcase.

Regards,

Sriranjani