08-25-2014 6:28 PM
Hi all.
I'm having trouble deleting of users with sap_all and sap_new. I am using the FM PRGN_INTERFACE_USER but is not solving the .Passo following parameters: Profile: sap_all, user: ALEBWSEMBPS, action: 'D' and perform_checks: 'X'. Anyone have any idea what is happening. Have sy-SUBRC = 0 return.
Thank you and regards.
Erlon Lourenço
08-25-2014 6:37 PM
That was a function for "wizards" and has been changed in the recent years to make checks, respect CUA, etc.
You should use the correct APIs -> BAPI_USER_GET_DETAIL, then remove the Profiles from the exported list, and then call BAPI_USER_PROFILES_ASSIGN (or the CUA equivalent for LOCal profiles to be (re)assigned).
Cheers,
Julius
08-25-2014 6:37 PM
That was a function for "wizards" and has been changed in the recent years to make checks, respect CUA, etc.
You should use the correct APIs -> BAPI_USER_GET_DETAIL, then remove the Profiles from the exported list, and then call BAPI_USER_PROFILES_ASSIGN (or the CUA equivalent for LOCal profiles to be (re)assigned).
Cheers,
Julius
08-26-2014 3:12 PM
Hi Julius, Thank you.
I need to delete only the sap_all and sap_new. The BAPI BAPI_USER_PROFILES_ASSIGN solve this problem ou there are other? Can guide please?
Regards,
Erlon Lourenço
08-26-2014 3:44 PM
Yep, this is the old only API to (un)assign profiles in non-CUA systems.
Cheers,
Julius
Message was edited by: Julius von dem Bussche
08-26-2014 9:51 PM
10-03-2014 9:35 PM
Hi Julius.
Suggested that the BAPIs used. In DEV, it ok but in QAS for my User deletes correctly and the other got the following message:
You know what might be happening?
Regards,
Erlon Lourenço
10-03-2014 9:59 PM
I think I know what is happening...
If you test the same thing twice and the same results, then sometimes you get different results. This is normal if the first test processed the result already.
The corollary is to test the same thing a multiple of times and expect different results.
That is IT for you.... can't win. Can't loose. Just does not work when you really need it.
If you provide more infos then perhaps I and others can provide less "Murphy's Law" solutions... 🙂
Cheers.
Julius
ps: Is the CUA active there, or any prototyping of it in the test systems?
10-08-2014 12:55 PM
Thanks Julius,
Solved. I hasn't profile to delete the users in QAS. :S.
Thank you.
Regards,
Erlon Lourenço