Skip to Content
author's profile photo Former Member
Former Member

keeping Validations in a user exit

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2009 at 08:48 AM

    HI,

    U can use error messages in an user exit.. However as per ur issue it seems ur code is called twice ....Please see the okcode for the same..

    When ever u press save button , u r validating....once ur validation is fine u should allow to save it...otherwise throw error message... Make sure that u satisf the conditions in the validation for saving..

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.