Skip to Content
author's profile photo Former Member
Former Member

Parties Involved assignment block only visible to respected Responsible employee who created lead

Hi

i have a requirement please give me your ideas how to solve this

when i create a lead in parties involved assingment block i given Resposible employee name and Responsible Org Unit

i created sucussfully.

my requirement is i have to give permission to that particuler Resposible employee to make any changes for that lead

if any other user try to change i wont give access to do that i need to disable entire assingment block in disable mode.

how can we do this process?

please give me any ideas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2012 at 11:49 AM

    Hello,

    I would create a seperate configuration and in do_config_determination I would decide which user gets which configuration.

    Best regards,

    Thomas Wagner

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2012 at 01:21 PM

    Hi,

    Since you want to disable all the assignment block , You can disable the 'EDIT' button according to your condition.

    you can write the logic, where the button is created.

    ( If the view is OverviewPage then in IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS method, or if it is view/viewset then may be in DO_PREPARE_OUTPUT ).

    Get the employee id for loggedin user and enable or disable the button.

    Regards

    Rajarama U

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2012 at 12:59 PM

    Hi Anithosh,

    To Enable or Disable assignment block you need to follow below steps:

    Step 1 - Identify the name of the assignment block

    Go to the run time repository of the component. Note down the component usage name. Note down the interface view name. Now, the name of the assignment block page will be 'component_usage_name'.'interface_view_name'. (concatenate both separated by '.' )

    Step 2 - Overview page coding

    Detaching Views

    In the overview page controller, redefine the method 'DETACH_STATIC_OVW_VIEWS'. This method will be called during each page refresh and will return views to be removed from the overview page.

    DATA: ls_viewid TYPE bsp_dlc_ovw_stat_view_attach.

    CONSTANTS: c_view_id TYPE string VALUE 'CUBTOrgSet.BTORGSET/OrgSet'.

    *do validations

    *if validation fails

    ls_viewid-viewid = c_view_id.

    APPEND ls_viewid TO rt_viewid.

    *endif

    Reattaching Views

    In the same overview page controller, redefine the method 'REATTACH_STATIC_OVW_VIEWS'.

    *basically the same code as in detach views. The return table carries the views to be reattached

    *Make sure that the views are not attached already

    DATA: ls_viewid TYPE bsp_dlc_ovw_stat_view_attach.

    CONSTANTS: c_view_id TYPE string VALUE 'CUBTOrgSet.BTORGSET/OrgSet'. *if validation ok

    READ TABLE view_area WITH KEY appl_viewname = c_view_id

    type = space

    traymode = abap_undefined

    transporting no fields.

    if sy-subrc = 0.

    ls_viewid-viewid = c_view_id.

    APPEND ls_viewid TO rt_return.

    endif.

    *endif


    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2012 at 06:12 AM

    Hi Anithosh,

    Check this link http://scn.sap.com/message/13725463

    Hope this link will be helpful for you.

    Regards

    HCL Innovators 😊

    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.