HEEELLPP - Deleted employee data, while deleting applicant with same ID

Hello,
I need help solving a problem created in payments. We deleted all internal applicant data on our base, using PU90 through LSMW. The problem with this transaction is that it is based on PU00. So, the program deleted all records in PTQUODED as it didn't check if the Personnel Id wasn't an employee.
Now I need to replace data and we are trying to use database backup.
Any other suggestions? Is there any other employee table that could be deleted with the applicant's infotypes?
Thanks,
Leonardo

https://forums.sdn.sap.com/click.jspa?searchID=16777547&messageID=5847814

Similar Messages

  • SQL 2008 how to compare & identify data among 2 tables with same structure ?

    Hello is there a TSQL way of comparing row by row for example comparing DateTimeStamp field in 2 separate tables with same structure in identifying if it's data was changed (If Table1.DateField > Table2.DateField THEN UPDATE it's entire row to match it's
    corresponding Table1 row.) ?
    Probably thinking would need a cursor to loop through or are there other better ways via TSQL ?
    Thanks in advance.

    Hi,
    I am assuming you have a PRIMARY KEY field or a UNIQUE field in both tables, which you should!
    You can do this using "UPDATE with INNER JOIN". (SQL Server – Update Table with INNER JOIN)
    Working example:
    USE [TestDatabase]
    GO
    /* Create Temp Tables */
    CREATE TABLE [dbo].[Table1]
    [ID] INT
    ,[Name] VARCHAR(10)
    ,[ModifyDate] DATETIME
    CREATE TABLE [dbo].[Table2]
    [ID] INT
    ,[Name] VARCHAR(10)
    ,[ModifyDate] DATETIME
    GO
    INSERT INTO [dbo].[Table1] ([ID], [Name], [ModifyDate]) VALUES (1, 'Vishal', GETDATE())
    INSERT INTO [dbo].[Table2] ([ID], [Name], [ModifyDate]) VALUES (1, 'Gajjar', GETDATE() + 1)
    GO
    SELECT [ID], [Name], [ModifyDate] FROM [dbo].[Table1]
    SELECT [ID], [Name], [ModifyDate] FROM [dbo].[Table2]
    GO
    UPDATE T1
    SET T1.[Name] = T2.[Name]
    FROM [dbo].[Table1] T1
    INNER JOIN [dbo].[Table2] T2 ON T1.[ID] = T2.[ID] /* Join on Key field */
    WHERE T2.[ModifyDate] > T1.[ModifyDate] /* Update criteria */
    GO
    /* CleanUp - Drop Tables
    DROP TABLE [dbo].[Table1], [dbo].[Table2]
    This Updates Table1 with latest values from Table2, You need to change the UPDATE statement for your scenario.
    - Vishal
    SqlAndMe.com

  • Error while uploading document with same name in Document library

    Hi,
    Whenever I try to upload document with same name in Document library it throws an error. I know its a default behavior but is there any way so that I can upload documents with same name or can we append some unique id with title of the document?
    Please suggest.
    Thanks

    No, unfortunately this is not possible. SharePoint treats the file name as the primary key identifier for a document so if you try to upload a second document with the same name it will assume this is a new version of the file. If you have versioning enabled
    on the document library, it will add this as a new version. If not, it will overwrite the original file with the new one.
    If you need two documents with the same name, you will have to either place them in different folders within a document library or in different document libraries.
    http://stackoverflow.com/questions/11894968/uploading-documents-with-same-name-to-sharepoint-2010
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • New Column Still Defaulting To Value From Deleted Column With Same Name

    This is strange. I had a managed metadata column called "Document Category" attached to multiple content types and set to a default value (different in each library). Then I deleted the column (all instances from libraries and references from
    content types as well), and created a new site column with the same name, but a Choice field instead. The libraries that had a default value for the original column, are still populating new documents using the original default value, and it's showing up as
    something like 88;#Hospital Correspondence|4b1e8da6-8653-492a-3e45e6c56c38 . The column is still a choice field, so I don't even know why it allows this value. Does anyone know why this is happening or how to fix it?

    Hi  Vince,
    Thank you very much for sharing your solution here. It  would be helpful for others who encounter similar issue.
    Thanks again,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Ipod synced with old pc now dead, can I keep data while syncing it with new Mac?

    I have an old iPod with 8 gb music on it. It was previously synced with a PC whose HD is now dead, so the iPod is the only place where the data is still available. The iPod was not attached to an Apple ID back then. Can I attach it now to my Apple ID, synch it with my new Mac Book and still keep the data on it?
    Thank you in advance

    Yes you can

  • Error in sharepoint external list while creating record with same id (this id is primary key)

    Hi,
    I have created one external content type in sharepoint designer to insert/update/delete table data.
    This table contains Primary key constraint.
    Then I have added this external content type to Sharepoint out of box List.
    Insert/Update/Delete is working fine. But when I am trying to insert record with the same id which is already exist in table, page crashed and its giving me following error:
    “Violation of PRIMARY KEY constraint 'PK_tbl_Accounts'. Cannot insert duplicate key in object 'dbo.tbl_Accounts'.
    The duplicate key value is (1). The statement has been terminated.”
    So I want to handle this exception. Can we show any popup message to hide this error?
    Thanks & Regards
    Rajni

    Avoid entering of primary from form  if possible.
    if not try to customize the new form with infopath and place your custom logic there.
    http://lightningtools.com/uncategorized/modifying-external-list-forms-with-infopath-2010/
    http://salnikan.wordpress.com/2011/07/26/prevention-of-duplicate-entries-based-on-two-or-more-columns-in-a-sharepoint-list/
    Bala

  • Merging data from 2 schemas with same object structure into one schema

    Hi
    I want to merge data from 2 schemas in different environments ( say test1 and test 2) into 1 schema ( say Test_final) for testing. Both these schemas are having same structure, the data can be same or different.
    What I did is that I took an export of schema on Test1 and then import it into Test_final. Now I need to merge/append data from Test2 into Test_final.
    I can not merge the data with import due to primary key constraints and also import doesnt support this feature, so I tried SQL*Loader to "append" the data by using sequence to generate Primary key.
    But my worries are that since new primary keys are generated so foreign keys will become invalidated and the data will not be consistent.
    Is there any other way to do this task..
    Regards
    Raman

    This approach might be better...
    create table test_final
    as
    select *
    from schema1.test1
    insert into test_final
    select t2.* from schema2.test1 ,  test_final tf
    where t2.pk != tf.pk
    /...assuming duplicate primary keys mean duplicate records. If that assumption is not the case then you have a more complex data migration exercise on your hands and you need to figure out some rules to determine which version of the data takes precedence.
    Cheers, APC

  • Retrieving Data from different Tables with same tuple name

    Hi,
    I am made the following query from different tables. A tuple "name" is appearing in some tables. So when I run the qiery in a Java class, it delivers the same result of c.name, bpl.name and p.name. The result of c.name is correct, but the other 2 names are overwritten. It works perfect in a postgreSql query tool. How can I correct it, plz?
    SELECT c.ad_client_id, c.name, o.c_order_id, o.ref_order_id, bp.name, bpl.name, o.dateordered, o.datepromised, od.c_orderline_id,p.m_product_id,p.name, cur.iso_code, od.qtyordered
    FROM adempiere.ad_client c, adempiere.c_order o, adempiere.c_orderline od, adempiere.c_bpartner bp, adempiere.m_product p, adempiere.c_bpartner_location bpl, adempiere.c_currency cur
    WHERE c.ad_client_id =11 and c.ad_client_id = o.ad_client_id and bp.c_bpartner_id=o.c_bpartner_id and o.c_order_id = od.c_order_id and od.m_product_id = p.m_product_id and o.c_bpartner_location_id =bpl.c_bpartner_location_id and o.c_currency_id=cur.c_currency_id;
    Cheers

    Hi,
    create alias, if u have similar field names as below. Use the alias name (rs.getString("cname") and rs.getString("bpname") and so on ) to retrive data.
    SELECT c.ad_client_id, c.name as cname, o.c_order_id, o.ref_order_id, bp.name as bpname, bpl.name as bplname, o.dateordered, o.datepromised, od.c_orderline_id,p.m_product_id,p.name as pname, cur.iso_code, od.qtyordered
    FROM adempiere.ad_client c, adempiere.c_order o, adempiere.c_orderline od, adempiere.c_bpartner bp, adempiere.m_product p, adempiere.c_bpartner_location bpl, adempiere.c_currency cur
    WHERE c.ad_client_id =11 and c.ad_client_id = o.ad_client_id and bp.c_bpartner_id=o.c_bpartner_id and o.c_order_id = od.c_order_id and od.m_product_id = p.m_product_id and o.c_bpartner_location_id =bpl.c_bpartner_location_id and o.c_currency_id=cur.c_currency_id;Regards,
    Ram

  • Capturing Data of Multiple textbox with same name

    HI,
    I have a table composed on View Object. I am displaying two attributes (Description, name) of that VO. The VO returns 11 rows thus displaying 11 textboxes. On Controller side i need to update the values of these textboxes to database. Can anyone help me out how can i achieve this.
    Thanks in advance.

    Hi,
    in order to do DML operation on DB tables, you should define first "Entity Objects" and then the VO should be based on the EO.
    In this way when you update the value related to the VO they are setted for the EO and then in the DB tables.
    See at "OA Framework Developer's Guide" Chapter 3.
    Bye
    Raffy

  • Select three tables data with Same where condition

    Hi i want sum data in three tables with same where condition. how can i do this code very simple.
    SELECT SUM(SIGNA) FROM dbo.tblPLAG 
    WHERE   VERSION='ACTUAL' AND STATS='ST_Z010'
    AND FACILITY='FA_2003'
    AND  TD IN  ( SELECT TIMEID FROM Time   WHERE   ID BETWEEN 
     @YEAR+'.'+(SELECT RIGHT ('000'+ CAST (@PERIOD-6 AS varchar), 3)) 
     AND   
    @YEAR +'.'+(SELECT RIGHT ('000'+ CAST (@PERIOD AS varchar), 3)))
       

    Try following
    SELECT SUM(t1.SIGNA) + sum(t2.SIGNA) + sum(t3.SIGNA) and you query, it will add the SUMs of each table.. hopefully it will work

  • Report RPUFIXDS deleting employee data

    Dear Experts,
    I have a scenario wherein the report RPUFIXDS is deleting data for employees linked to the same CP.
    As per the standard documentation,
    Personnel numbers 1 and 2 have Molga 10 (USA) and belong to the same person (CP). Therefore, certain infotypes (0002, 0006, 0009) are grouped for these personnel numbers. If data exists in these infotypes for pernr 1 but not for pernr 2, there is an inconsistency. This inconsistency is repaired by report RPUFIXDS as follows:
    1. If the personnel numbers are repaired in the sequence 1, 2, the data from the grouped infotypes of pernr 1 is copied to the grouped infotypes of pernr 2.
    2. If the personnel numbers are repaired in the sequence 2, 1, the grouped infotypes of pernr 1 are deleted.
    My scenario involves a personnel being converted from a contractor to an employee wherein the contractor and employee assignments are separate, within the same country and are linked to each other via the same CP. When I try to process employee pernr which has IT0002, IT0006 and IT0009 data maintained, through the report, it should, as per the above logic, update the contractor pernr with the relevant data for the grouped infotypes. However, the report deletes the data in IT0002, IT0006 and IT0009 for the employee pernr instead of updating the contractor pernr details. I've observed many such cases wherein data is being deleted when it should actually be updated as per report logic.
    I have checked the standard documentation thoroughly and notes 783499, 1822293 and 1447867 and was unable to find any information pertaining to my case.
    I would be very greatful if you could shed some light on this scenario and the behaviour of the report herein.
    Thank you,
    Mayank

    The note given by stuart will explain this in detail to add further, Please read the reports documentation in Se38, as it does list why it deletes the data and its no way knowing in report output to prevent BADI needs to be implemented mentioned again in reports doc check here http://scn.sap.com/thread/3326684 -  recommend solution is to implement a customer-own BADI implementation of BADI HRPA_SHARING_REPOR in order to determine the correct repair sequence (i.e. determine the leading PERNR with consistent data) and to avoid that a PERNR without data is chosen as leading PERNR You can use the BADI HRPA_SHARING_REPOR to change the sequence of personnel numbers that should be repaired by the report, ie give the preference to the contractors, we had a similar issue and did it by ordering them correctly. Hope it helps/

  • Apple Senior tech lady deleted all my external drive data while sorting out other problem. How can I restore all my photos , music etc back to my Mac Pro?(I am so scared, I haven't connected to sync! Please help)

    Apple Senior tech lady deleted all my external drive data while sorting out other problem. How can I restore all my photos , music etc back to my Mac Pro?(I am so scared, I haven't connected iPhone to sync! Please help)

    It was tele tech. I couldn't open my Page Numbers etc. Frist tech chat idiot - following dumping few things in bin, asked me yo upgrade to Yosemite. But the problem still persists. This morning I was asked to do it via telephone and like yesterday, after wasting 20 min, I was put to this apparent Tech Queen ( my foot!). She eventually decided to reinstall  Yosemite asked me to connect my external drive while I connected to her. She was moving cursor asking me to move files and delete and I followed her like a dummy. It took 3/4 hours and she called me 3 times once the lengthy process was completed. I suspected from the beginng for the fact that why should be asking me to click all my backup from the very beginning! Eventually she said I deleted... Or someone else or may be my children ! It was a blatant lie. I run my small business from home and I was simply staying in front of the Mac whole day! Children were at school. Then she said I must have used another computer! I only have laptop and the iPad. I will talk to their manager first thing in the morning. In the mean time please let me know as to how can I transfer photos, music etc back to my laptop from my Iphone and IPad .? I am will connect to laptop as I am worried the new BLANK iPhoto may supersede iphone/iPad stuff? Will it? Please let me know. I am not a very tech savvy person. My son who could help me, is in Manchester Uni and Inam in London.

  • Recive deleted pictures with out icloud or any back up from last restore date please help need to find a very important picture

    i have problems with spelling
    There surely has to be a way to recive my pictures from deleted memory on my iphone 4
    i deleted my pictures from this weekend and need to view them but i deleted them with out having icloud or any back up app
    is there ANY one who know's how to get around this there has to be a way like a computer like a restore factor settings that lets you go back to the last time you took a picture
    Please Help Driving me insane

    Richie K wrote:
    im still not conviced i might go to the iphone store tomorrow and see there has to be a way thank you for you help if you come across anything like this please let me know
    Good luck, but they will tell you the same thing that anyone here will tell you.
    Unless the device was backed up (via iTunes or iCloud) after the pictures were taken but prior to deleting them on the device, they are gone.  There is no way to recover them once deleted without a backup.

  • How to delete one existing file before uploading a file with same name?

    Hello everybody.
    I am uploading a file to Tomcat server. But, the problem is:
    i want to delete an existing file in the server, if i upload a fresh file with same name. In other words, "First check for the file with the same name in the server. If it exists, then delete existing file in the server and upload fresh one". If such file doesnot exist, then upload the file to server.
    I have given deleteonExit()
    but, for the first time when user is uploading, i want to check for the file with same name in the server.
    i am pasting the code here. please help:
    <!-- uploading the file -->
    <%
    String contentType = request.getContentType();
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    byte dataBytes[] = new byte[formDataLength];
    int byteRead = 0;
    int totalBytesRead = 0;
    while (totalBytesRead < formDataLength)
    byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
    totalBytesRead += byteRead;
    String contextRootPath = this.getServletContext().getRealPath("/");
    contextRootPath=contextRootPath.concat("uploaded");
    String file = new String(dataBytes);
    String saveFile = file.substring(file.indexOf("filename=\"") + 10);
    saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
    saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
    // Create a directory; all ancestor directories must exist
    File outputFile = new File(contextRootPath, saveFile);
    var=outputFile.getPath();
    outputFile.createNewFile();
    int lastIndex = contentType.lastIndexOf("=");
    String boundary = contentType.substring(lastIndex + 1,contentType.length());
    int pos;
    pos = file.indexOf("filename=\"");
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    int boundaryLocation = file.indexOf(boundary, pos) - 4;
    int startPos = ((file.substring(0, pos)).getBytes()).length;
    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
    FileOutputStream fileOut = new FileOutputStream(outputFile);
    fileOut.write(dataBytes, startPos, (endPos - startPos));
    fileOut.flush();
    fileOut.close();
    outputFile.deleteOnExit();
    %>Please help. Thanks for taking time.
    Regards,
    Ashvini

    Thank you MartinHilpert,
    I have one more doubt,
    I am uploading the file to one folder called "uploaded". Before uploading a fresh file, i want to delete all existing files in that folder. IS that possible ?? If yes, can you please tell me how to do that ??
    Regards, Thanks for your time.
    Ashlvini

  • Real time synchronisation of sap hr employee data with LDAP

    Hi friends,
    I wanted to synchronize sap hr employee data with ldap. I have written a abap program for the same which is using ldap connector interface for creation/modification/deletion of employees. I am planning to put this as a scheduled job.
    But I want to do it  in real time i.e. when the employee is getting created/modified/deleted in sap hr, my program should receive all the values and do the changes in ldap at the same time.
    What all options do i have to do this?
    I am new to sap hr.
    Regards,
    Nilz

    Hi Nilesh
    U can take help of Standard Events in SAP.
    Go to Tcode SWELS.Then Activate Event trace.
    Go and do creation/modification/deletion for employees and Check which allevents are getting triggered in Tcode SWEL.
    This might give U an Initial idea how to go about this.
    ~BiSu

Maybe you are looking for

  • Windows 8.1 and Desktop IE11 | Youtube fullscreen mode crashing on Flashplayer

    Hello I have problem with flashplayer on desktop IE11. When i try to toogle between normal size mode video on youtube to fullscreen my IE11 crash on flashplayer problem. I have flashplayer add-on enabled and ActiveX filtering too.  And even your webs

  • Windows 7 with 11g ODBC install confusion...

    Hi all, Ok, I am just a little confused. All I need to do is get ODBC running under Windows 7. I figured this would be easy, but apparently not. I am trying to install Oracle 11g 64 bit on a new Win 7 computer. This is to set up a "typical" end user

  • MSI 760GMA-P34 (FX) Problems

    Hi i have this is issue. I recently made a new pc and i have a problem from the start. When i run the system and getting into windows the pc will stuck making some noise from speaker and then restarts witout blue screen appearance even if i have chec

  • Import Transaction Data - Duplicate records

    Hi, I need to upload a file of transaction data into BPC using data manager package. I've done the transformation and conversion files which validate successfully on a small data set. When I try to upload the data file using the real life file, it fa

  • Nokia N97 Mini Outlook meeting problems

    Hello, On my old HTC windowsphone  when i got invite to a meeting in outlook i could see on my phone what ppl are also invited / are joining the meeting. For some reason i cant find this on my new N97 Mini. Is this not supported by this phone or is t