原文地址:http://www.xuebuyuan.com/1666753.html 按层次显示WBS编码及描述,附加节点双击展开事件和Item双击跳转CJ03功能. 因为本人懒,本例代码都是从标准的BCALV_TREE_01和BCALV_TREE_02拷贝过来修改的,结构不好请别见怪. REPORT zmac_alvtree_test. DATA: g_alv_tree TYPE REF TO cl_gui_alv_tree, g_custom_container TYPE REF TO cl…
用事件类实现双击事件,实例化后使用set handler注册到ALV对象.斜体部分为事件方法的具体实现. 代码如下 CLASS lcl_tree_event_receiver DEFINITION. PUBLIC SECTION. METHODS handle_node_double_click FOR EVENT node_double_click OF cl_gui_alv_tree IMPORTING node_key sender. ENDCLASS. CLASS lcl_tree_ev…
Category ABAP Programming Error Runtime Errors MESSAGE_TYPE_X ABAP Program SAPLOLEA Application Component BC-FES-OAC Date and Time :: Short text The current application triggered a termination with a short dump. 发生了什么? The current application program…
#/usr/bin/python import os def travelTree(currentPath, count=0): if not os.path.exists(currentPath): print "no current Path" return if os.path.isfile(currentPath): fileName = os.path.basename(currentPath) print " "*count + "|_ &qu…
方法1,也是大家常见的方法通过函数 REUSE_ALV_GRID_DISPLAY TYPES: BEGIN OF ty_spfli, "定义结构 carrid like spfli-carrid, connid like spfli-connid, END OF ty_spfli. DATA: it_spfli TYPE STANDARD TABLE OF ty_spfli. "定义内表 DATA: wa_fieldcat TYPE slis_f…