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

keeping Validations in a user exit

Former Member
0 Likes
709

Hi folks,

I am trying to keep some validations for attachments in ME51N Tcode. Before saving the document, system will check for the attachment.If it is empty it will prompt a error message saying its mandatory.After seeing the message when user attach the attachment and try to save the screen again it showing a system error.Can we use error message in the user exits.If not what is the alternative for that.Could any suggest me..

Thanks in advance,

Shyam.

Hi folks,

I am trying to keep some validations for attachments in ME51N Tcode. Before saving the document, system will check for the attachment.If it is empty it will prompt a error message saying its mandatory.After seeing the message when user attach the attachment and try to save the screen again it showing a system error.Can we use error message in the user exits.If not what is the alternative for that.Could any suggest me..

Thanks in advance,

Shyam.

3 REPLIES 3
Read only

Former Member
0 Likes
623

Hi Shyam,

We can use Error message in user exit.

also we can put validation in the enhancement.

you can try with error message with any message you want to display.

Regards,

Vijay

Read only

Former Member
0 Likes
623

Hi,

Customizing: Tools -> System Modifications -> User-Defined Validations. For parameter and function module.

function: enhancement EDMLELDV, for example function module EXIT_SAPLEPU1_001

-Thanks & Regards

Saurabh Goel

Read only

Sandra_Rossi
Active Contributor
0 Likes
623

what you can do for each user exit is usually documented by sap, either in function module documentation, in SPRO, or in sap notes. If you can't send an error message in this user exit, use another user exit