cancel
Showing results for 
Search instead for 
Did you mean: 

How to make cells in error with SALV_WD_TABLE

barbara_bendjama
Explorer
0 Kudos

Dear colleagues,

I have input field in my ALV (defined reuinsing component SALV_WD_TABLE). When the field is changed, I can check it by catching the ON_DATA_CHECK_EVENT.

I would like to put the cursor on the 1st wrong cell, and show error cells in RED.

I do not have check button nor save, I only react (currently) on 'ENTER' on the cell.

If I enter something in several cell and only press enter afterwards, the bad cell are not checked back, if they are not changed. This is also not correct.

Eg enter wrong value in cell1 and cell2, press 'ENTER'.

Errors are detected on both cells (two messages).

Correct cell1 => on_data_check does not recheck cell2 (as it has not been changed) and therefore the error is not visible anymore for the user.

If you can give me some hint how to remember wrong cells and show them, it woud be really helpfull.

Kind regards.

barbara

Accepted Solutions (1)

Accepted Solutions (1)

former_member463524
Contributor
0 Kudos

Hi,

You can use report_attribute_error_message of interface if_wd_message_manager.

In that you can pass

message text,

parameters - where placeholders are replaced with value

element - element node

attribute - attribute

Regards,

Meera

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Barbara,

You can use report_attribute_error_message method to show error.

Please check this thread...

Cheers,

Kris.