登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

原来为了你

我的人生就是要一次次的超越

 
 
 

日志

 
 
 
 

设置工具栏上的按钮GUI  

2011-01-07 19:24:21|  分类: ALV |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

*---------------------- 隐藏掉GUI上的某个按钮 --------------------------------
append '&ADD' to rt_extab."同样也适合菜单项
append '&DEL' to rt_extab.
set pf-status 'GS_100' excluding rt_extab.
设置'GS_100'goto->attributes->pushbutton assignment->display all就可以了.
display all
会显示灰掉的或不灰的。或直接点一下绿点就可以


*---------------------------- CLASS方式的ALV --------------------------------
data lt_excl_func type ui_functions.

append cl_gui_alv_grid=>mc_fc_loc_copy to lt_excl_func.
append cl_gui_alv_grid=>mc_fc_loc_copy_row to lt_excl_func.
append cl_gui_alv_grid=>mc_fc_loc_cut to lt_excl_func.

call method go_grid->set_table_for_first_display
  
exporting
    is_variant                    
gs_variant
    i_save                        
'A'
    is_layout                     
sla
    it_toolbar_excluding          
lt_excl_func
  
changing
    it_outtab                     
itab[]
    it_fieldcatalog               
gt_fieldcat[]
  
exceptions
    invalid_parameter_combination 
1
    program_error                 
2
    too_many_lines                
3
    
others                        4.



*------------------------------- Function方式的ALV --------------------------
type-poolsslis.
datai_excluding type slis_t_extab.

append '&ILT' to i_excluding .
append '&OUP' to i_excluding .

call function 'REUSE_ALV_GRID_DISPLAY'
  
exporting
    i_callback_program 
i_repid
    it_fieldcat        
gd_fieldcat[]
    is_layout          
sla
    it_excluding       
i_excluding
  
tables
    t_outtab           
itab
  
exceptions
    program_error      
1
    
others             2.

如果你要隐藏全部的工具条,你可以把layout中的no_toolbar设置为"X".

  评论这张
 
阅读(368)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018