墨西鸽

墨西鸽的SAP BW SPACE

  博客中心 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 登录 ::
  1 随笔 :: 9 文章 :: 3 评论 :: 0 Trackbacks
Cached @ 2025/6/14 12:09:16Control ASP.skins_cogitation_controls_blogstats_ascx
<2025年6月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

留言簿(0)

随笔档案

文章档案

SAP BLOG

搜索

最新评论

阅读排行榜

评论排行榜

Cached @ 2025/6/14 12:09:16Control ASP.skins_cogitation_controls_singlecolumn_ascx

*&---------------------------------------------------------------------*
*&      Form  set_pf_status
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->RT_EXTAB   text
*----------------------------------------------------------------------*
form set_pf_status using rt_extab type slis_t_extab.
  set pf-status 'ZSTANDARD'.
endform. "Set_pf_status


form user_command using ucomm like sy-ucomm
selfield type slis_selfield.
  read table it_data index selfield-tabindex.
  check sy-subrc = 0.
  case ucomm.
    when '&IC1'.
      set parameter id 'VF' field it_data-faph.
      call transaction 'VF03' and skip first screen.
  endcase.
endform.                    "USER_COMMAND

orm display_data.
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program = w_repid   "当前程序
      i_callback_pf_status_set = 'SET_PF_STATUS'
      i_callback_user_command  = 'USER_COMMAND'
  
      i_save             = ''
      is_layout          = i_layout  "子函数layout_build填充的格式定义
      it_fieldcat        = i_fieldcat_alv[] "子函数fields填充的各列
      i_grid_title       = tmp_title
    tables
      t_outtab           = it_data.  "假设数据都在head1内表中
endform.                    "display_data

蓝色部分必须加入

分享按钮发布于: 2008-10-24 09:53 墨西鸽 阅读(364) 评论(0)  编辑 收藏

评论

标题
姓名
主页
内容 
  登录  使用高级评论  Top 订阅回复  取消订阅
[使用Ctrl+Enter键可以直接提交]