cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro -Standard Tool bar

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Have a look a this post,

http://scn.sap.com/thread/3383661

Former Member
0 Kudos

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.