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: 

Creating Popup screen using dialog box

Former Member
0 Kudos

Hi All,

I need to create a popup screen with some input fields in it.

For this I have created a 'Modal Dialog Box' screen and called this screen(using below syntax) when the corresponding action is triggered.

CASE sy-ucomm.

WHEN '<fun. code>'.

CALL SCREEN <screen number> STARTING AT 5 5 ENDING AT 30 10.

How to handle the buttons in the bottom of the dialog box ? Actualy I need to have only two buttons - one for OK and other for cancel, but both of them are not available. Is there any way to disable those buttons. Is there any other way to achive the above mentioned requirement.

Thanks & Regards,

Sabu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In PBO module set pf status for modal dialog window and if u want to disable them fill a internal table(itab) with one field of type sy-ucomm and pass as

set pf status excluding itab.

will disable buttons.

u can also create push button in layout of dialog window.

in the PAI of mdal dialog window in module

at user command

case sy-ucomm.

when 'CANCEL'.

leave to screen 0.

when 'OK'.

*do what ever action u want to erform on ok.

hope this will help u post for fuirther queries.

Thanks

Gaurav.

Edited by: gaurav.singh on Apr 13, 2010 11:13 AM

3 REPLIES 3

Former Member
0 Kudos

In PBO module set pf status for modal dialog window and if u want to disable them fill a internal table(itab) with one field of type sy-ucomm and pass as

set pf status excluding itab.

will disable buttons.

u can also create push button in layout of dialog window.

in the PAI of mdal dialog window in module

at user command

case sy-ucomm.

when 'CANCEL'.

leave to screen 0.

when 'OK'.

*do what ever action u want to erform on ok.

hope this will help u post for fuirther queries.

Thanks

Gaurav.

Edited by: gaurav.singh on Apr 13, 2010 11:13 AM

0 Kudos

Hi Gaurav,

Thanks for your input.

Can you pls explain some more in the button dissabling part.

Thanks,

Sabu

0 Kudos

I described it [here|;

Regards

Marcin