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

Dynpro screen events

Former Member
0 Likes
1,672

Hallo experts,

I have a screen say 100. On this screen I have a listbox containing options 01, 02, 03. Now as soon as i select a particular option i want to display a popup message. but without clicking enter or say clicking any button. no activity is done after the selecting an option only the message is poped up.

Is anyone aware of some methods or events that can make this possible.?

Thanks.

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
905

Hi,

Use USER-COMMAND fcode addition when declaring listbox. Now when you just pick up the value it will trigger PAI immediatelly with sy-ucomm = fcode so you can display your pop-up after doing this check.

Regards

Marcin

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
906

Hi,

Use USER-COMMAND fcode addition when declaring listbox. Now when you just pick up the value it will trigger PAI immediatelly with sy-ucomm = fcode so you can display your pop-up after doing this check.

Regards

Marcin

Read only

Former Member
0 Likes
905

Hi,

When create a Checkbox in Screen painter.

Goto>Properties>Enter name of the checkbox in FCTCODE

And handle the FCTCODE in PAI of the screen.

Or,

GOTO>properties>Display tab-->check the box RESPOND ON DOUBLECLICK.

Hope this resolves your issue.

Regards,

Gurpreet

Read only

RaymondGiuseppi
Active Contributor
0 Likes
905

You can attach a Function Key to a field if it as a dropdown list, so manage this function code in PAI to display the popup.

- Call SE51 on your dynpro, double-click on the field, check if dropdown value is listbox and add a custom Function Code.

- In the PAI, find the user command module, and there when checking the ok_code value, manage the display of your popup.

Look at [User Actions on Screens|http://help.sap.com/saphelp_47x200/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm] and [Defining the Element Attributes|http://help.sap.com/erp2005_ehp_04/helpdata/EN/images/locate.gif]

Regards