cancel
Showing results for 
Search instead for 
Did you mean: 

add-on and user impersonation

Former Member
0 Kudos

Hi everybody,

I developped an add-on which uses UI only and which open the general settings system form at start-up to retrieve some important information (the decimal and the thousand separator).

This works very well as long as the user logged has been required permissions (defined in System Initialization > Authorizations > General Authorizations).

Is there a way for my add-on to impersonate the "manager" account to do this task or shall I give the idea altogoether?

Thanks a lot for your help.

Cyril

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Assuming you are only reading the values and not changing them, why not use the recordset object and read the fields directly from the database? This will allow the add-on to bypass business one security.

The fields you need are ThousSep and DecSep from OADM.

Please be aware that if you use recordsets to access the underlying data like this, you may need to change your code slightly if SAP change the database structures in future releases.

Regards,

John.

former_member185703
Active Contributor
0 Kudos

Please note that SDK 2005 is planned to have an object for the information in OADM + much more.

Former Member
0 Kudos

Frank,

Do you know if this object will be part of the UI API or the DI API?

Cheers,

Former Member
0 Kudos

It is going to be part of the DI API.

John.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think the best way to solve your problem is to use the SBObob object of the DI. Using the object you can get the values you need and much more (and you can use it in 2004A)

-M

Former Member
0 Kudos

Using the DI to perform this task was my first idea.

But it creates other problems (above all memory usage and licensing complexity) that proved impossible to solve.

Cheers.