Chinaunix首页 | 论坛 | 博客
  • 博客访问: 706124
  • 博文数量: 145
  • 博客积分: 3446
  • 博客等级: 中校
  • 技术积分: 1567
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-30 13:58
文章分类

全部博文(145)

文章存档

2021年(1)

2020年(1)

2019年(1)

2018年(6)

2017年(1)

2016年(10)

2015年(12)

2014年(10)

2013年(15)

2012年(33)

2011年(21)

2010年(9)

2009年(18)

2008年(2)

2006年(5)

我的朋友

分类:

2011-05-16 23:30:46

    TYPE-POOLS vrm.
DATA values_sales_resp TYPE vrm_values WITH HEADER LINE.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'SALES_GROUP'
          values          = values_sales_resp[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
 
 
  DESCRIBE TABLE crm LINES tc-lines .
 
MODULE loop_0001_read OUTPUT.
  READ TABLE crm INDEX tc-current_line.
  IF crm-data_change = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'CRM-IN_WM_DATE'.
        screen-intensified = 1.
*        screen-color = 9.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDMODULE.                 " loop_0001_read  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  loop0001_write  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE loop0001_write INPUT.
  MODIFY crm INDEX tc-current_line.
  CLEAR crm.
ENDMODULE.                 " loop0001_write  INPUT
 
 
 
 
 
  IF container_1 IS INITIAL .
    CREATE OBJECT container_1
      EXPORTING
        container_name = 'C1'.
    IF g_grid_1 IS INITIAL .
      CREATE OBJECT g_grid_1
        EXPORTING
          i_parent = container_1.
    ENDIF .
    IF g_event_receiver_1 IS INITIAL.
      CREATE OBJECT g_event_receiver_1.
      SET HANDLER:
        g_event_receiver_1->handle_double_click FOR g_grid_1.
    ENDIF.
  ENDIF .
  DATA gs_variant LIKE disvariant.
  DATA g_repid LIKE sy-repid.
  DATA gs_layout TYPE lvc_s_layo.
  g_repid = sy-repid.
  gs_variant-report = g_repid.
  gs_layout-sel_mode = 'A' .
  gs_layout-cwidth_opt = 'X'.
  CALL METHOD g_grid_1->set_table_for_first_display
    EXPORTING
      i_structure_name = 'ZGEP_VCPC_0015_H'
      is_variant       = gs_variant
      i_save           = 'A'
      is_layout        = gs_layout
    CHANGING
      it_outtab        = t_h[].
  IF NOT index IS INITIAL .
    REFRESH lt_rows . CLEAR ls_rows .
    ls_rows-index = index .
    APPEND ls_rows TO lt_rows .
    CALL METHOD g_grid_1->set_selected_rows
      EXPORTING
        it_index_rows = lt_rows.
  ENDIF .
 
 
  DATA container_1 TYPE REF TO cl_gui_custom_container.
  DATA g_grid_1 TYPE REF TO cl_gui_alv_grid .
  DATA lt_rows TYPE lvc_t_row .
  DATA ls_rows TYPE lvc_s_row .
  DATA index TYPE i .
 
    CLASS lv_event_alv DEFINITION.
    PUBLIC SECTION.
      METHODS:
      handle_double_click
          FOR EVENT double_click OF cl_gui_alv_grid
              IMPORTING e_row  e_column.
  ENDCLASS.               "LV_EVENT_ALV
  DATA g_event_receiver_1 TYPE REF TO lv_event_alv .
 
 
  CLASS lv_event_alv IMPLEMENTATION.
******** "handle_double_click
    METHOD handle_double_click.
      CALL METHOD cl_gui_cfw=>set_new_ok_code
        EXPORTING
          new_code = 'ALV_SELE_H'.
    ENDMETHOD.                    "handle_double_click
  ENDCLASS.               "lv_event_alv
阅读(785) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~