Ver Mensaje Individual
  #2  
Viejo 30/10/08, 20:30:22
ibecerra
 
Mensajes: n/a
hola create un campo mas en la tabla ejemplo cant type i.
y por defecto colocale 1.
luego cuando armes tu fieldcat lo colocas de la siguiente manera
ejemplo:
* L_FIELDCAT-no_out = 'X'.
L_FIELDCAT-do_sum = 'X'.

y luego ordenar

DATA: WA_SORT TYPE SLIS_SORTINFO_ALV.
* Agrupamos la Salida del Reporte por Proveedor Ascendentemente
* y Obtenemos Subtototales
WA_SORT-SPOS = 1.
WA_SORT-FIELDNAME = 'CLASE'.
WA_SORT-TABNAME = 'TI_ALV'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.



CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_structure_name = 'TI_ZTFXL'
is_layout = layout
it_fieldcat = fieldtab
i_default = 'X'
i_save = g_save
is_variant = g_variant
it_events = gt_events[]
* IT_SORT = I_SORT
i_grid_title = 'Detalle'
TABLES
t_outtab = ti_ztfxl
EXCEPTIONS
program_error = 1
OTHERS = 2.
Responder Con Cita