Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_ALV_CHANGED_DATA_PROTOCOL wrong data not highlighted

Former Member
0 Likes
580

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
441

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.

1 REPLY 1
Read only

Former Member
0 Likes
442

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.