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

Leave screen

Former Member
0 Likes
1,602

Hi!

I have a modal dialog dynpro and there are several required fields on it. It has his own pf status, and the back, return, exit commands are turned in.

However if I wanted to leave the screen with ESC button (or with anything else) it asks me to fill the required fields.

How can I leave this dynpro, if I don't want to fill all thos fields, just exit without any error message?

Thank you

Tamá

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,267

assign at exit-command to the button with which you want to exit.

in menu when you double click that button in Function type give 'E'.

your problem will be solved.

regards,

kushagra

6 REPLIES 6
Read only

Former Member
0 Likes
1,267

Hi Tamas,

in the command field you can type type /n, then press enter. You will leave the transaction without saving.

Best Regards, Edgar

Read only

0 Likes
1,267

Unfortunately as I said, it is a modal dialg dynpro, it has no command field. And I wanted a solution, which is much more user friendly, than the /n transaction code...

Read only

Former Member
0 Likes
1,267

hi

try this.

in the flow logic .have module exit.

process after input.

module exit at exit-command.

in main program.

module exit input.

case ok_code.

when 'exit'.

leave program.

when cancel.

.

.

.

endcase.

endmodule.

Read only

Former Member
0 Likes
1,267

Hi,

You can use the AT EXIT COMMAND in your module pool.

Also change the field attribute from OBLIGATORY to REQUIRED.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,268

assign at exit-command to the button with which you want to exit.

in menu when you double click that button in Function type give 'E'.

your problem will be solved.

regards,

kushagra

Read only

Former Member
0 Likes
1,267

Super, I can always learn... Thank you all