problema al actualizar el color de una celda en alv tree
Buen día,
al momento de desplegar el alv ya muetra las cantidades de rojo (negativas) y verde(positivas), pero la columna tiene la opcion de ser editable, y si llegase a cambiar de signo el color en la celda no cambia, lo estoy intentando de la siguiente forma. ls_item_layout-fieldname = 'DISPO'. IF ls_outtab_line-dispo < 0. * si el disponible es menor a cero pinta rojo ls_item_layout-style = cl_gui_column_tree=>style_emphasized_negative. ELSEIF ls_outtab_line-dispo > 0. * si el disponible es mayor a cero pinta verde ls_item_layout-style = cl_gui_column_tree=>style_emphasized_positive. ENDIF. ls_outtab_line-dispo = lw_final-dispo - v_compra. fieldname = 'DISPO'. CALL METHOD tree1->change_item EXPORTING i_node_key = node_key i_fieldname = fieldname i_data = ls_outtab_line-dispo is_item_layout = ls_item_layout. CALL METHOD tree1->frontend_update. Espero y puedan apoyarme :) |
Solucion
encontré la solución a mi problema,
solo me faltaba llenar el campo ls_item_layout-U_STYLE = 'X'. |
Husos Horarios son GMT. La hora en este momento es 21:48:31. |
www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web