you need to set the pf-status for your alv. just click on the pf-status it will take you to the se41 transaction and there you can assign the Fcodes to the standard tool bar, i assigned to standard tool bar buttons only. i assigned my own codes to back,cancel,exit, and for f2 ...
第二步:ALV 关联到自定义工具栏 ALV 内置的工具栏没有与保存相关的按钮,解决办法是拷贝一个工具栏,让 ALV 控件关联拷贝的工具栏。使用事务码 SE41 从程序 SAPLKKBL 拷贝 STANDARD 工具栏到本程序。 在程序中添加一个子例程,设置 GUI STATUS: FORM set_pf_status USING rt_extab TYPE slis_t_extab. SET P...
DATA:TAB1 LIKE STANDARD TABLE OF MARA WITH HEADER LINE."定义内表DATA:FIELDCAT TYPE LVC_T_FCAT,"定义FieldCat对象 GRID TYPE REF TO CL_GUI_ALV_GRID,"定义ALV控件名 G_CONTAINER TYPE SCRFNAME VALUE 'CONT1',"重新定义本地容器对象名称 G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_...
STANDARD_FULLSCREEN就是我们需要拷贝的状态栏。 右键拷贝状态栏。 、 拷贝至我们的demo程序。 这时我们的demo程序ZTMP_CL003的GUI状态中就出现了我们拷贝的STATUS. 下面的重点就是在这个STATUS里新加一个按钮,并在ALV中调用这个STATUS. 我试着添加一个功能码为&BDC的按钮。 在如图所示的位置添加,直接输入你想要的...
CL_GUI_ALV_TREE 和CL_GUI_ALV_GRID的ON_DRAG、ON_DROP 事件来实现相应的拖拽功能。 ALV Grid的示例程序如下,此程序可以通过拖拽来改变ALV控件数据行的顺序: 1、创建一个600屏幕,只需一个屏幕元素OK_CODE即可 2、创建一个gui status,命名为STATUS,增加对退出按钮的相应 ...
FORM zform_set_pf_status USING rt_extab TYPE slis_t_extab. SET PF-STATUS 'STANDARD' . ENDFORM. "zform_set_PF_STATUS *&---* *&Form alv_user_command *&---* FORM alv_user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield. DATA...
Is there any way to use the standard PF status when using Object Oriented ALV? I.e. in Classical ALV, we can copy the standard GUI status in our program and then pass the GUI status in the function module 'REUSE_ALV_GRID_DISPLAY'...which inturn handles standard function... Is there...
GT_ALVTYPESTANDARDTABLEOFTY_ALV, ZNAMETYPETHEAD-TDNAME.DATA: GT_BOLNRTYPETABLEOFTY_BOLNR, WA_BOLNRTYPETY_BOLNR.DATA: STBLTYPELVC_S_STBL, G_GRIDTYPEREFTOCL_GUI_ALV_GRID.*---**CLASS lcl_event_handler DEFINITION*---**类定义*---...
Guys I copied one program to another program.I can see Gui status all is copied But when i try to execute the copied program ,i get the following message.I tried to go to se41 and activate gui & interface but still it shows the same.Please guide Status MAIN_ALV of the user interface...
"修改alv显示字段属性 editwa_fieldcat-edit='X'."指定显示字段可编辑MODIFYit_fieldcatFROMwa_fieldcatTRANSPORTINGeditWHEREfieldname='KWMENG'.CLEARwa_fieldcat. 声明与自建表同名的工作区, 并定义一个内表 "声明与自建表同名的工作区TABLES:ZTVBAP_TEST."定义一个内表DATA:IT_ZTVBAP_TESTTYPESTANDARDTABLE...