Skip to Content

How to Handle ALV Triggered Error Messages?

Hello Experts,

I've a couple of editable ALVs embedded inside tabstrip areas. The user should not be allowed to navigate to another tab, until all the input value errors in ALV, in current tab are resolved.

I'm handling all the validation in ON_DATA_CHECK method of respective ALVs and displaying the error messages using WD message manager. I'm changing the colour of the errored cells using cell design property. The data check is being called through DATA_CHECK method of the ALV interface, when tabs are being switched. I'm checking the r_param->t_error_cells[] also inside ON_DATA_CHECK, to check if there are any error cells.

It works fine for some cells. But, if a cell has an attribute value set bound in the context property or has some automatically determined search help like Date, the ALV handles them automatically without triggering the ON_DATA_CHECK method. The cells are marked with some colour and the message is being displayed automatically in the ALV. I'm not able to figure out how to capture these messages. I need to restrict the navigation to other tabs based on these standard ALV triggered errors as well.

I'm looking for something like method 'Add_Protocol_Entry' in OOPS ALV. Please let me know, if something like that is available in WD as well. If not, please let me know how to handle the errors triggered by the ALV automatically.

Thanks a lot in advance...........

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2011 at 06:54 AM


    you wanted to know the standard messages arised for some of the attributes like DATE (for ex: Invalid date format) which is thrown by the framework right..

    Can you get the message manager reference IF_WD_MESSAGE_MANAGER and check for the methods GET_MESSAGES,

    HAS_VALIDATION_ERRORS, IS_EMPTY if they return any thing for these standard ones.

    Hope my understanding is correct.



    Add a comment
    10|10000 characters needed characters exceeded

    • Also, the event on select tab was not getting triggered in the main component in case of ALV errors messages. I'm not sure why.

      The event created was type 'Standard'. It should be 'Validation Independent'.

      I need to pay more attention to all the options available in the WD framework in future...:-)

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.