cancel
Showing results for 
Search instead for 
Did you mean: 

Hide views in SAP MDG-M 7.0 UI

Former Member
0 Kudos


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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amab

Yes you can achive it through adaptation. Please refer below

[PDF]How to Create, Enhance and Adapt Floorplan Manager ...

Former Member
0 Kudos

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.