on 07-08-2015 5:59 AM
Hi Gurus,
My requirement is to Hide few views in MDG-M UI based on User role. I have tried using BAdI USMD_ACC_FLD_PROP_CUST_DEP_SET but it can be used to Hide the fields of any view. Even if I have hidden all the fields for a particular view, the heading of the View (e.g Sales Data) remains in the UI. This might confuse the user. I need to hide the total view based on roles.
Also I can't use BADI USMD_UI_EVENT2 as this is not suported in MDG 7.0.
I can't use Configuration as I need it dynamic based on roles. Client doesn't want to use Personalization.
Is there any other way out?
Thanks,
Arnab.
Hi Amab
Yes you can achive it through adaptation. Please refer below
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjay,
I tried to do adaptation using one class CL_MDG_BS_MAT_FEEDER_FORM. I craeted a post exit and added the below code in Method IF_FPM_GUIBB_FORM~GET_DATA:
* Check event id to avoid infinite loop
CHECK io_event->mv_event_id NE if_fpm_constants=>gc_event-adapt_context.
* create the object to set the adaptation context. .
CREATE OBJECT lo_event
EXPORTING iv_event_id = if_fpm_constants=>gc_event-adapt_context
iv_adapts_context = abap_true.
* Set the adaptation context via event parameters
lo_event->mo_event_data->set_value( EXPORTING iv_key = 'ZWFLEVEL'
iv_value = 'MRP_APPROVAL' ).
* finally raise the event
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm->raise_event( lo_event ).
in Screen adaptation it was meant to hide the view Sales Data only. But it is hiding many other views along with Sales data view.
Any idea why it is working like this?
Arnab.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.