Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg: database table

Former Member
0 Likes
1,013

Hi Experts,

I want to know the function module to delete the user profile in SU01 transaction.

consider the scenario is like this, i want to delete SAP_ALL profile for a particular user id.

Thanks in advance.

Vijay.R

8 REPLIES 8
Read only

Former Member
0 Likes
986

Try FM BAPI_USER_DELETE.

Read only

0 Likes
986

HI arjun,

Thanks for your reply.

But it is deleting the user itself.

But i want to delete the particular profile only (eg: SAP_ALL) and the other profile should not delete.

do u know any other function modue

Thanks in advance.

Vijay.R

Read only

Former Member
0 Likes
986

Hello

BAPI_USER_PROFILES_DELETE

Read only

0 Likes
986

Hi Dzed,

Thanks for your reply.

But it is deleting all the profiles created for the user.

But i want to delete the particular profile only (eg: SAP_ALL) and the other profile should not delete.

do u know any other function modue

Thanks in advance.

Vijay.R

Read only

matt
Active Contributor
0 Likes
986

In future, please use a meaningful subject. Your subject has NOTHING to do with the content of your post

Try searching for other BAPIs beginning BAPI_USER... Why is people won't put in a little effort to help themselves?

Read only

0 Likes
986

Hello

Yes, sorry. It deleting all profiles.

For delete one of profiles you may try this scenario:

1. Read users details with BAPI_USER_GET_DETAIL.You will have table PROFILES with all profiles for particular user.

2. Delete from this table particular profile.

3. Use FM BAPI_USER_PROFILES_ASSIGN with user name and table of profiles.

It must be work.

Also refer this:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/668e6629-0701-0010-7ca0-994cb7de...

Read only

0 Likes
986

Hi All,

Sorry for the wrong subject.

I found the solution for this problem.

Thanks for your replies.

Read only

Former Member
0 Likes
986

<< there is no point in repeating the answer >>