Yo tengo este form que lo tengo definido en la funcion ALV, Luego en el commad que tengo definido pregunto por el ucomm 'FC01', si agregas mas botones vas sumando +1, con esto te evitas crear un status nuevo.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
.....
FORM PF_STATUS USING ce_func_exclude TYPE slis_t_extab.
DATA fcode_attrib_tab LIKE smp_dyntxt OCCURS 4 WITH HEADER LINE.
CLEAR: fcode_attrib_tab, fcode_attrib_tab[].
* function: participation-list
fcode_attrib_tab-text = text-001.
fcode_attrib_tab-icon_id = '@01@'.
fcode_attrib_tab-icon_text = text-001.
fcode_attrib_tab-quickinfo = space.
fcode_attrib_tab-path = space.
APPEND fcode_attrib_tab.
*
PERFORM dynamic_report_fcodes(rhteiln0) TABLES fcode_attrib_tab
USING ce_func_exclude
' ' ' '.
SET PF-STATUS 'ALVLIST' EXCLUDING ce_func_exclude
OF PROGRAM 'RHTEILN0'.
ENDFORM.
" PF_STATUS
FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
data : e_datos like ZES_LIBER_USUARIO.
COMMIT WORK.
CASE UCOMM.
WHEN 'DISPLAY'.
.............
WHEN 'FC01'.
.........
ENDCASE.
RS_SELFIELD-REFRESH = 'X'.
ENDFORM.
"USER_COMMAND
0 comentarios:
Publicar un comentario