‎2013 Sep 04 3:58 AM
Hi,
I used CL_ALV_CHANGED_DATA_PROTOCOL to build a error. It is triggered properly, but the cells with error are not highlighted with red border. I went through demo programs, all cells with wrong data are highlighted and I did not find any codes for cell style. I also tried message 0K but no cells are highlighted.
My code:
CALL METHOD ER_DATA_CHANGED->ADD_PROTOCOL_ENTRY
EXPORTING I_MSGID = '00'
I_MSGTY = 'E'
I_MSGNO = '001'
I_MSGV1 = LS_FIELDCAT-REPTEXT
I_MSGV2 = TEXT-002
I_FIELDNAME = LS_STYLE-FIELDNAME
I_ROW_ID = LS_MODCELLS-ROW_ID.
CALL METHOD ER_DATA_CHANGED->DISPLAY_PROTOCOL.
Best regards,
ts
‎2013 Sep 04 9:25 AM
Demo program BCALV_EDIT_03 has this parameter during call to add_protocol_entry.
i_fieldname = ps_good-fieldname
i_row_id = ps_good-row_id.
You can check in debug whether correct field name and row id are being passed to add_protocol_entry.
Since row id is in ls_modcells, maybe you have the give field name as ls_mod_cells-fieldname.
‎2013 Sep 04 9:25 AM
Demo program BCALV_EDIT_03 has this parameter during call to add_protocol_entry.
i_fieldname = ps_good-fieldname
i_row_id = ps_good-row_id.
You can check in debug whether correct field name and row id are being passed to add_protocol_entry.
Since row id is in ls_modcells, maybe you have the give field name as ls_mod_cells-fieldname.