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 閱讀(352) 評論(0)  編輯  收藏 所屬分類: sap
          主站蜘蛛池模板: 黑河市| 尉犁县| 柘荣县| 二连浩特市| 错那县| 奉贤区| 弥勒县| 麻江县| 大同市| 西丰县| 于田县| 定远县| 西宁市| 朝阳县| 同仁县| 新源县| 永平县| 屯门区| 高陵县| 松滋市| 宁国市| 汾西县| 黑河市| 高邑县| 贵州省| 兴安县| 黄浦区| 新兴县| 青冈县| 汝阳县| 宝清县| 澳门| 甘洛县| 金阳县| 牡丹江市| 东兴市| 江孜县| 乃东县| 晋城| 大方县| 中卫市|