Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

raising error messages in user exit..

hi,

i have my code in sales order user exit FORM USEREXIT_SAVE_DOCUMENT.

the code needs to check for a condition and if that fails i do not want to allow the user to save the sales order, rather do the change as i expect.

i can display the message using my message class, right ? but then how to prevent further action of saving the sales order ?

thks

Tags:
Former Member
replied

After you give the error message, set the FCODE to 'ENT1'.

Like:

        message e398(00) with
                'Some error occured. Press enter.'.
        fcode = 'ENT1'.

Regards,

Naimesh Patel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question