TYPE REF TO cl_gui_alv_grid 一般: CALL METHOD alv_grid ->set_table_for_first_display EXPORTING i_structure_name = 'SPFLI' CHANGING it_outtab = g_it_spfli[] . 有时候部分字段不需要输出 使用LVC_FIELDCATALOG_MERGE 函数 DATA : gb_fieldcat TYPE lvc_t_fcat . DATA ls_fldcat TYPE lvc_...
我现在就将我的理解写下来,供大家参考。1)在创建CL_GUI_ALV_GRID_BASE的对象,会调用SET_INFO_TABLE方法为MT_MODIFIED_CELLS创建一个CL_GUI_DATAPONDEMAND对象,并把MT_MODIFIED_CELLS的地址传递到CL_GUI_DATAPONDEMAND的M_DATAPTR属性;2)调用CL_GUI_DATAPONDEMAND->control_assign_prop进行注册...
SAP Managed Tags: ABAP Development Hi Krzysztof, if you want to change color of a single field in a single line of ALV, then you need a field of table type LVC_T_SCOL in the structure of your output table pass this fieldname to LS_LAYOUT-CTAB_FNAME mark this field as TECH = X...
SAP Managed Tags: ABAP Development hi, In my program I have a grid with some fields. On a particular field a F4-available is enabled. When I click on f4 on this field, I need info from another field in the same row. This works fine with command read table itab assigning <lf_ro...
SAP Managed Tags: ABAP Development Hi dennis, i think you need to disable the standard F4help, in this case it is looking for event first, then it id looking for standard help. so first it is working fine, then it is triggering no help. i think this is causing the problem fieldcat...
SAP Managed Tags: ABAP Development Hi! I have a CL_GUI_ALV_GRID instance displaying the data of an itab. 2 columns are set to have optimized width via field catalogue. The first time the 2 columns are ok in width but when I add some rows and call refresh_table_display the width ...
SAP Managed Tags: ABAP Development Hi guys, I am using the CL_GUI_ALV_GRID class to display a report in SAP 4.7 When the user click on refresh, on the standard ALV toolbar, I need to delete some entries in my table. Also, I'm displaying the total number of lines in my GUI tit...
I have noticed that there are many open threads regarding a single topic within the ABAP Development therefore I decided to gather them all up and write a blog with the
SAP Managed Tags: ABAP Development yes Is that reason of problem? How can i solve? Thanks for reply. Reply former_member226225 Contributor In response to former_member289261 2014 Nov 30 2:48 AM 0 Kudos 455 SAP Managed Tags: ABAP Development Hi Omer, Can you please the compl...
First problem here:'SELECTED'entries are not propagated to the ALV grid (the lines in the GUI are not marked). I know I could useset_selected_rowsto force the selection, but is this really necessary? 4) Then, at PAI methodcheck_changed_datais called (and yes, eventmc_evt_modifiedis ...