cancel
Showing results for 
Search instead for 
Did you mean: 

How check the user roles in Business Partner edition screen?

Former Member
0 Kudos

Hello Masters,

I'm having a little problem figuring out how to check the user roles to allow modification in some fields.

At the 'Manage Organizational Data' screen ('Manage Business Partners' -> Business Partner Data -> edit). I need to check the user roles to let him change the 'Tax Numbers' values. The values can be changed only if the user is a administrator; otherwise it must only show the value.

I checked the HTML Template and found where I can restrict this edition option, but the problem is that I don't know how to check the user roles here. Maybe there is a function to do this?

Any ideas of how I can do it? Is there any magical BAdI to check this?

Thanks in advance,

José Omar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi José Omar,

there is no BADI for this...

You have to change the standard code to display only tax data if the SY-UNAME does not have correct role.

You can retrieve user roles with BAPI_USER_GET_DETAIL, or access directly the activity groups table.

Rgds

Christophe

Former Member
0 Kudos

Thanks Chistophe,

But I realy don't want to change the standard code...

Do you know a way to get this information (the user role) at the HTML template code? that would be easier and safer.

Regards,

José Omar

Former Member
0 Kudos

José Omar,

HTML template only interpretes what the SAP GUI is sending to ITS.

You can modify HTML templates, but role information must be sent by ABAP side, so you definitively need to modify the standard code.

Rgds

Christophe

Answers (0)