data lv_url TYPE string.
lv_url = '' && ls_adminh-object_id && '&botype=' && ls_adminh- process_type.
CONCATENATE 'javascript:window.open( "' lv_url '" );' INTO lv_url.
IF ( ls_adminh-process_type = 'ZA07' AND ls_btopporth-importance = '1' AND ls_btopporth-zzafld00005q = '0007' ).
CLEAR ls_button.
READ TABLE gt_button INTO ls_button WITH KEY text = '发起业务启动流程'.
IF sy-subrc <> 0.
ls_button-type = cl_thtmlb_util=>gc_icon_edit.
ls_button-text = '发起业务启动流程'. "#EC NOTEXT
ls_button-on_client_click = lv_url. "这是重点,跟普通的按钮不一样ON_CLIENT_CLICK
ls_button-enabled = abap_true.
APPEND ls_button TO gt_button.
ENDIF.
ENDIF.
阅读(500) | 评论(0) | 转发(0) |