Want to delete the records from Standard Infotype where PERNR is Blank

HI Experts,
I have a simple problem.
There are few blank PERNRs are in infotypes PA0001 and PA0002 in Production.I have to remove them.
These blank PERNRs records are populated there because of some mistake.
This can not be done in production.
I have checked many FMs ,but couldnt find the correct one.
Now I want to use a simple query to delete the records.Please tell me the query to delete the records.
First i used to read these empty records but failed to do so by the following query.
select * from PA0001 into table it_pa0001
     where PERNR = ' ' .
This query is not reading any record.
I used PERNR is NULL then also it is not working.I used other key fields but it is fetching other records then blank PERNRs.
Kindly suggest.
~Sachin

PERNR is key field in all infotypes, while for all FMs which work with infotypes this field is obligatory . Such entry should never come to production. If this happened, this should be removed by some backdoor operation. Direct table record deletion I guess is here the only (though not necessary safely) way of handling that.
Correct query would be
select * from PA0001 into table it_pa0001
where PERNR = '00000000' .
PERNR is of type NUMC 8, so default value is not space but 8 zeros.
Regards
Marcin

Similar Messages

  • I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY WUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ??

    I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??

    Hi Kishore,
    First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
    Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table.

  • How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all a

    How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all albums.  Please help.

    You can't do it directly on the iPad - the new album functionality basically only allows you to copy photos into those new albums, you can't move them. The way that I think of it as working is that you are just creating pointers to the photos in those new albums, so if you then delete the original photo on the iPad you therefore automatically delete all the pointers to it.
    If you want to re-organise your albums then you will need to do it on your computer and then sync those albums over to the iPad

  • HT201302 I have Windows XP laptop. Can I get the photos Saved on the iPad1 iOS4.3 from emails and websites etc. Onto my laptop as backup or in case I want to delete the photos from the iPad?

    I have Windows XP laptop. Can I get the photos Saved on the iPad1 iOS4.3 from emails and websites etc. Onto my laptop as backup or in case I want to delete the photos from the iPad?
    It never seems to synch fully with the laptop?

    Ivon, when you are satisfied that you have successfully imported the new folders to the iPad you can go back (as I have described above) and delete the originals of those you copied out in order to avoid 'duplication' and also save space.
    The method I have described also has advantages over creating new albums within the Photos app on the iPad since it 'duplicates' the photos and only permits the deletion of all so called copies. King_Penguin is correct when he states you can copy out photos originally taken with the iPad etc.
    Alan

  • Can we delete the records from a table, when sqlldr is loading

    Hello All
    We have a table on which we have indexes on some columns.
    This table is populated using the sqlldr. Now I want to delete the seven days old data, in a procedure. I want to know , can I run that procedure, when the sqlldr is loading into that table. Note that, the table has indexes
    Regards

    Hello
    Now we are thinking to create the partition on datetimeinserted, and want to delete the 7 day old partition, How about this? is this going to work? while still direct load of sqlldr is on.
    Regards

  • How to delete the records from custom table???

    My requirement is,
    I have a custom table, assume as ZABC, I have updated this by my custom program, This data having table can be extracted by BI etract program(Assume ZZZ). Here I am not writing any code for extracting data from table to BI extract program, That they will do by BI extract program. But I want to write the code for
    <b>Cleanup of Z table—delete records 30 days after the BI data extractor has run.</b>
    How this is possible suggest me any method having for these???
    Thanks Sanju

    Hell Sanjana,
    Ask your basis people to do the clean up after  30 days. If you want the clean up only to be done 30 days after BI extract has been done, then u need some sort of indicator to say that BI Extract has been done , like  flag and date in a custom table which will be set as soon as extract is done. Then based on that info u need to delete a the records.
    Regards

  • Creating a Trigger for Deleting the records from a parent Table

    I am new to creating Trigger
    We will need several small tables that will be used to store any records that are deleted by the owner of the table. These will likely need a trigger where we would Delete from the parent table and on that Delete populate the child table with the previous record's data.
    Please give me a pseudo code for this
    Thanks
    John
    Edited by: user10750995 on Dec 30, 2008 9:06 AM

    Something like this:
    CREATE OR REPLACE TRIGGER trg_my_table_hist
    AFTER DELETE
    ON my_table
    FOR EACH ROW
    BEGIN
    INSERT INTO Hist_MyTable
    ( column1, column2, ..., DELETION_DATE)
    VALUES
    (:OLD.column1, :OLD.column2, ...., SYSDATE);
    END;
    /My_Table is your main table. When a row is deleted, the trigger will be fired and copy the deleted row to another table called Hist_My_Table. I'm supposing that the history table has all columns as they are defined in main tables plus a column named DELETION_DATE.
    My experience indicates that, probably, it's a good idea maintain update history and the user. But it depends on your requests.
    Regards,
    Miguel

  • I have a pc computer. I downloaded pictures onto my ipad. I want to delete the pictures from my ipad

    I have a hd pc computer with 20 yrs of pictures. I just bought an Ipad. I wanter to put some pictures on the Ipad from the pc. I read Ipad for dummies telling me how easy it is to put pictures on the Ipad. What they didn't say was how hard it is to get them off of the pad. I now have 659 pictures, taking up space on my Ipad.
    If anybody can show  me  step by step deleting these pictures I would be very happy.

    You delete them the same way you put them on your iPad, by connecting your iPad to your computer, opening iTunes, clicking on the name of your iPad in iTunes, click on the Photos tab at the top, unchecking the photos you don't want on your iPad (either uncheck individual folders or to remove them all, uncheck "Sync Photos"), then click Apply at the bottom to sync your iPad.

  • How to delete the records from database table without using work area

    Hi all,
    The purpose of the down program is to delete the entire contents from all the tables. The deletion of the table should be in sorted manner. Is there any other way to write the code more efficiently,
    TABLES: ZFFMCTL_AP, ZFFMHDR_AP, ZFFM_CHANGE_LOG, ZFFMDTL_AR, ZFFMHDR_AR, ZFFMDTL_JV, ZFFMHDR_JV, ZFFMDTL_SKF,ZFFMHDR_SKF,ZFINVOICE_DETAIL, ZFFMMASTER, ZFFMLOGREAD_CLUS, ZFFMCTL.
    DELETE ZFFMCTL_AP.
    IF SY-SUBRC = 0.
    DELETE ZFFMMHDR_AP.
    IF SY-SUBRC = 0.
    DELETE ZFFM_CHANGE_LOG.
    IF SY-SUBRC = 0.
    DELETE ZFFMDTL_AR.
    IF SY-SUBRC = 0.
    DELETE ZFFMHDR_AR.
    IF SY-SUBRC = 0.
    DELETE ZFFMDTL_JV.
    IF SY-SUBRC = 0.
    DELETE ZFFMHDR_JV.
    IF SY-SUBRC = 0.
    DELETE ZFFMDTL_SKF.
    IF SY-SUBRC = 0.
    DELETE ZFFMHDR_SKF.
    IF SY-SUBRC = 0.
    DELETE ZFINVOICE_DETAIL.
    IF SY-SUBRC = 0.
    DELETE ZFFMMASTER.
    IF SY-SUBRC = 0.
    DELETE ZFFMLOGREAD_CLUS.
    IF SY-SUBRC = 0.
    DELETE ZFFMCTL.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    Waiting for response,
    Thanks in advance
    John

    Write this way....
    TABLES: ZFFMCTL_AP, ZFFMHDR_AP, ZFFM_CHANGE_LOG, ZFFMDTL_AR, ZFFMHDR_AR, ZFFMDTL_JV, ZFFMHDR_JV, ZFFMDTL_SKF,ZFFMHDR_SKF,ZFINVOICE_DETAIL, ZFFMMASTER, ZFFMLOGREAD_CLUS, ZFFMCTL.
    DELETE ZFFMCTL_AP.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMMHDR_AP.
    CHECK SY_SUBRC = 0.
    DELETE ZFFM_CHANGE_LOG.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMDTL_AR.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMHDR_AR.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMDTL_JV.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMHDR_JV.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMDTL_SKF.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMHDR_SKF.
    CHECK SY_SUBRC = 0.
    DELETE ZFINVOICE_DETAIL.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMMASTER.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMLOGREAD_CLUS.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMCTL.

  • I have a Iphone 4 and switched to Iphone 4s.  All contacts transferred.  However, I now want to delete the contacts from Iphone 4 and give the phone to someone else.  How can I delete the contacts from the Iphone 4 without deleting from Iphone 4s??

    How can I remove contacts from Iphone 4 without removing contacts from cloud or Iphone 4s?

    I started deleting the  Iphone 4 contacts for a trial....It also deleted the Iphone 4s contacts at the same time.  I was afraid to erase all would mean that I lost all that has been loaded to Iphone 4s.

  • Is it possible to delete the records from LIS Table S601

    We have created some errorneous/unwanted  records in planning in table S601. Is there a way to delete these enties by Plant or material.
    Need your help urgently.. Please help.
    Thanks in Advance
    Rajesh

    Hi
    Once we created variant we can't delete it,
    Regards,
    srihari

  • How to delete records from standard maintenance view

    Dear Sir/Madam,
            i want to delete records from standard view " v_mmim_rep_cust "
    This is a standard maintenance view , used in MBLB report.
    here i found the records with different report name but same fields as shown below...
    REPORT             TABLE NAME     FIELD NAME 
    RM07DOCS         MKPF                 BKTXT
    RM07DOCS         MKPF                 BLDAT
    RM07DOCS         MKPF                 BUDAT
    RM07DOCS         MSEG                 ANLN1
    RM07DOCS         MSEG                 ANLN2
    RM07DOCS         MSEG                 APLZL
    YRM07DOCS         MKPF                 BKTXT
    YRM07DOCS         MKPF                 BLDAT
    YRM07DOCS         MKPF                 BUDAT
    YRM07DOCS         MSEG                 ANLN1
    YRM07DOCS         MSEG                 ANLN2
    YRM07DOCS         MSEG                 APLZL
    I WANT TO DELETE THE RECORDS FROM THE VIEW WITH REPORT = YRM07DOCS.
    PLEASE HELP ME.
    Thanks in Advance,
    Dastagiri.

    Dear Sir,
          when i did so , it displays a message that  " entry mseg zeile  must not be deleted ".
    hense i went through writing a program to delete the records from table mmim_rep_cust
    but it says that record not found.
    program logic : 
    delete from mmim_rep_cust
        where report in report
          and TABNAME in TABNAME.
    if sy-subrc = 0.
    write ' RECORDS DELETED SUCCESSFULLY'.
    else.
    write ' RECORD NOT FOUND'.
    endif.
    please guide me to delete the records from the view.
    Thanks in advance,
    Dastagiri.

  • How to delete the record in the file present in the application server?

    Hi,
      I have two questions.
      i) How can I delete a record based on some condition in the recordx in the file that is present in the application server?
      ii) How can I lock the users whiel one user is accessing the file on the application server?
    Thanks in advance.
    Suvan

    Hi,
    If u want a frequent deletion this approach to delete a record from a file will havee unnecesary copy of records from one file to another and deletion of one file and renaming activities.
    Instead what u can do is Add and field del_flag to ur record structure.
    If u want to delete the record from a file just mark this del_flag as 'X'.
    While processing u can have a loop like
    loop at it_XXX where del_flag <> 'X'.
    endloop.
    This will logically delete the record.
    When u r to finish the application at that time only perform this copying / deleting / and renaing activity
    Hope this helps.
    Cheers,
    Nitin

  • Deleting the values from table control

    HI,
    I need to remove the selected line from the Table control on my screen.
    The point is that the Internal table does not have any records,.
    for example in the Customer Create screen,
    while entering the bank details we will enter it in a tbale contraol.
    but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.
    please guide me.
    please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..
    regards

    Hi..
    The solution to your problem - deleting values from table control.
    Here: it_wizard is the internal table which is holding the value of table control.
             wa_wizard is the work are of the internal table it_wizard.
             it_delete is the internal table which holds the deleted record of table control.
             wa_delete is the work area of the internal table it_delete
    Also here the field ZSEL is the character field which is used to select the entire record in the table control.
    LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
           MOVE-CORRESPONDING wa_wizard TO wa_delete.
           APPEND wa_delete TO it_delete.
           delete table it_wizard from wa_wizard.
    DELETE  FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
    ENDLOOP
    if sy-subrc eq 0.
    Message 'Delete Successful' type 'S'.
    endif.
    The above code will delete the record from both the table control.internal table and the database table.
    I think this will help you to great extent.
    Ward regards,
    Bhuvaneswari
    Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 AM

  • Itunes copied my files from my portable harddrive to my new computer harddrive on a new computer. I didn't want that, but didn't realize I did it.  How do I fix this so I can delete the songs from my computer harddrive and use the songs from the portable

    On my new computer I installed Itunes.  I wanted Itunes to use my portable harddrive for music, but instead it copied my library to the hard drive of my computer, filling it almost full.  I didn't realize this happened until I synced my iphone to Itunes.  How do I fix this?  I want to delete the library from my hard drive of my computer, and use the library from my portable hard drive.

    Hi Robin,
    Welcome to Apple Support Communities.
    You may find this article helpful with using a media library on an external hard drive:
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    Have a good day,
    Jeremy

