lo otro..fijate en el tipo en mi caso..y al parecer es el mismo de ibecerra...
declaro DATA : ls_fieldcat TYPE slis_fieldcat_alv....o sea..algo así...
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
...
...
...
PERFORM fieldcat_init USING gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = g_status
i_callback_user_command = g_user_command
it_fieldcat = gt_fieldcat[]
it_sort = lt_sort
TABLES
t_outtab = gt_outtab.
FORM fieldcat_init
USING rt_fieldcat TYPE slis_t_fieldcat_alv.
DATA : ls_fieldcat TYPE slis_fieldcat_alv.
ls_fieldcat-reptext_ddic = 'CUENTA'.
ls_fieldcat-seltext_s = ls_fieldcat-reptext_ddic.
ls_fieldcat-seltext_m = ls_fieldcat-reptext_ddic.
ls_fieldcat-seltext_l = ls_fieldcat-reptext_ddic.
MODIFY rt_fieldcat FROM ls_fieldcat.
ENDFORM.
Úlima edición por azua14 fecha: 13/09/07 a las 19:41:29.
|