Skip to Content

Remove link from widget favorite reports - on page home

Hello Experts

On Startpage (Home) in CRM. I defined some links for widget favorite reports.

Some users are not allowed to klick on ofe the links. so i wante to remove them (because i don't wante do define a new role for this on link)

How could i remove them? Can you give an example coding for the do_prepare_out?

Thanks for Help.

Regards, Sven

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 07, 2012 at 07:57 AM

    Hi Sven,

    You can try the following:

    Enhance the web ui component UICMP_WC_FAVORI . inside the component enhance the view UICMP_WC_FAVORI/FavoriteCRMLinks and inside your z IMPL class you can redefine the method GET_WCFAVORITE_LINKS. Inside this method you can put condition based on business role of current loggedin user and remove or add report links. Ypu may need to define the DO_INIT_CONTEXT() to call your version of GET_WCFAVORITE_LINKS()

    To get the business role of current loggedin user you can use the following code:

    Data: lv_current_profiel TYPE crmt_ui_profile.
    * Get the current user's business role
      CALL METHOD cl_crm_ui_profile=>if_crm_ui_profile~get_user_defined_profile
          rv_result = lv_current_profiel.

    Hope this will help!



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.