Maybe you are looking for

  • Cintiq 21ux Color Issue with Snow Leopard

    I just recently upgraded to Snow Leopard from Tiger. I have a Cintiq 21ux tablet that is noticeably "faint" now on the new SL. It appears hazy and the colors just don't pop like they did on Tiger. I didn't have this issue with Tiger. Does anyone have

  • Functions in CC 5.2

    I posted earlier how I am getting very different results when I run a Risk Analysis in CC 4.0 and CC 5.2.  Basically, for HCM and SCM roles, when I run an analysis in CC 4.0 I get expected results, but when I run an analysis in 5.2, I get "No Matchin

  • How to handle unpaid RIBA

    Is there a way to link/identify unpaid RIBA (BOE in ITALY) to the original invoice? Is there any SAP solution for resetting the clearing documnet and re opening the original invoice? Any information, ideas or pointers will be very helpful. thanks.

  • How to updating plugin.xml when it changed in 12C?

    After Importing the Plug-in Archive and Deploying it on Management Service with 12C, I need to make a change with plugin.xml in Plug-in Archive. Here it's the change, --- Old one: <PluginAttributes Type="MP" ReleaseStatus="Test"/> --- Change to: <Plu

  • JSpinner

    Hi, I have a JSpinner placed in my Jframe displaying the current date and time.I want to write a Sql query to display data according to the from date and To date displayed using JSPinner.But the date format in my oracle database is different from wha