`

ABAP-ALV

阅读更多
REPORT  z_scott_alv_3.

*Define tables
TABLES : eine,lfa1,ekpo,eina.

*for alv
TYPE-POOLS: slis.
DATA:
  i_fieldcat_alv  TYPE slis_t_fieldcat_alv, "Define the fieldcat
  i_layout        TYPE slis_layout_alv,     "alv format
  i_fieldcat      TYPE slis_fieldcat_alv,   "
  i_events        TYPE slis_t_event,        "alv event
  w_events        LIKE LINE OF i_events,
  i_list_comments TYPE slis_t_listheader,   "alv listheader
  w_list_comments LIKE LINE OF i_list_comments,
  w_repid LIKE sy-repid.                    " current program


*Define the fields of internal table
*1 . selection screen
DATA:
  BEGIN OF hd_itab OCCURS 0,
    infnr LIKE eine-infnr, "Number of purchasing info record
    ekorg LIKE eine-ekorg, "Purchasing organization
    matnr LIKE eina-matnr, "Material number
    lifnr LIKE eina-lifnr, "Vendor's account number
    erdat LIKE eine-erdat, "Date on which the record was created
    loekz LIKE eine-loekz, "delete mark
    urznr LIKE eina-urznr, "Certificate number
    color(4) TYPE c,       "Color number

*2. display screen
    aplfz LIKE eine-aplfz, "Planned delivery time in days
    netpr LIKE eine-netpr, "Net price in purchasing info record
    peinh LIKE eine-peinh, "Price unit
    dwjj  LIKE eine-netpr, "Net price in purchasing info record
    bprme LIKE eine-bprme, "Order price unit (purchasing)
    maktx LIKE makt-maktx, "Material description
    name1 LIKE lfa1-name1, "name of vendor
  END OF hd_itab.


*Define selecltion screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE t1.
SELECT-OPTIONS:s_infnr FOR eine-infnr MEMORY ID inf.    "information
PARAMETERS:pr_loekz TYPE c  AS CHECKBOX DEFAULT ' '.    "display record
SELECT-OPTIONS:s_ekorg FOR eine-ekorg MEMORY ID eko.    "purchase
SELECT-OPTIONS:s_matnr FOR eina-matnr MEMORY ID mat.    "material number
SELECT-OPTIONS:s_lifnr FOR eina-lifnr MEMORY ID lif.    "vendor number
SELECT-OPTIONS:s_erdat FOR eine-erdat MEMORY ID s_erdat.    "Creation
SELECT-OPTIONS:s_urznr FOR eina-urznr MEMORY ID s_urznr.    "approval
SELECTION-SCREEN END OF BLOCK b1.
*Program initialization
INITIALIZATION.
  t1 = 'Purchase selection'.

*Select data
START-OF-SELECTION.
  PERFORM getdata.      "Read data
  PERFORM events_build. "alv event
  PERFORM layout_build. "define alv format attribute
  PERFORM fields_build. "define information of fieldcat
  PERFORM display_data.

END-OF-SELECTION.

  DATA:
    pagenum TYPE i VALUE 1. "report number

END-OF-PAGE.
  pagenum = pagenum + 1.


*double click event of row item
AT LINE-SELECTION.



*&--------------------------------------------------------------------*
*&      Form  getdata
*&--------------------------------------------------------------------*
*      Get data and select relevant fields form database table
*---------------------------------------------------------------------*

FORM getdata.
  CLEAR hd_itab.
  CLEAR hd_itab[].

*hd_itab table
  IF pr_loekz = ' '.
    SELECT * FROM eine
          INNER JOIN eina ON eine~infnr = eina~infnr
          INTO CORRESPONDING FIELDS OF hd_itab
          WHERE   eine~infnr IN s_infnr
          AND eine~ekorg IN s_ekorg
          AND eina~matnr IN s_matnr
          AND eina~lifnr IN s_lifnr
          AND eina~loekz <> 'X'
          AND eine~erdat IN s_erdat
          AND eina~urznr IN s_urznr
          ORDER BY eine~infnr DESCENDING.
      SELECT SINGLE maktx FROM makt
            INTO CORRESPONDING FIELDS OF hd_itab
            WHERE matnr = hd_itab-matnr.
      SELECT SINGLE name1 FROM lfa1
            INTO CORRESPONDING FIELDS OF hd_itab
            WHERE lifnr = hd_itab-lifnr.
      APPEND hd_itab.
      CLEAR  hd_itab.
    ENDSELECT.


  ELSE.
    SELECT * FROM eine
       INNER JOIN eina ON eine~infnr = eina~infnr
        INTO CORRESPONDING FIELDS OF hd_itab
          WHERE eine~infnr IN s_infnr
            AND eine~ekorg IN s_ekorg
            AND eina~matnr IN s_matnr
            AND eina~lifnr IN s_lifnr
            AND eine~erdat IN s_erdat
            AND eina~urznr IN s_urznr
          ORDER BY eine~infnr DESCENDING.
      SELECT SINGLE maktx FROM makt
            INTO CORRESPONDING FIELDS OF hd_itab
            WHERE matnr = hd_itab-matnr.
      SELECT SINGLE name1 FROM lfa1
            INTO CORRESPONDING FIELDS OF hd_itab
            WHERE lifnr = hd_itab-lifnr.
      APPEND hd_itab.
      CLEAR  hd_itab.
    ENDSELECT.
  ENDIF.

  LOOP AT hd_itab.
    IF hd_itab-loekz = 'X'.
      hd_itab-color = 'C610'.    "Mark red when this purchase record has bee
    ENDIF.
    hd_itab-dwjj = hd_itab-netpr / hd_itab-peinh.
    MODIFY hd_itab.
    CLEAR hd_itab.
  ENDLOOP.

ENDFORM.     "getdata
*



*&--------------------------------------------------------------------*
*&      Form  layout_build
*&--------------------------------------------------------------------*
*      Define ALV layout attribute
*---------------------------------------------------------------------*
FORM layout_build .
  i_layout-zebra = 'X'.
*  i_layout-detail_popup = 'X'.
  i_layout-no_vline = ' '.
  i_layout-colwidth_optimize = 'X'.
*  i_layout-detail_initial_lines = 'X'.
*  i_layout-detail_titlebar = 'detail content'.
*  i_layout-box_fieldname  = 'LINE'.
*  i_layout-f2code = '&ETA'.
*  i_layout-f2code = '&IC1'.
  i_layout-info_fieldname = 'COLOR'.  "Color value
  i_layout-no_colhead = ' '.
  w_repid = sy-repid.
ENDFORM.                    " layout_build

*&--------------------------------------------------------------------*
*&      Form  fields_build
*&--------------------------------------------------------------------*
*      Set information of row display attributes
*---------------------------------------------------------------------*
FORM fields_build .
  REFRESH i_fieldcat_alv.
  CLEAR i_fieldcat.
  DATA colnum TYPE i VALUE 1.

  i_fieldcat-col_pos = colnum.
*  "i_fieldcat-tabname = 'hd_itab'.
*  i_fieldcat-ref_tabname = 'zorder_purchase'.
*  i_fieldcat-outputlen ='14'.
  i_fieldcat-fieldname = 'INFNR'.
  i_fieldcat-seltext_s = 'prn'.
  i_fieldcat-seltext_m = ' pur rec num '.
  i_fieldcat-seltext_l = ' purchase record number '.
  i_fieldcat-reptext_ddic = ' purchase record number '.
  i_fieldcat-lzero = 'X'.
  i_fieldcat-key = 'X'.
  i_fieldcat-hotspot = 'X'.
*   i_fieldcat-emphasize = 'X'.
*  i_fieldcat-tech = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
*i_fieldcat-ref_tabname = 'zorder_purchase'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'LIFNR'.
  i_fieldcat-seltext_s = 'vendor number'.
  i_fieldcat-seltext_m = ' vendor number '.
  i_fieldcat-seltext_l = ' vendor number '.
  i_fieldcat-reptext_ddic = ' vendor number '.
  i_fieldcat-lzero = 'X'.
  i_fieldcat-key = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
*i_fieldcat-ref_tabname = 'zorder_purchase'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'NAME1'.
  i_fieldcat-seltext_s = ' vendor name'.
  i_fieldcat-seltext_m = ' vendor name '.
  i_fieldcat-seltext_l = ' vendor name '.
  i_fieldcat-reptext_ddic = ' vendor name '.
  i_fieldcat-lzero = 'X'.
  i_fieldcat-key = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.


  colnum = colnum + 1.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'MATNR'.
*  i_fieldcat-ref_tabname = 'zorder_purchase'.
  i_fieldcat-seltext_s = 'Material number'.
  i_fieldcat-seltext_m = ' Material number '.
  i_fieldcat-seltext_l = ' Material number '.
  i_fieldcat-reptext_ddic = ' Material number '.
  i_fieldcat-lzero = 'X'.
*  i_fieldcat-key = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
*  "i_fieldcat-tabname = 'hd_itab'.
*i_fieldcat-ref_tabname = 'zorder_purchase'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-outputlen ='30'.
  i_fieldcat-fieldname = 'MAKTX'.
  i_fieldcat-seltext_s = ' Material name'.
  i_fieldcat-seltext_m = ' Material name '.
  i_fieldcat-seltext_l = ' Material name '.
  i_fieldcat-reptext_ddic = ' Material name '.
  i_fieldcat-lzero = 'X'.
*  i_fieldcat-key = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.


  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
*    i_fieldcat-outputlen ='30'.
  i_fieldcat-fieldname = 'NETPR'.
  i_fieldcat-seltext_s = 'net price'.
  i_fieldcat-seltext_m = ' net price '.
  i_fieldcat-seltext_l = ' net price '.
  i_fieldcat-reptext_ddic = ' net price '.
*  i_fieldcat-no_sum = 'X'.
*  i_fieldcat-icon = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'PEINH'.
  i_fieldcat-seltext_s = 'price unit'.
  i_fieldcat-seltext_m = ' price unit '.
  i_fieldcat-seltext_l = ' price unit '.
  i_fieldcat-reptext_ddic = ' price unit '.
*  i_fieldcat-no_sum = 'X'.
*  i_fieldcat-icon = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'DWJJ'.
  i_fieldcat-seltext_s = 'unit net price'.
  i_fieldcat-seltext_m = ' unit net price '.
  i_fieldcat-seltext_l = ' unit net price '.
  i_fieldcat-reptext_ddic = ' unit net price '.
*  i_fieldcat-no_sum = 'X'.
*  i_fieldcat-icon = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'BPRME'.
  i_fieldcat-seltext_s = 'measure'.
  i_fieldcat-seltext_m = ' measure '.
  i_fieldcat-seltext_l = ' measure '.
  i_fieldcat-reptext_ddic = ' measure '.
*  i_fieldcat-no_sum = 'X'.
*  i_fieldcat-icon = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.


  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'EKORG'.
  i_fieldcat-seltext_s = 'purchase organization'.
  i_fieldcat-seltext_m = ' purchase organization '.
  i_fieldcat-seltext_l = ' purchase organization '.
  i_fieldcat-reptext_ddic = ' purchase organization '.
  i_fieldcat-emphasize = 'X'.
*  i_fieldcat-do_sum = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'APLFZ'.
  i_fieldcat-seltext_s = 'plan delivery time'.
  i_fieldcat-seltext_m = ' plan delivery time '.
  i_fieldcat-seltext_l = ' plan delivery time '.
  i_fieldcat-reptext_ddic = ' plan delivery time '.
*   i_fieldcat-do_sum = 'X'.
  i_fieldcat-emphasize = 'C211'.
*  i_fieldcat-do_sum = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'ERDAT'.
  i_fieldcat-seltext_s = 'record creation date'.
  i_fieldcat-seltext_m = ' record creation date '.
  i_fieldcat-seltext_l = ' record creation date '.
  i_fieldcat-reptext_ddic = ' record creation date '.
*   i_fieldcat-do_sum = 'X'.
  i_fieldcat-emphasize = 'C211'.
*  i_fieldcat-do_sum = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'LOEKZ'.
  i_fieldcat-seltext_s = 'delete mark'.
  i_fieldcat-seltext_m = ' delete mark '.
  i_fieldcat-seltext_l = ' delete mark '.
  i_fieldcat-reptext_ddic = ' delete mark '.
*   i_fieldcat-do_sum = 'X'.
  i_fieldcat-emphasize = 'C211'.
*  i_fieldcat-do_sum = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.

  colnum = colnum + 1.
  "i_fieldcat-tabname = 'hd_itab'.
  i_fieldcat-col_pos = colnum.
  i_fieldcat-fieldname = 'URZNR'.
  i_fieldcat-seltext_s = 'approval mark'.
  i_fieldcat-seltext_m = ' approval mark '.
  i_fieldcat-seltext_l = ' approval mark '.
  i_fieldcat-reptext_ddic = ' approval mark '.
*   i_fieldcat-do_sum = 'X'.
  i_fieldcat-emphasize = 'C211'.
*  i_fieldcat-do_sum = 'X'.
  APPEND i_fieldcat TO i_fieldcat_alv.
  CLEAR i_fieldcat.



ENDFORM.                    " fields_build


*&--------------------------------------------------------------------*
*&      Form  display_data
*&--------------------------------------------------------------------*
*      display content of report
*---------------------------------------------------------------------*
FORM display_data .
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = w_repid
      is_layout          = i_layout
      it_fieldcat        = i_fieldcat_alv[]
      it_events          = i_events[]
      i_grid_title       = ' collection table of purchase record'
* changed by scott  comment of i_callback_user_command
      i_callback_user_command = 'USER_COMMAND'
*      i_callback_pf_status_set          = 'WHOLE_TOOLBAR'

*      i_save             = 'A'
    TABLES
      t_outtab           = hd_itab.

  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " display_data
*---------------------------------------------------------------------*
* FORM USER_COMMAND *
*---------------------------------------------------------------------*
FORM user_command USING i_ucomm LIKE sy-ucomm
is_selfield TYPE slis_selfield.                             "#EC CALLED
  CASE i_ucomm.
    WHEN '&IC1'. " Pick
      READ TABLE hd_itab INDEX is_selfield-tabindex.
      IF sy-subrc EQ 0.
        SET PARAMETER ID 'INF' FIELD hd_itab-infnr.
        SET PARAMETER ID 'MAT' FIELD hd_itab-matnr.
        SET PARAMETER ID 'LIF' FIELD hd_itab-lifnr.
        SET PARAMETER ID 'EKO' FIELD hd_itab-ekorg.


        CALL TRANSACTION 'ME13' AND SKIP FIRST SCREEN.
      ENDIF.

  ENDCASE.
ENDFORM. " USER_COMMAND

*&--------------------------------------------------------------------*
*&      Form  whole_toolbar
*&--------------------------------------------------------------------*
*       text
*---------------------------------------------------------------------*
*      -->EXTAB      text
*---------------------------------------------------------------------*
FORM whole_toolbar USING extab TYPE slis_t_extab.           "#EC CALLED
  SET PF-STATUS 'WHOLE_TOOLBAR' EXCLUDING extab.
ENDFORM.                    "whole_toolbar

*&--------------------------------------------------------------------*
*&      Form  alv_top_of_page
*&--------------------------------------------------------------------*
*       Set top-of-page
*---------------------------------------------------------------------*
FORM alv_top_of_page.
  CLEAR: i_list_comments.
  w_list_comments-typ = 'H'.
  w_list_comments-key = ''.
  w_list_comments-info = 'selection table of purchase record'.
  APPEND w_list_comments TO i_list_comments.
  CLEAR w_list_comments.

  DATA: data_temp(16).
  WRITE sy-datum TO: data_temp MM/DD/YYYY.
  CONCATENATE 'Date:' data_temp INTO data_temp.
  CONCATENATE data_temp 'IT department' INTO data_temp.
  w_list_comments-typ = 'S'.
  w_list_comments-key = ''.
  w_list_comments-info = data_temp.
  APPEND w_list_comments TO i_list_comments.
  CLEAR w_list_comments.

*Changed by Scott
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = i_list_comments
      i_logo             = 'ENJOYSAP_LOGO'  "Title logo.
      i_end_of_list_grid = ' '. "
*      i_logo             = 'ENJOYSAP_LOGO'.    " Title logo
ENDFORM.                    "alv_top_of_page


*&--------------------------------------------------------------------*
*&      Form  alv_end_of_list
*&--------------------------------------------------------------------*
*       text
*---------------------------------------------------------------------*
FORM alv_end_of_list.
  CLEAR: i_list_comments.
  w_list_comments-typ = 'S'.
  w_list_comments-info = 'Created by ITDC'.
  APPEND w_list_comments TO i_list_comments.
  CLEAR w_list_comments.


* Changed by Scott
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = i_list_comments
      i_end_of_list_grid = 'X'. "
*            i_logo             = 'ENJOYSAP_LOGO'. " Title

  CLEAR i_list_comments.

  w_list_comments-typ = 'S'.
  w_list_comments-info = 'Confirm: ______________ person: ___________'.
  APPEND w_list_comments TO i_list_comments.
  CLEAR w_list_comments.

  w_list_comments-typ = 'S'.
  w_list_comments-info = 'Table created by ITDC'.
  APPEND w_list_comments TO i_list_comments.
  CLEAR w_list_comments.

*  CLEAR data_temp.
*  CONCATENATE 'Print by :' sy-uname INTO data_temp.
  w_list_comments-typ = 'S'.
*  w_list_comments-info = data_temp.
  APPEND w_list_comments TO i_list_comments.
  CLEAR w_list_comments.

  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = i_list_comments
      i_logo             = 'ENJOYSAP_LOGO'  " Title logo
      i_end_of_list_grid = 'X'.
ENDFORM.                    "alv_end_of_list
*
*&--------------------------------------------------------------------*
*&      Form  events_build
*&--------------------------------------------------------------------*
*       Define ALV event
*---------------------------------------------------------------------*
FORM events_build .
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type = 0
    IMPORTING
      et_events   = i_events.

  READ TABLE i_events WITH KEY name = 'TOP_OF_PAGE'
                      INTO w_events.
  IF sy-subrc = 0.
    MOVE 'ALV_TOP_OF_PAGE' TO w_events-form.
    MODIFY i_events FROM w_events INDEX sy-tabix.
  ENDIF.


  READ TABLE i_events INTO w_events WITH KEY name = 'USER_COMMAND'.
  IF sy-subrc EQ 0.
*Changed by Scott   w_events-name
    w_events-name = 'USER_COMMAND'.
    MODIFY i_events FROM w_events INDEX sy-tabix.
  ENDIF.

  READ TABLE i_events WITH KEY name = 'END_OF_LIST'"slis_ev_end_of_page
                      INTO w_events.
  IF sy-subrc = 0.
    MOVE 'ALV_END_OF_LIST' TO w_events-form.
    MODIFY i_events FROM w_events INDEX sy-tabix.
  ENDIF.

ENDFORM.                    " events_build
分享到:
评论
1 楼 zhouwei9960 2010-06-16  
没有注释呀!!!

相关推荐

    ABAP-ALV进阶

    "ABAP-ALV进阶知识点详解" ABAP-ALV进阶是指在SAP系统中使用ABAP语言开发的高级列表查看器(ALV)。ALV是SAP系统中心的列表标准,可以在ABAP程序中进行报表输出。下面是ABAP-ALV进阶的知识点详解: 一、ALV概要 ...

    abap-ALV.rar_ABAP系统ALV_abap_abap开发alv

    标题“abap-ALV.rar_ABAP系统ALV_abap_abap开发alv”暗示我们将深入探讨ABAP ALV的使用,特别是在ABAP系统中的应用以及如何进行开发。 描述中提到“ABAP ALV总结,ALV格式,REUSE_ALV_GRID_DISPLAY_LVC函数使用”,...

    ABAP--ALV总结

    ABAP-ALV 总结 ABAP(Advanced Business Application Programming)是一种高级商业应用编程语言,ALV(Application List View)是 SAP 系统中的一种报表显示工具。本文将介绍如何使用 ABAP 语言开发 ALV 报表,并对...

    ABAP--ALV

    ### ABAP - ALV知识点详解 #### 一、ALV(Application List Viewer)概述 ALV,即Application List Viewer,是SAP系统中用于展示数据列表的一种通用工具。它能够帮助用户灵活地处理数据,包括排序、筛选等功能,...

    ABAP-ALV行颜色展示

    用户想实现对质检及时率做个展示 为了更好的给用户更直观的展示,对超期数据标红展示了,未超期数据蓝色展示。

    SAP-ABAP-ALV

    SAP ABAP ALV(SAP List Viewer)是一种灵活的工具,用于在SAP开发环境中显示和操作列表。ALV报表提供基础的列表操作,并可通过自定义扩展以适应各种复杂的应用场景。尽管ALV Grid在某些开发项目中也可用于数据的...

    绝版的从实例到精通abap 学习--ALV控件的使用

    在ABAP(Advanced Business Application Programming)编程中,ALV(ABAP List Viewer)控件是一个强大的工具,用于显示和操作数据库查询的结果。本教程“绝版的从实例到精通ABAP学习--ALV控件的使用”深入浅出地...

    abap_alv去掉标准按钮

    根据提供的文件信息,本文将详细解释如何在ABAP ALV(Application List Viewer)中移除标准按钮。在SAP开发环境中,ALV是用于展示表格数据的一种常用技术。但是,在某些场景下,开发者可能需要定制ALV的界面,例如...

    ABAP OOALV学习文档

    ### ABAP OOALV 学习文档详析 #### 一、ABAP OOALV 概述 **ABAP OOALV**(Object-Oriented Application List Viewer)是一种用于SAP系统的高级列表显示技术,主要用于生成复杂的报表和列表视图。自R/3 4.6C版本起...

    ABAP开发-ALV常用参数的详细描述

    适用于SAP的ERP二次开发中的ALV技术。详细解释ALV函数传递参数的功能。

    ABAP OOALV报表开发

    ABAP OOALV报表开发,定义变量,选择屏幕定义,创建类,调用函数

    abap_alv工具栏修改

    ### ABAP_ALV工具栏修改详解 #### 一、引言 ABAP_ALV(Application Builder)是一种在SAP系统中用于快速开发列表和报告的应用程序。它为开发者提供了高度定制化的能力,其中包括对工具栏的修改。本文将详细介绍如何...

    ABAP开发ALV中自定义按钮实现

    在ABAP开发中,ALV(Accelerated List Viewer)是一种常用的数据展示工具,它提供了灵活的表格布局和交互性。用户通常需要对ALV进行定制,以满足特定的需求,例如添加自定义按钮来实现数据的打印或导出到Excel。本篇...

    SAP ABAP ALV分页显示

    ### SAP ABAP ALV 分页显示技术解析 #### 核心知识点:SAP ABAP ALV 分页显示 本篇文章将深入分析一个基于SAP ABAP的ALV(Application List Viewer)分页显示的实现方法。ALV是SAP GUI中用于展示表格数据的一种...

    ALV.rar_SAP_abaP ALV_abap_alv_sap alv

    ALV是ABAP编程的重要组成部分,它简化了复杂数据的可视化处理。本篇将深入探讨如何通过ABAP编程实现ALV的多层输出,并调用系统方法。 首先,我们需要理解ABAP(Advanced Business Application Programming)是SAP...

    ABAP OO去掉ALV中的标准工具栏

    在ABAP面向对象编程(ABAP OO)中,经常需要对ALV(Application List Viewer)进行定制化的控制,包括移除或隐藏某些默认显示的工具栏功能。这通常是为了提供更简洁、更符合业务需求的用户界面。本文将详细介绍如何...

    ABAP OOALV

    CALL METHOD gs_alv-&gt;REFRESH_TABLE_DISPLAY EXPORTING is_stable = gs_stable is_soft_refresh = 'X' "是否软刷新 EXCEPTIONS finished = 1 others = 2. IF sy-subrc &lt;&gt; 0. WRITE: / 'Error refreshing ...

    ABAP_ALV_知识整理.pdf

    ABAP_ALV_知识整理

    ABAP ALV 报表基础模板(两种)

    ### ABAP ALV 报表基础模板(两种) #### 第一种:普通模板 在 SAP 的 ABAP 开发环境中,ALV(Application List Viewer)是一种常用的技术来展示数据列表。本篇文档将详细介绍一种用于创建 ABAP ALV 报表的基础...

    SAP WEB Dynpro for ABAP 简单ALV 展示

    SAP WEB Dynpro for ABAP 简单ALV 展示 SAP WEB Dynpro for ABAP 是一种基于 WEB 的开发环境,它提供了一个强大的开发平台,用于构建各种复杂的商业应用程序。在这个环境中,我们可以使用 ABAP 语言来开发各种应用...

Global site tag (gtag.js) - Google Analytics