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

ui configuration at run time using role config key and object type

Hi experts,

Let me start by admitting that I am very new to the crm webui. I have a requirement in which I need to create a few z business roles and unique role config keys for them. And I have been given some requirements like below.

- Access to Account, Service Request, Knowledge Article and FACT sheet data

- Able to display all service requests.

below is the processing logic that I have been told.

Using the role config key, different view configurations would be created for respective components in

the component workbench.

Based on the business role, respective role config key would be picked up and the corresponding

view would be displayed on UI.

In addition to this, in the IMPL class of the component work bench, DO_CONFIG_DETERMINATION

method could also be used to specify which role config should be picked up.

Do they mean that using same role config key, I need to create more than one UI configuration? I was also told by some one that I need to create the configuration according to ui objects and sub object and then inside the DO_CONFIG_DETERMINATION methode, I can check the role config key and hard code the ui object and the sub object. But I do not know how to create them.

Could anyone tell me from where I can start and how to achieve this task?

I apologize if my question is very basic.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

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

    Do they mean that using same role config key, I need to create more than one UI configuration? I was also told by some one that I need to create the configuration according to ui objects and sub object and then inside the DO_CONFIG_DETERMINATION methode, I can check the role config key and hard code the ui object and the sub object. But I do not know how to create them.

    Could anyone tell me from where I can start and how to achieve this task?

    I apologize if my question is very basic.

    You can do the following

    a) Go to the view you want to create a new configuration.

    b) Choose 'Copy Configuration' .

    c) There you would be asked to enter the Role Config Keys , Object Name & Sub Object Name. You can choose your own names for Object Names & Sub Object Name.

    d) go to DO_CONFIG_DETERMINATION. There based on your logic you can load the configurations this way

            IF (your_condition) EQ abap_true.
    
              CALL METHOD me->set_config_keys
                EXPORTING
                  iv_object_type          = 'your_object_type'
                  iv_object_sub_type      = 'your_sub_obj_type'
                  iv_propagate_2_children = abap_false.
    

    Regards

    Kavindra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Kavindra Joshi

      Hi Kavindra,

      Thank you very much. I have been able to successfully load the custom ui configuration for the business role as you have mentioned. Now, how do I incorporate the authorizations to the business role. For example, if there are two business roles ( an agent and a manager ) the agent should be able only to view his lead and a manager should be able to view all the leads and perform some edit operations on them? Now I am able to load different view configurations only. Could you also suggest me any document which has all the necessary basics?

      Thank you so much for your time and consideration,

      Ajith C

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.