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

How to delete standard error message

Hello,

We have a requirement to create new charge credit instance ( BO FOPXD_TAXRPENT ). When an instance of New charge credit is created , an instance of the DO FOPXF_EXER is created which in turn creates an instance of DO Coding block item.

When this instance of coding block is created the BO creates an error message "G/L account missing ". (Message class: /ISCB/CB_CHECK Mesage number:004)

The call to the DO Coding block is made by the determination class CL_FOP_D_TAXRPENT_CRE_EXRCEXPL of BO FOPXD_TAXRPENT after this error message is added to the message handler the control returns to the above mentioned class.

As per our requirement, we need to delete this error message from the message handler in the BO FOPXD_TAXRPENT in class CL_FOP_D_TAXRPENT_CRE_EXRCEXPL.

Please suggest possible ways to access the error message and delete the same from the message handler in this class.

Thanks,

Subhankari

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 Jul 15, 2014 at 11:25 AM

    Hi Subhankari,

    From the above my understanding is that you dont want to show the above error message.

    Check for the variable named ET_MESSAGES. Try to clear that internal table. Ideally it contains the messages to be shown on the screen.

    Hope this helps. 😊


    Regards,
    Sanket.

    Add a comment
    10|10000 characters needed characters exceeded

    • Dear Subhankari,

      I would suggest the following options.

      1. Either you create a overwrite exit for the method in which error message is processed. Write only the code which is required for you in overwrite exit. or

      2. Create Implicit enhancement to clear the ET_MESSAGES internal table or

      Check any of the above options whichever is convenient to you.

      Thanks,

      Bharath.K

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.