‎2005 Sep 15 4:08 PM
I have created a dialog screen with arrtibute
SCREEN TYPE = Modal Dislog Box.
On the screen I have 5 variables with two mandatory.
I have put validation with all variables.Now if error occured I am displaying error popup message "Enter valid values"
when user hit enter or green check bok on the error popup.
After that he again need to hit enter to enable all the five fields. means one extra enter he/she has to hit.
Second issue with the Modal dislog screen is that
to close the dialog screen X (Close) is not working.
Please suggest
Aman
‎2005 Sep 15 4:17 PM
Give an information message and run PBO after this message i.e. dont allow further processing after the error.
Cheers
‎2005 Sep 15 4:26 PM
For the first use SET CURSOR fieldname and then give your message.
For the second use SET SCREE 0
LEAVE SECREEN
in exit-processing module.
hope this help.
regards
suresh.
‎2005 Sep 15 4:49 PM
I am also Unable to Close this Modal dialog box from X(Close). Is there any parameter I need to set ?
‎2005 Sep 15 5:22 PM
In The GUI status you should have a CANC ( cancel ) fcode defined in the Function Keys of type "E".
Also check if you have coded
SCREEN
MODULE CANCEL on EXIT COMMAND.
ABAP
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
‎2005 Sep 15 6:56 PM
Amandeep, have you ried this :
chain.
field : zvar01, zvar02, zvar03, zvar04, zvar05.
module validate.
endchain.
Where your ZVARxx are your 5 variables and PBO module VALIDATE contains the type "E" message.
This way, once you display your "E" message, the 5 variables will be still open for INPUT.
For the MODULE type DIALOG, I gave up on that problem. I also can't close the screen via the "X" icon on the upper right of the box.
What I did was declare as NORMAL and called the screen this way :
Call Detail Screen
call screen 9600 starting at 15 1
ending at 125 26.
Just to emulate a MODAL dialog box.
Hope that helps.