‎2007 Jun 08 11:59 AM
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
‎2007 Jun 08 12:08 PM
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^
‎2007 Jun 08 12:14 PM
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..