on 01-15-2010 12:59 PM
Hi,
I am new to webdynpo. We are working on EHP4- Appraisals,we want to hide some of the buttons displayed under MSS through a webdynpro screen.
Could any one please let us know how to hide the standard toolbar in ALV.
Regards
VK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Vineeth,
Disable All Alv Standard Buttons
Automatically Toolbar Would be Hidden State
Add Below Code In Wddoinit Method
*Instantiate Component
data lo_cmp type ref to if_wd_component_usage.
lo_cmp = wd_this->wd_cpuse_alv( ).
if lo_cmp->has_active_component( ) is initial.
lo_cmp->create_component( ).
endif.
*Get Ref of alv Table
data lo_cpifc type ref to iwci_salv_wd_table.
data lo_config type ref to cl_salv_wd_config_table.
lo_cpifc = wd_this->wd_cpifc_alv( ).
lo_config = lo_cpifc->get_model( ).
* Disabling Views
CALL METHOD LO_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED
EXPORTING
VALUE = ABAP_false.
*Disabling Print Version Button
CALL METHOD LO_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_PDF_ALLOWED
EXPORTING
VALUE = ABAP_false .
*Disabling Export
CALL METHOD LO_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_EXPORT_ALLOWED
EXPORTING
VALUE = ABAP_false.
* Disabling Filter Settings
CALL METHOD LO_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED
EXPORTING
VALUE = ABAP_false.
* Disable Settings Pushbutton
CALL METHOD LO_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_DIALOG_SETTINGS_ALLOWED
EXPORTING
VALUE = abap_false.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.