Delete package of user bapi fm
Hi everybody,
I need an bapi or fm to delete the package and all objects in it of a user.
I already know that it stands in the table TADIR. But it has to be a fm or bapi with the possebility of an rfc connection.
I will have to use this function from one system on more systems.
Kind regards, Wouter
[<<This link >>|http://www.sap2048.com/how-to-delete-packages-1403.htm] has some solution, if you need an RFC you can write wrapper on the report mentioned in the link.
Similar Messages
-
hi everybody
i just can't delete an existing package or user
when i do this i got that :
Une erreur s'est produite lors de l'opération demandée :
ORA-04045: erreurs lors de la recompilation/revalidation de MDSYS.SDO_DROP_USER_BEFORE
ORA-01031: privilèges insuffisants
04045. 00000 - "errors during recompilation/revalidation of %s.%s"
*Cause: This message indicates the object to which the following
errors apply. The errors occurred during implicit
recompilation/revalidation of the object.
*Action: Check the following errors for more information, and
make the necessary corrections to the object.
Code fournisseur 4045
even when i login as system i can't delete the user and i got the same message error970387 wrote:
hi everybody
i just can't delete an existing package or user
when i do this i got that :
Une erreur s'est produite lors de l'opération demandée :
ORA-04045: erreurs lors de la recompilation/revalidation de MDSYS.SDO_DROP_USER_BEFORE
ORA-01031: privilèges insuffisants
04045. 00000 - "errors during recompilation/revalidation of %s.%s"
*Cause: This message indicates the object to which the following
errors apply. The errors occurred during implicit
recompilation/revalidation of the object.
*Action: Check the following errors for more information, and
make the necessary corrections to the object.
Code fournisseur 4045
even when i login as system i can't delete the user and i got the same message errorwhat happens you are are logged into the DB as MDSYS user? -
AD Identity Service: Delete or Disable users that aren't found?
We currently set users to be "disabled" but then we have to periodically remember to go in there and delete them manually. It also creates issues with duplicate login names. Do you delete your users automatically? I've always been concerned that if something goes wrong with a sync then all my users would be deleted.
We had the same issue here, so I wrote an external operation that piggybacks on the user sync job and deletes any disabled users older than X amount of days. For instance, in our case users are deleted after 180 days of being disabled (this is a bit extreme). This way you can give yourself a few days before the users are actually deleted, but keep the process automated. There are a couple of options built in, which should be discernible from the source code. Here is the source:
package com.oracle.services.jobs;
import com.oracle.services.utility.SessionManager;
import com.plumtree.openfoundation.util.XPCalendar;
import com.plumtree.openfoundation.util.XPDateTime;
import com.plumtree.portaluiinfrastructure.resultwrapper.ASQueryResultWrapper;
import com.plumtree.server.IPTObjectManager;
import com.plumtree.server.IPTQueryResult;
import com.plumtree.server.IPTSession;
import com.plumtree.server.IPTUser;
import com.plumtree.server.IPTUserManager;
import com.plumtree.server.PT_LOCKSTATES;
import com.plumtree.server.PT_PROPIDS;
* This class takes care of the automation server job for deleting user accounts
* which have been disabled for some number of days.
* @author hross
public class DeleteDisabledAccountsJob {
// filter for only deleting agent disabled accounts
private static String FILTER_AGENT = "This user has been locked by a User Synchronization Job.";
// filter for deleting all disabled accounts (including those disabled by an
// admin)
private static String FILTER_ALL = "";
public static void main(String[] args) {
// check arguments
if ((args.length < 2) || (args.length > 4)) {
System.err.println("usage: ");
System.err
.println("DeleteDisabledAccountsJob <security_token> <num_days>");
System.err
.println("DeleteDisabledAccountsJob <security_token> <num_days> all");
return;
// get a session from the login token
IPTSession session = SessionManager.createSession(args[0]);
// get a number of days
int numDays = 0;
try {
numDays = Integer.parseInt(args[1]);
} catch (Exception ex) {
System.err.println("Number of days not a valid integer.");
return;
// filter all or just the agent?
boolean filterAll = ((args.length > 2) && (args[2].equals("all")))
|| ((args.length > 3) && (args[3].equals("all")));
boolean test = ((args.length > 2) && (args[2].equals("test")))
|| ((args.length > 3) && (args[3].equals("test")));
if (test) {
System.err.println("This is a just a test. Nothing will be deleted.");
if (filterAll) {
System.err
.println("This job will delete all disabled accounts (even those disabled by an admin).");
} else {
System.err
.println("This job will delete only users disabled by an authentication source.");
// calculate 180 days in the past based on today's date
XPDateTime cutOff = new XPDateTime();
XPCalendar xpCalendar = XPCalendar.GetInstance();
xpCalendar.Add(XPCalendar.HOUR, -(24 * numDays));
cutOff = xpCalendar.GetTime(); // subtract 180 days from current time
System.err
.println("This job will delete any user accounts disabled before: "
+ cutOff.toString());
// query for disabled user accounts
IPTUserManager userManager = (IPTUserManager) session.GetUsers();
IPTQueryResult result = userManager.GetLockedAccounts(filterAll ? FILTER_ALL
: FILTER_AGENT, 0, -1);
//ASQueryResultWrapper ptqrUserLock = new ASQueryResultWrapper(result);
for (int i = 0; i < result.RowCount(); i++) {
// get some basic user info
int userId = result.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);
String name = result.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);
String login = result.ItemAsString(i, PT_PROPIDS.PT_PROPID_USER_LOGINNAME);
XPDateTime dt = result.ItemAsXPDateTime(i, PT_PROPIDS.PT_PROPID_CREATED);
// System.err.println("Found account: (" + userId + ") " + login
// + ", " + name);
// check to see if we need to delete the user
if (dt.Before(cutOff)) {
if (!test) { // if test, we just want to see who we would have delted
// we have to try to unlock the user b/c of a bug in
// automation
// server
IPTUser user = (IPTUser) ((IPTObjectManager) userManager)
.Open(userId, false);
try {
user.SetLockedStatus(false);
user.Store();
} catch (Exception ex) {
// we expect this will fail b/c of a bug
// make sure the account gets unlocked
if (user.GetLockState() == PT_LOCKSTATES.PT_LOCKED)
user.UnlockObject();
// okay, now we can delete the user
((IPTObjectManager) userManager).Delete(userId);
System.err.println("Removed user account: " + userId + " - " + login + " - " + name);
} -
unable to delete Role from User ID in SAP SOLMAN production system but able to from DEV with the same authorization, pls suggest
Hi,
For SU01 role removal, you do not need S_USER_AGR with 02, and as you mentioned both authorizations available in production, if so trace should not show you the S_USER_AGR with 02 with RC=04.
I would recommend to do role comparison for the user performing the activity. and then check if you have the S_USER_AGR with 02 in user buffer SU56.
But ideally it should not ask you S_USER_AGR for 02 through SU01, so please take help of abaper to debug it.
Also put trace in non-prd to see if S_USER_AGR is getting checked with 02 for removal through SU01.
BR,
Mangesh -
How to delete the new user added while install maverick
while upgrade my os x 10.8 to maverick, it ask me to create a new user.
after that, a folder for the new user is created in the /Users, but there is no information for this new user in the System Preferences -> Users & Groups,
i can't event delete this new user in the Users & Groups setting panel.
so how can i delete this new user?That may be because you are logged into the new user.
In any case, this support article should help...
http://support.apple.com/kb/TS5292 -
i use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.
Welcome to Apple Support Communities
That's the classic behaviour after using Migration Assistant and that's normal.
To transfer the data from the new user account to your old user account, you can follow some steps. Here is all the information you need to do this > https://discussions.apple.com/docs/DOC-5472 -
How can i delete my old user ID
One month ago I change my Iphone4 for a new one Iphone6, a soon as I set up, I can not loading any new programs in to.
Hi
Do not work, appear my old ID and, that Account do not reconized my password
Regards.
Carlos
Sourcing Specialist.
Idex Corporation
Phone: *******
Enviado desde mi iPhone
El 04/02/2015, a las 7:59, Apple Support Communities Updates <[email protected]<mailto:[email protected]>> escribió:
http://www.apple.com/support/assets/images/external/emails/logo.gif
You received a reply
Briansyddall<https://discussions.apple.com/people/Briansyddall?ac_cid=op123456> has replied to your question. You can view the full discussion<https://discussions.apple.com/message/27606356?ac_cid=op123456#27606356> in Apple Support Communities.
How can i delete my old user ID<https://discussions.apple.com/message/27606356?ac_cid=op123456#27606356>
Hi Did you use the same Apple ID toxset up new iPhone? Try a Reboot press & hold power button & menu button hold both down until you see Apple Logo. You may need to do this for upto 50 Seconds. Cheers Brian
Correct Answer <https://discussions.apple.com/email/thread/6814340/correct/27606356> Helpful Answer <https://discussions.apple.com/email/thread/6814340/helpful/27606356>
Use the buttons above to tell Briansyddall and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
To reply to Briansyddall, go to the discussion<https://discussions.apple.com/message/27606356?ac_cid=op123456#27606356> in Apple Support Communities.
You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile<https://discussions.apple.com/user-preferences!input.jspa>.
TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
All Rights Reserved<http://www.apple.com/legal/> | Privacy Policy<http://www.apple.com/legal/privacy/> | Terms of Use<https://discussions.apple.com/docs/DOC-5952> | Apple Support<http://www.apple.com/support/>
This e-mail is intended solely for the intended recipient or recipients. If this e-mail is addressed to you in error or you otherwise receive this e-mail in error, please advise the sender, do not read, print, forward or save this e-mail, and promptly delete and destroy all copies of this e-mail.
This email may contain information that is confidential, proprietary or secret and should be treated as confidential by all recipients. This e-mail may also be a confidential attorney-client communication, contain attorney work product, or otherwise be privileged and exempt from disclosure. If there is a confidentiality or non-disclosure agreement or protective order covering any information contained in this e-mail, such information shall be treated as confidential and subject to restriction on disclosure and use in accordance with such agreement or order, and this notice shall constitute identification, labeling or marking of such information as confidential, proprietary or secret in accordance with such agreement or order.
The term 'this e-mail' includes any and all attachments.
<Personal Information Edited by Host> -
How do i delete the old users account on my second hand imac g5 without the origonal disc
im new to imacs and not sure how to delete the old users account without the origonal disc
First of all, you need to make sure your current user account (the one you intend to keep) is an administrator account (not standard).
Go to System Preferences Accounts pane. Click the lock, if it's locked, and enter your authorization, to unlock.
In the sidebar, you will see the list of user accounts. To delete a user account, select it on the list and click the minus sign. -
How do I delete my old user completely?
It's more complicated than just deleting a user.
I've just upgraded my Mac to Yose mite and deleted my old User and created a new user.
I went to preferences and Users & Groups and I've checked it, i only see my new user as Admin.
Though when I shut down and turn my mac back on the first thing it opens is my old "deleted" user type in its password and wait a while for it to load then it goes to my new user and i have to log in with that to get to my Desktop Screen.
I've even tried this website (http://support.apple.com /kb/TS3981) and went to where to told me and find my old user but it's not there. I've even went into my User folder and my old user isn't there.
How do I delete my old User so when i turn on my mac and it goes straight to my new user and then i would type in the new users password etc and go into it skipping my old user?
Please help! Thanks.Open the Sharing pane of System Preferences and change the computer's name.
(23562) -
Situation:
SSIS Package designed in SQL Server 2012 - SQL Server Data Tools
Windows 7 - 64 bit.
The package (32 bit) extracts data from a SQL Server db to an Excel Output file, via an OLE DB connection.
It uses 3 package variables:
*) SQLCommand (String) to specify the SQL Statement to be executed by the package
Property path: \Package.Variables[User::ExcelOutputFile].Properties[Value]
Value: f:\Output Data.xls
*) EXCELOutputFIle (String) to specify path and filename of the Excel output file
Property path: \Package.Variables[User::SQLCommand].Properties[Value]
Value: select * from CartOrder
*) VarObjectDataSet (Object) to hold the data returned by SQL Server)
Property path: \Package.Variables[User::VarObjectDataSet].Properties[Value]
Value: System.Object
It consists out of 2 components:
*) Execute SQL Task: executes the SQL Statement passed on via a package variable. The resultng rows are stored in the package variable VarObjectDataSet
*) Script Task: creates the physical output file and iterates VarObjectDataSet to populate the Excel file.
Outcome and issue:The package runs perfectly fine both in SQL Server Data Tools itself and in DTEXECUI.
However, whenever I run it via SQL Server Agent (with 32 bit runtime option set), it returns the errror message below.
This package contains 3 package variables but the error stating that a package variable can not be set, pops up for the VarObjectDataSet only. This makes me wonder if it is uberhaupt possible to set the value of a package variable
of type Object.
Can anybody help me on this please ?
Message
Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 6:40:20 PM DTExec: Could
not set \Package.Variables[User::VarObjectDataSet].Properties[Value] value to System.Object. Started: 6:40:20 PM Finished: 6:40:21 PM Elapsed: 0.281 seconds. The package execution failed. The step failed.
Thank you very much in advance
JurgenHi Visakh,
thank you for your reply.
So, judging by your reply, not all package variables used inside a package need to be set a value for when run in DTEXEC ?
I already tried that but my package ended up in error (something to do with "... invocation ...." and that error is anything but clearly documented. Judging by the error message itself, it looks like it could be just about anything. that is why I asked my
first question about the object type package variable.
Now, I will remove it from the 'set values' list and try another go cracking the unclear error-message " ... invocation ...". Does an error message about " ... invocation ..." ring any bells, now that we are talking about it here ?
Thx in advance
Jurgen
Yes exactly
You need to set values only forthem which needs to be controlled from outside the package
Any variable which gets its value through expression set inside package or through a query inside execute sql task/script task can be ignored from DTExec
Ok I've seen the invocation error mostly inside script task. This may be because some error inside script written in script task. If it appeared after you removed the variable then it may because some reference of variable existing within script task.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hi
We are trying to do an Security groups import using LCM, but getting the following errors and the accessing permissions are not updating.
Errors occured during syncrhonization: [com.hyperion.planning.HspRuntimeException: Cannot delete the following users: [username]., com.hyperion.planning.HspRuntimeException: Cannot delete the following users: [username].
These users have left the organisation. We've tried removing them manually from the SQL repository, but still the error persists. Can anybody help?
Cheersuser964802 wrote:
Hi
We are trying to do an Security groups import using LCM, but getting the following errors and the accessing permissions are not updating.
Errors occured during syncrhonization: [com.hyperion.planning.HspRuntimeException: Cannot delete the following users: [username]., com.hyperion.planning.HspRuntimeException: Cannot delete the following users: [username].
These users have left the organisation. We've tried removing them manually from the SQL repository, but still the error persists. Can anybody help?
CheersWhen you say you manually tried to remove the user from the repository what did you do.
Cheers
John
http://john-goodwin.blogspot.com/ -
Can't login after deleting a standard user on directory utility.
My laptop was rebooted in an apple service center, they made a user account for me to use. I backed up my old user with migration using time machine. I changed the administrator to my old user account and tried to delete the other user but it kept on returning. After searching on how to delete user, I found a tutorial that promted me to delete that account using the directory utility found in Systems/Library/CoreServices.
When I tried to log in again, my computer can't find the administrator user. The log in screen is empty and when I type the admin name and password, it would just load and nothing. On the password box, the little circle would just go round and round. Please help!Hi RHermann,
I have some question.
Does the user use a network account for login and how many users are affected by this problem?
Did that happened with a local user account on the same PC, too?
Which OS is running on your PC? Windows 7 64 Bit?
Which server system do you use for the User server?
Do you get any problem reports if you login after uninstall DIAdem?
Can you tell me which HW you use? Dell HP …
I hope that information will make it possible to detect your problem. :-) -
Ive somehow managed to delete a complete user profile. Is it possible to retrieve the information?
Try this:
iTunes: Finding lost media and downloads
Also go to iTunes>Preferences>Advanced and see if the it posint to where your music is located. -
Can't create, delete or edit users in /LDAPv3/127.0.0.1 via WGM
Hi guys,
I have followed Mike Bombiches guide to 'Leveraging AD on Mac OSX.' All was fine yesterday...
But today I cannot create, delete or edit users in the OD Directory. The New User/Group etc.. icons are greyed out... And yes I am authenticated...
Any ideas?Check the logs.
Also use dscl for authenticated reading and writing. Its error reporting might be easier to corelate. See man dscl.
HTH
-Ralph -
Sales oportunities can be deleted by all users
Hello,
In the Sales opportunities can be deleted by all users. I found a note
(989706)and it says that the problem will be fixed in a patch.
Customer had patch 12 and he upgrade to patch 31 and the issue continues,
I would like to know when the issue will be fixed or if there is another
way to solve it.
My customer tell me that the Version 6.2 cant delete these sales oportunities but now with the Version 6.8 PL 12 you can, i want to post a suggestion for applying this functionality
SAP Message: 692408
Regards David Almazan
XAMAI Grupo SCANDAThere is a "shared" folder that will do this if you alias to the users desktops.
Macintosh HD/Users/Shared.
You could create an "admin" folder within that.
Otherwise each user will have their own Desktop folder created at the time of account creation. You could in theory have a local admin Desktop folder, open up permissions and place an alias in all the users differing Desktop folders to that folder. But this would act like the Shared folder anyway.
Maybe you are looking for
-
Badi in standard tranction BP in CRM module
Hi, i have to impliment badi in tranction BP, for field postal code and city i have to valdidate this 2 fields can u help me to know which badi i have to use and in which interface i have to use this, thanks, Tanveer
-
Please help me i don't know what to do and it's getting fustrating
-
Special procurement key 65 in MRP view.
Hi gurus, I have two plants A & B. A = manufaturing plant. B = planning plant. In plant A, we have maintained special procurement key as 65(withdrawl from alt.plant B) In plant B, we have maintained special procurement key as 55 (production in anothe
-
PageMaker 7.0 file and InDesign 9
Hello, I am new to InDesign. I just downloaded a Trial version of InDesign and it's version 9. I was unable to open any of my PM 7.0 documents with ID 9. I have been reading this forum and everyone said they can open PM docs with ID 6. How about ID 9
-
Provide ABAP statement used in HR Extractor
Hello All, I am extracting data by enhancing 0EMPLOYEE_ATTR extractor, using database tables PA0002, PA9001 (Custom infotype) and PA0006. But the logic does not take care of time intervals that are overlapping. so the data coming looks inconsistent.