09-10-2008 8:45 AM
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?
09-10-2008 8:49 AM
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.
09-10-2008 8:49 AM
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.
09-10-2008 9:26 AM
09-10-2008 9:35 AM
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...
09-18-2008 11:13 AM
Whenever we used module dialog box we should use the exit command...
call screen 100.
when 'exit'.
leave screen 100.
endcase.