cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict CR types based on Authorization Group in MDG-BP

Adi21
Discoverer
0 Kudos
135

Hi everyone

I have a requirement in which i have to restrict CR types based on Authorization groups

For ex - If a CR type is for Hungary then when doing the change from edit button in UI only HU change requrest should be visible rest others should be deleted.

I am trying to create an implicit enhancement in get_data method of cl_mdg_bs_cr_types_feeder class to put a condition like

If data model EQ 'BP'.

then will check for authorization and based on that i will implement a conditional statement to delete unwanted CR's but in the above method i debugged a lot but i'm not able to find the field in which authorization group is stored.

Can someone help me out?

Accepted Solutions (0)

Answers (2)

Answers (2)

adityaIngale
Active Participant
0 Kudos

Hi @Adi21 ,

You can implement the BADI USMD_CREQUEST_INTEGRATION to filter CR Types. In the method FILTER_CREQUEST_TYPE, you can read the Authorization Group using MDG API and, based on that, filter the CR Types that need to be displayed.

 

Best Regards,

Aditya

AbdulM
Explorer
0 Kudos

Hi

The Best solution for this would be to design the roles with the restriction on the Change Request Type. This will be a clean solution without dependency on any enhancement. The Auth Object USMD_CREQ is provided for this purpose.

Regards