javaGrowing

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            92 隨筆 :: 33 文章 :: 49 評論 :: 0 Trackbacks
          Question: Can someone please tell the
          difference between using funtion module REUSE_ALV_LIST_DISPLAY
          or using class CL_GUI_ALV_GRID with method SET_TABLE_FOR_FIRST_DISPLAY.

          Is the function module the old way of using ALV?

          regards KIM

          Answer:
          I think the FM is just a simpler way of doing the same thing, but with fewer options open to you. I tend to use the object oriented way. Once you have done it the first time, it's pretty easy.

          Answer:
          Hello Kim

          Yes function REUSE_ALV_LIST_DISPLAY is the old ALV that used to be only available internally at SAP. It makes use of normal WRITE statements to create the list.

          Since 4.6 and the new frontend controls there is now a binary control in the users frontend that you can manipulate with CL_GUI_ALV_GRID. In order to use it successfully you need to be fairly comfortable with object oriented programming. SAP created a function called REUSE_ALV_GRID_DISPLAY (note the GRID not LIST) which is a "wrapper" function for people who are not familiar with OO and the ALV grid.

          I strongly suggest that you take the time to get comfortable with OO and create the grid yourself and populate it with the method SET_TABLE_FOR_FIRST_DISPLAY. Do a search on this forum regarding ALV and I would guess 90% of the questions are from people using the function REUSE_ALV_GRID_DISPLAY and not creating the grid themselves. If you don't understand whats happening in the background it becomes quite difficult to debug when something goes wrong.

          Regards

          Dave
          posted on 2008-02-27 16:01 javaGrowing 閱讀(351) 評論(0)  編輯  收藏 所屬分類: sap
          主站蜘蛛池模板: 四平市| 若羌县| 武定县| 黄梅县| 明星| 岚皋县| 五华县| 汉阴县| 新余市| 诸暨市| 丹凤县| 安庆市| 怀化市| 泸西县| 肇庆市| 西安市| 张北县| 苏尼特左旗| 嵩明县| 大埔区| 体育| 邢台县| 盐山县| 本溪| 海晏县| 石楼县| 石泉县| 襄樊市| 中阳县| 甘德县| 莱芜市| 鄂托克前旗| 乌什县| 敦煌市| 华容县| 印江| 庐江县| 高邑县| 龙口市| 六枝特区| 达拉特旗|