gwa_edit-style = cl_gui_alv_grid=>mc_style_disabled."设置为不可编辑INSERTgwa_editINTOTABLEgit_edit.INSERTLINESOFgit_editINTOTABLEgwa_ekko-style.*将除第三行的之外所有行的VERKF字段都设置成不能输入DO10TIMES.IFsy-index <>3.MODIFYgit_ekko INDEX sy-indexFROMgwa_ekko TRANSPORTING style.ENDIF.EN...
gs_f4-getbefore ='X'.*gs_f4-chngeafter = 'X'.INSERTgs_f4INTOTABLEgt_f4.CALLFUNCTION'ZGET_GLOBALS_FROM_SLVC_FULLSCRIMPORTINGe_grid=go_grid.CALLMETHODgo_grid->register_edit_eventEXPORTINGi_event_id= cl_gui_alv_grid=>mc_evt_modified.CALLMETHODgo_grid->register_f4_for_fieldsEXPORTINGit_f4=...
其实需要记住的东西不是很多,第一个 REUSE_ALV_GRID_DISPLAY_LVC,第二个会懂得查看类型属性等,就是通过鼠标双击,比如FIELDNAME、SCRTEXT_M、COL_POS、OUTPUTLEN、CHECKBOX、EDIT这些就可以双击LVC_T_FCAT进行查看并且知道这些东西的作用,一览表基本重要的东西就这些。 编辑于 2022-03-29 · 著作权归作者所有...
"字段中文名 WA_FIELDCAT-EDIT = LP_EDIT. "ALV 控制: 准备输入 WA_FIELDCAT-CHECKBOX = LP_CHECKBOX. "ALV 控制: 作为复选框输出 WA_FIELDCAT-CONVEXIT = LP_CONVEXIT. "转换例程 WA_FIELDCAT-LZERO = LP_LZERO. "ALV 控制: 输出前导零 APPEND WA_FIELDCAT. ENDFORM....
*& The basic ALV grid, Enhanced to display specific fields as * *& editable depending on field value * *&---* REPORT ZDEMO_ALVGRID_EDIT . TABLES: ekko. TYPE-POOLS: slis. "ALV Declarations *Data Declaration *--- TYPES: BEGIN OF t_ekko...
REUSE_ALV_GRID_DISPLAY_LVC函数输⼊参数属性的应⽤REUSE_ALV_GRID_DISPLAY_LVC函数输⼊参数属性的应⽤ 前⾯我们讲过, Grid 的输出有两个:REUSE__GRID_DISPLAY 和 REUSE__GRID_DISPLAY_LVC 两者的操作⼤同⼩异,只是后者能更好的和ALV容器结合使⽤,前后则不能;⽽在输⼊参数属性的结构上也...
REUSE_ALV_GRID_DISPLAY_LVC超详细讲解 REUSE_ALV_GRID_DISPLAY_LVC超详细讲解ALV开发流程:1.将得到并整理好的数据以ALV的形式显⽰出来 (4)1.1.在⼦FORM(这⾥如:F_FIELDS)指定需要显⽰的字段 (4)1.2.在⼦FORM(这⾥如:F_BUILD_LAYOUT)⾥设置ALV的全局属性 (5)1.3.在⼦FORM(这⾥...
**& **& The basic ALV grid, Enhanced to display specific fields as **& editable depending on field value **&---* REPORT ZDEMO_ALVGRID_EDIT . TABLES: ekko. TYPE-POOLS: slis. "ALV Declarations*Data Declaration*---TYPES: BEGIN OF t_ekko, ebeln TYPE ekpo-ebeln, ebelp TYPE ekpo-...
wa_fieldcat-edit='X'. wa_fieldcat-just ='C'. wa_fieldcat-fix_column='X'. APPENDwa_fieldcatTOi_fieldcat . CLEARwa_fieldcat. 该功能必须在在显示ALV的函数的子FORM(F_DISPLAY)里添加“回调”的输入参数,这样当用 户点击复选框后才能将改变写回到内表中,代码如下 DATA: l_grid_settingsTYPElvc_...
alv_1->register_edit_event( i_event_id = alv_1->mc_evt_enter ). CALL METHOD alv_1->set_table_for_first_display EXPORTING is_layout = value #( edit = abap_true ) i_structure_name = 'SFLIGHT' CHANGING it_outtab = int_fleet EXCEPTIONS invalid_parameter_combination = 1 program_...