Stop user from Deleting Staffing Data

Hi Friends,
We are implementing cProjects.  We need to control Deleting of Staffing from a project, because the deletion of staffing record is a hard delete.  The data is removed from the staffing tables of cProjects.  So if someone is staffed, data saved and then is deleted we are not able to capture this information as who was staffed earlier whose record is no more now.
When some user changes the staffing dates, we are able to capture this in the BADI DPR_ATTRIBUTES, as the check method gives us the old attributes of the record as well as the new one that has been changed.
But if some staffing is deleted, the DPR_ATTRIBUTES does not indicates
through some variable that delete action has been performed for a
record.
Request you to suggest which BADI shall be implemented to capture
Delete staffing data event that brings in the role that is being
deleted such that we can stop the record from deleting in case we want to do so.
We are very near to go-live and have already missed two deadlines till
date, so request you all to help.
Regards, Sandeep

Hi,
the BAdI DPR_ATTRIBUTES also has a method called DELETE_CHECK, this is called when staffing is deleted (called in class CL_DPR_PARTICIPANT and method DELETE_CHECK), so you could implement your own logic here.
Regards,
Silvia

Similar Messages

  • Blocking users from deleting chat history

    I am a system admin and our users are suing skype IM. Some users are using the skype IM for their personal use. We want to view all the chat history of all the skype users. So, I want to block the users from deleting the skype chat history.

    Any chance anyone from Skype can respond to this??  The lacking control over skype as a system admin is the main reason Skype is lacking adoption in the enterprise.  We need a simple chat and video call solution both internally and externally but Skype might be out automatically if there is no way to control the chat history.  Primarily we need to stop users from deleting the history, and the ability to retrieve the history remotely.

  • Prevent user from deleting someone else data

    I have a table
    create table T(
    infoID number primary key,
    info varchar2(4000),
    user varchar2(1)
    and users a,b,c with object priveleges on table T.
    What is the best way to prevent user from deleting someone else data?
    1. Create a view for each user to interacat with ( where user='a') and revoke privileges from table T.
    2. Use procedures or trigers to catch a bad user.
    3. ?

    Leo is certainly correct that VPD will solve the issue you have described. however another option also exists without the need to create a separate view for each user (as you described) or the use of VPD, the option would be to do something like the following.
    create user ownera identified by ownera;
    create user usera identified by usera;
    create user userb identified by userb;
    create user userc identified by userc;
    grant connect, resource to ownera;
    grant create view to ownera;
    grant connect to usera, userb, userc;
    conn ownera/ownera
    create table mytable ( id number primary key,
    userid varchar2(8) not null, mod_date date not null, text varchar2 (100));
    create sequence mytable_seq;
    create or replace trigger biu_mytable_trg
    before insert or update on mytable
    for each row
    begin
         select mytable_seq.nextval into :new.id from dual;
         :new.userid := user;
         :new.mod_date := sysdate;
    end;
    create or replace view v_mytable as
    select * from mytable where userid=user;
    grant select, insert, update, delete on v_mytable to usera, userb, userc;
    try inserting and selecting as the various userX users.
    Good luck.

  • How to restrict the user(Schema) from deleting the data from a table

    Hi All,
    I have scenario here.
    I want to know how to restrict a user(Schema) from deleting the values from a table created in the same schema.
    Below is the example.
    I have created a table employee in abc schema which has two values.
    EMPLOYEE
    ABC
    XYZ
    In the above scenario the abc user can only fire select query on the EMPLOYEE table.
    SELECT * FROM EMPLOYEE;
    He should not be able to use any other DML commands on that table.
    If he uses then Insufficient privileges error should be thrown.
    Can anyone please help me out on this.

    Hi,
    kumar0828 wrote:
    Hi Frank,
    Thanks for the reply.
    Can you please elaborate on how to add policies for a table for just firing a select DML statement on table.See the SQL Packages and Types manual first. It has examples. You can also search the web for examples. This is sometimes called "Virtual Private Database" or VPD.
    If you have problems, post a specific question here. Include CREATE TABLE and INSERT statements to create a table as it exists before the policies go into effect, the PL/SQL code to create the policies, and additonal DML statements that will be affected by the policies. Show what the table should contain after each of those DML statements.
    Always say which version of Oracle you're using. Confirm that you have Enterprise Edition.
    See the forum FAQ {message:id=9360002}
    The basic idea behind row-level security is that it generates a string that is automatically added to SELECT and/or DML statement WHERE clauses. For example, if user ABC is only allowed to query a table on Sunday, then you might write a function that returns the string
    USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'So whenever any user says
    SELECT  *
    FROM    table_x
    ;what actually runs is:
    SELECT  *
    FROM    table_x
    WHERE   USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'
    ;If you want to prevent any user from deleting rows, then the policy function can return just this string
    0 = 1Then, if somone says
    DELETE  employee
    ;what actually gets run is
    DELETE  employee
    WHERE   0 = 1
    ;No error will be raised, but no rows will be deleted.
    Once again, it would be simpler, more efficient, more robust and easier to maintain if you just created the table in a different schema, and not give DELETE privileges.
    Edited by: Frank Kulash on Nov 2, 2012 10:26 AM
    I just saw the previous response, which makes some additional good points (e.g., a user can always TRUNCATE his own tables). ALso, if user ABC applies a security policy to the table, then user ABC can also remove the policy, so if you really want to prevent user ABC from deleting rows, no matter how hard the user tries, then you need to create the policies in a different schema. If you're creating things in a different schema, then you might as well create the table in a different schema.

  • Stopping user from making in app purchases on a live iPhone app

    Hi
                   I am trying to stop user from making in app purchases on a live iPhone app. What i have done is i made  Cleared for Sale: No in itunesconnect product id and Status is changed to Status: Developer Removed from Sale. But still i am able to do in app purchase in the app. Any idea why is it? anything i should do? Last Thureday night i have done this changes in itunes connect. i don't want to delete the product id from the itunesconnect.
    Thanks
    Anish

    Hey Michael,
    Is that the only way to stop in app purchase? delete the product ids from the itunes connect?
    Thanks
    Anish

  • Stopping students from deleting files from TC

    I'm setting up a TC for a small film school. I'm hoping for several questions to be answered here, so forgive me if this is a large topic.
    Issue 1: Students deleting files.
    I'm hoping to put the days lesson plans on the TC. This way, students can come into class and download the days required media. My concern is a student might accidently delete the footage from the TC before everyone gets to download it. Is there a way to restrict certain users from deleting stuff on the TC? I've fooled around with folder/file Permissions, but have had no luck.
    Issue 2: Password Protected Folders
    I'm hoping for the students to be able to store completed projects on the TC so they can make a "Best Of" DVD at the end of the term. I would like each of them to have a password protected folder to limit who can copy data into the folder. The only thing I have found thus far is a way to set up a .dmg file. This would work fine, however other students could still delete the .dmg, resulting in a mad student, an expelled student, and a frustrated instructor. I guess this is the same as issue 1, just a different scenario.
    Any advice?

    Hi Jim,
    I was just scrolling around trying to find some answers to issues I'm having with TC and your post caught my eye. I work with a new company out of Palo Alto Ca. called Aspen Learning. We have a new classroom server that offers learning management tools, web 2.0 collaborative tools, and also teacher and student file storage. Please visit our website www.aspenlearning.com, and feel free to contact me directly at [email protected] It may be a great solution for your needs.
    Take care,
    Tony

  • Restricting the user from deleting a personel number

    Hi All,
    Can anyone help me in restricting the user from deleting a personel number.
    Thanks & regards,
    Venkat

    Hi Venkat,
    The utility menu will ultimately calls to PU00 so it doesnt matter , system wont allow him to delet.
    You can try it out in quality if you want.
    Award points if useful
    Regards,
    Bhupesh Wankar

  • How to secure the users from deleting the work items

    Hi all,
    I have a question like this.........whether we could secure the users from deleting the work items by someone in the Project and also assigning a specific user to allow them to delete the idoc. 
    Please help me on this as this is critical.........
    Thanks in advance
    Chakri

    One of t he possible way is, ask the basis team to create users as Service Users and you can determine whether the login user is whether a service or dialog user  by using the a bapi BAPI_USER_GET_DETAIL under the exporting parameter logondata with field USRTYP where if the logged in user is Service user then this field will be populated as S if the user is a dialog user then it will be populated as A.
    Now in more efficient way of fixing this is get the list of users for whom you donot want to give the authorization of deleting workitems and assign the appropriate role for all the listed users...
    for roles and authorizations i hope the basis team is the right team to consult....

  • Please,I want to stop users from visiting particular wensites while connected to the internet. How do I configure Firefox to automatically stop users from visiting such dangerous sites?

    Please,I want to stop users from visiting particular wensites while connected to the internet. How do I configure Firefox to automatically stop users from visiting such dangerous sites?

    Thanks, Ronda! I haven't been able to try your suggestion because I fried my router! So I need to get a new wireless router before proceeding.
    (I may start a new thread about getting a new router, but I will look for answers first to my questions and only start one if I cannot find answers.)
    After I get a new router, I will try what you suggested and report back here.

  • How to prevent certain Users from deleting a resource while in the project?

    We are currently using P6.2 client; We are setting up a new resource dictionary and have been searching to find a way to prevent certain users from deleting resources while in the project. Is there a way to do that? I have created Global profiles and Project profiles under the Admin security profile and have tried clicking off of rights to delete a resource but when I log into as that user I can still delete the resource. Please Help!

    Are you talking about preventing users from deleting resource assignments within a project? Or preventing them from deleting resources from the global resource dictionary?
    For global resource dictionary in Global Profile you would turn off:
    -Delete Resources
    And likely:
    -Add resources
    -Edit Resources
    -Edit Roles
    -Edit Resource Calendars
    For resource assignments on activities in Project Profiles you would turn off:
    -Add/Edit Project Activities Except Relationship
    Note: this will disable more then just the ability to alter resource assignments.

  • Prevent user from deleting rows from all tables in his own schema

    Hi,
    How can I prevent user from deleting rows in all tables in his own schema.
    I want the user to not able to delete rows from any existing or new tables that might be added in the future.
    The user does not have the "DELETE ANY TABLE" system privilege.
    Please advise.
    Thanks.

    Nowadays, I'd also avoid triggers (if possible).
    Sometimes, when I daydream, I'm rewriting a few applications that I've contributed to as a newbie, and I'm very ashamed of it nowadays.
    From what I've experienced, in retrospective, the emphasis on teaching 'Oracle stuff' has been lying far too much on PL/SQL row-by-row oriented processing instead of letting Oracle 'crunch' sets at once.
    Most of my debugging hours ended up in discovering one or more database triggers 'doing stuff automagically'.
    Another nice blogpost: http://rwijk.blogspot.com/2007/09/database-triggers-are-evil.html
    Regarding OP's question:
    I would just rethink/reconsider this requirement completely.
    Correctly implementing privileges and roles seems the best way to go, yes.
    Triggers? Nah...
    pre-post-edit, noticed thread got updated just before posting
    Don't know what you mean with 'namedropping', but I think it's legitimate to point other readers to interesting Oracle related opinions/articles that do have a technical background and lots of interesting examples.
    post dreaded OTN outage edit (from here)
    Again: I would just rethink/reconsider this requirement completely.
    Both trigger/vpd are being used to hide a design flaw here.

  • How to restrict a user from deleting a PO

    Dear All,
    I have to restrict some users from deleting a line item in PO. They will be authorised to create & change the PO but they must not be able to delete the line item.
    Further it would be more helpful if it is possible to restrict them from deleting one perticular type of  PO(ex-Capex PO). They can change a capex PO but can not delete it.
    Any of the answars will be highly appreaciated.
    Regards
    Rutabhadra Panda

    Hello,
    Speak to your basis guy, put if you have created Capex PO as a particular document type, then maintain authorisation object M_BEST_BSA (Document Type in Purchase Order) and activity 06 delete.
    You may find that delete is still possible through activity 02 change, so you might need to maintain different roles depending on what you need.
    Thanks.

  • WRV54V how to filter or stop users from downloading videos

    I don't know how to configure this router to stop users from downloading video like from Google, Torren. I've heard people is using DD-WRT firmware for some linksys routers, but not with this model. I don't want to stop my users from browsing internet, read news, social networking but they watch online video and download stuffs like 10Gbs a day. It doesn't work for me. Thanks

    You can block the video files by managing the firewall on the computer in such way that the video extension files would be blocked....

  • Stop iCloud from deleting trash after 30 days

    Well I think the headline speaks for it self. I know this question has been asked a few times but I haven't yet found a solution.
    I am using my iCloud mail on my Mac via. Apples mail program, blackberry phone and iPad.
    How do I stop iCloud from deleting the trash folder. In my mail on my Mac I have checked in "move deleted messages to trash", "keep deleted messages on the server" and "deleted messages after:" is set to never in the drop down
    Does everyone have a solution for this?
    Cheers
    Thomas

    AFAIK iCloud automatically deletes emails - I was under the impression it's 7 days - and this will over-ride any setting you have in Mail. There's nothing you can do about this, other than to move the messages in question to another folder which you create. They will stay there until you choose to delete them. The Trash folder isn't really intended as a place to store messages - it's there so that you have time to recover anything which got deleted in error. If you want to keep messages you should keep them in some other folder.

  • TS4002 stop email from deletion when deleted on another device

    how to stop email from deletion when deleted on another device.

    With IMAP - the email protocol the iCloud uses - the messages live on the server and are read from there by your devices. Think of it as being like webmail and it makes sense. Therefore when your wife deletes a message she is actually deleting it from the server, which is why you see it as deleted. You can't alter this; it's inherent in the system.
    The only workaround is to sort out a method whereby emails don't get deleted until both of you have seen them - for example she could move them to another folder and you could then read them there and delete them (so their presence in that folder always means that the other person has seen them).

Maybe you are looking for

  • Is there a way to create user logins or some other way to ...

    Is there a way to create user logins or some other grouping for a set of applications to use (memory) resources optimally -- for example only mail and Safari and Word in one grouping and another for Safari and an audio recording application, etc.?

  • Downloading videos from a disk.

    Okay so I tried downloading this video that I made on another MacBook on to my Macbook, so I put it in then the DVD player comes up and goes to full screen and I can't get out of it without ejecting the disk. So, how do I go about downloading the vid

  • Leopard & Jpegs

    Has anyone had a problem with viewing Jpegs in Preview or any other app ??? There are some jpegs that I can't view with Preview or Photoshop. They show as icons in finder but when I click on them they show as a single line of pixels in preview. Any c

  • Very simple question for a newb

    I'm working with the 3d camera but somehow when I'm moving in my 3d space, the camera place moves. I'm not sure what im doing wrong to move the camera. Anyway, how can I move my camera and keyframes together from the "Top" view? I've done it before,

  • Case Management - table linking activities and cases

    Hi. I need to create a report in CRM that shows cases and the service orders that are linked to them. I can get the case information from table CRMD_CMG_CASE_AT for example. I can get the service order information from table CRMD_ORDERADM_H. But how