cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of dynamic button in Alv from portfolio management tab in ppm

Former Member
0 Kudos

Hi Experts,

In Portfolio management tab in PPM , when I click on Porfolio items, I get a list of items, which is an ALV output.

That ALV shows number of buttons in its toolbar. I am suppose to delete on of those buttons.

The alv is used under /RPM/UI_DASHBOARD component (view VI_RPM_DASHBOARD). 

At present, what I see is the button "MOVE TO" gets enabled on lead select, otherwise it is in display mode.

Please find the attachment for the screen-shot. Urgent help..

Thanks & Regards,

D.Dutta.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Debrath,

If you are enhancing i hope you cant delete custom toolbar button but you can set it to invisible.

Check the code where they have added the button on alv toolbar it looks like this.

before endmethod  add this code.

button1->SET_VISIBLE( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).

Then button will be invisible.

If it is not enhancing Remove the code from * create button which is in comment till button1->set_editor.

Regards

Madhukiran.

Former Member
0 Kudos

Hi Madhukiran,

Thanks a lot for your reply.

I was not able locate the code you have mentioned above.

But what I found is in

Method  "HANDLEIN_REUSE_WD_ALV".

They have called

wd_comp_controller->create_toolbar( ).

and in CREATE_TOOLBAR method they again  called

CALL METHOD wd_this->mr_ui_class->create_alv_toolbar

furthur thay have used :

CALL METHOD ir_inm_navigation->create_dshb_nav_toolbar

Here they are filling one internal table "

LOOP AT lt_lpd_cnt_dash INTO ls_content."

which contains the list of buttons.

So my doubt is : If I can alter the internal table or delete the line which contains the "MOVE TO" button.

Thanks & Regards,

D.Dutta.


Former Member
0 Kudos

Hi Debrath,

If your sure in future you dont need MOVE TO button then before LOOP you can delete that recor from internal table or you just want to invisible button.

Read  the button from internal table and set that button to invisible

check the object ref of MOVE TO button with that reference call set_visible method in this example button1 is ref.

button1->SET_VISIBLE( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).

Regards

Madhukiran.

Answers (0)