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

screen exit Payment document saved when press enter after error message

Former Member
0 Likes
535

Hi All,

I have created a screen enhancement for payment document WZR1.its in additional data tab under header details.

Here i should populate a error message when user save the payment document without entering values to custom screen fields.It works fine with Function exit LWZRE017 . It populated the msg and the screen is disabled but after when i press enter button the document is saved and created.

please let me know how to stop saving the document without entering values in custom fields.

Thanks,

Arun kumaran.

Edited by: Arun Kumaran on Mar 4, 2010 12:09 PM

Edited by: Arun Kumaran on Mar 4, 2010 3:26 PM

Edited by: Arun Kumaran on Mar 4, 2010 3:43 PM

Hi All,

I have created a screen enhancement for payment document WZR1.its in additional data tab under header details.

Here i should populate a error message when user save the payment document without entering values to custom screen fields.It works fine with Function exit LWZRE017 . It populated the msg and the screen is disabled but after when i press enter button the document is saved and created.

please let me know how to stop saving the document without entering values in custom fields.

Thanks,

Arun kumaran.

Edited by: Arun Kumaran on Mar 4, 2010 12:09 PM

Edited by: Arun Kumaran on Mar 4, 2010 3:26 PM

Edited by: Arun Kumaran on Mar 4, 2010 3:43 PM

2 REPLIES 2
Read only

Former Member
0 Likes
480

Raise an ERROR MESSAGE / WARNING message first.

After that SET SCREEN TO SY-DYNNR. LEAVE SCREEN.

In this way we can avoid saving the doc. when error occurs.

Read only

0 Likes
480

I found the fcode when enter is 'ENT1' it is from standard screen program.

I populated the same message when UCOMM = 'ENT1' still not working.

ARUN KUMARAN.

Edited by: Arun Kumaran on Mar 5, 2010 1:36 PM

Edited by: Arun Kumaran on Mar 5, 2010 2:11 PM