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

problem with matchcode in ALV

Former Member
0 Likes
688

hi,

i have a problem with an ALV i'm doing... the problem is with a filed's matchcode: i have a column declared as it is on a Z table. the Z element is a Z domain and this domain has all the possible values declared. when i push the matchcode in, for example, line 5 of the alv and choose one of the possible values, line 1 is always updated but instead line 5 (or 2, or, 3, or whatever line i choose..). I think it's something with the focus but don't know what... i'm using ALV OO...

Thanks in advace !!

regads,

Maria

2 REPLIES 2
Read only

Former Member
0 Likes
521

hi

good

go through this link,which ll give you idea how to crete a matchcode for ALV,hope this ll give you some idea to solve the problem

http://www.erpgenie.com/abap/code/abap28.htm

thanks

mrutyun^

Read only

0 Likes
521

thanks.. but the matchcode is allready created, as the data element Z is created as a domain Z, which has a value range defined...

the problem is when i push the matchcode, the debug goes to perforn "handle_datachanged", where i have the following code:

LOOP AT p_data->mt_mod_cells INTO ls_mod_cell.

  • para chequear el dato insertado

CLEAR d_sw_ok.

READ TABLE i_zpp00dbar INDEX ls_mod_cell-row_id.

IF sy-subrc IS INITIAL.

CASE ls_mod_cell-fieldname.

  • Sólo interesa controlar las celdas modificables.

WHEN 'MAT_DOC'.

MODIFY i_zpp00dbar INDEX ls_mod_cell-row_id.

(.....)

ENDCASE.

ENDIF.

ENDLOOP.

p_data->mt_mod_cells is empty..