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

Dialog Screen problem

Former Member
0 Likes
1,098

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

5 REPLIES 5
Read only

Former Member
0 Likes
797

Give an information message and run PBO after this message i.e. dont allow further processing after the error.

Cheers

Read only

0 Likes
797

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.

Read only

0 Likes
797

I am also Unable to Close this Modal dialog box from X(Close). Is there any parameter I need to set ?

Read only

Former Member
0 Likes
797

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.

Read only

Former Member
0 Likes
797

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.