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: 

Modal Dialog box in Dialog Programe

Former Member
0 Kudos

I have create one Modal Dialog Box in Module Pool.

when i click on the 'X' on the top right side of that screen the Dialog box is not closed.

Can any one help on this?

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

For the Modal Dialog box you need to create the Status, while creating the status Choose the Status for Dialog box. that time you it will show different Status Options.

you need to set the status to the CANCEL(X) button , Then handle the Function in the PAI user_command module.

CASE sy-ucomm.

when 'CANCEL'.
leave to screen 0.

endcase.

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

For the Modal Dialog box you need to create the Status, while creating the status Choose the Status for Dialog box. that time you it will show different Status Options.

you need to set the status to the CANCEL(X) button , Then handle the Function in the PAI user_command module.

CASE sy-ucomm.

when 'CANCEL'.
leave to screen 0.

endcase.

0 Kudos

you mean to create the new PF Status...

0 Kudos

I mean Modal Dialog box is also a screen , for the screen you have PBO and PAI.

In PBO module you create the status for the Modal Dialog box , That status should be Dialog box status.

and set the Satus for CANCEL then see...

0 Kudos

Whenever we used module dialog box we should use the exit command...

call screen 100.

when 'exit'.

leave screen 100.

endcase.