Deleting a customer record

Dear Xperts,
Can any one let me know, whether we can delete a customer master?
I have duplicated a customer code using the T. Code XD01, by mistake but now i want that to delete from system, how do i do it ?
I dont want to re-name.
Thanks in advance.

Hello,
You may set a deletion flag in the customer master record using VD06 / XD06.
If you want to delete a customer master data permenantly from the system, you need to think of archiving. It is not so simple in live system. You need to delete every single document, data which references that customer like invoices, orders, financial documents etc... If you don't do this, then your system will be inconsistent and will cause you problems if you try and view any documents which are linked to that customer .
Prase

Similar Messages

  • Not allowing block or delete of Customer record via tcode VD02/XD02

    Hi All,
    I want to check on the process of NOT allowing block or delete of a customer record thru tcode VD02/XD02. From a business point, we would like to only use VD05/XD05 to block a customer record and VD06 to mark for deletion. This will allow users to create/change the record using VD02/XD02 and different set of users to have control block/delete.
    Any inputs are appreciated. Thanks.
    Naren

    Hi,
    You will have to discuss this with your Basis team and check if there is any authorization object for that particular functionality in the Transaction.
    As far as i know i dont think it is possible, you can only restrict the users from using particular transactions but not from using a particular functinality in a transaction.
    The best option is to assign alll the Master Data related responsibility to a limited and resposible group of users or discuss with your technical team if they can do some restricting.

  • Mass deletion of customer accounts

    Hello
    Can I completely delete the customer records from the system using some standard tcode or program

    Dear Gaurav,
    I have tested on to my test Client.
    I created one "new customer" and then run the profram "SAPF047" in SE38.
    Then, go to t. code: OBR2
    key-in that "newly customer id" and check box: Delete Customer, under tab: Deletion quantity selection.
    Under tab: Deletion depth, check box: only general master data, and keyed-in charts of accounts.
    Under tab: Program control, selected Customer detail log (no oher option).
    But, it was on to my Test-Client and there were no records for customer. I can't suggest from my front, as your's is Production-Client, and there might be open records for your customer.
    Best Regards,
    Amit

  • Need help for record deletion from custom table

    Hi friends
    I have to write a custom program which will be generic to delete any table record with date field.
    This program needs to be generic (should be able to delete records from any custom table) in nature with selection screen parameters as:
    Table Name and Number of Days prior to which records are deleted, both mandatory.
    Program Flow:
    1.     From number of days calculate date before which records are deleted, ( current date u2013 no. of days = past date).
    2.     Custom table have date field, delete records prior to that date.
    3.     Program may be scheduled for background job, put default values for both fields. No. of days should not be less than 60.
    4.     Classical Report output with number of records deleted.
    My query is how will I know the name of the Date field so that I can write a DELETE query.
    If I use 'DDIF_FIELDINFO_GET' it gives me all field names but how to filter out?
    with regards
    samikhya

    Hi
    I have added  field on the selection screen as p_fieldname and got the F4 help for it , so that the user will get the field name run time as per the table name.
    Now I am facing problem while writing the DELETE query.
    I wrote like
    DELETE (fp_tab)
    where (fp_fieldname) LE date
    It is not working. I also tried with taking a string to concatenate fp_fieldname, LE and date to l_string
    when I write like this:
    DELETE (fp_tab)
    where (l_string) , sy-subrc is getting 4 and no records are getting deleted.
    I do not understand where the dynamic Delete is failing??
    with reagards
    Samikhya

  • Deleting Customer Records

    Is there a way to delete a mailing list AND all associated customer records?

    Hi,
    Let me give you some more details then, if further questions arised. I offerd an almost-ready-to-use code for the FM mentioned in the initial question. But the addition of
    EXCEPTIONS
        ERROR_MESSAGE = 1.
    works for every function module you could use. In my case the FM PRELIMINARY_POSTING_FB01 that I was calling from my custom code, used to raise a message type 'E' in some cases. But I did not want that message to interrupt the execution of my code. Instead of that, I caught the error and handled it myself. And ERROR_MESSAGE = 1 got the job done. So I think you should give it a try
    Hope this helps,
    Grzegorz

  • Deleting a potential customer record from SAP

    Hello
    Does anyone know how to delete a potential customer that has been created in SAP. As once you have created it, if you dont transfer it into a proper customer record, then the potential customer record will sit there is SAP. This then takes up space. So I wanted to know whether there is a way deleting the potential record.
    Thanks
    Bindi

    Hello
    A potential customer is one that has been created and their account group is set to 'Potential Customer'. This means at this stage that no transaction can be carried out against the customer as they have not been transfer into a proper customer account. A credit check, etc is then carried out on the customer, and if successful then customers account group is changed from 'Potential Customer' to 'Sold to Party'  for example. However if the record is not transfered and is still in the system as a Potential Customer then we need to be able to remove these.
    Is there way to delete these. I tried the above methods however was not successful.
    Regards
    Bindi

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • How to delete a particula record from InfoObject

    Dear All,
    I got some problem situations and would like some suggestions from any of you.
    <b>Problem detail</b>- one process chain was failed due to could not activate an ODS-A
    - ODS-A and ODS-B contained InfoObject-0BP_GUID
    - errors were found and referred to the InfoObject-0BP_GUID.
    - The errors referred to one record composed of incorrect data. I still wondered where it came from since normally, 0BP_GUID keeps only guid.
    I'd like to delete the incorrect record.But I do not want any impact to InfoProviders.
    I'm not sure how to resolve this case. This has to be very carefully managed because it happened on production system.
    Actually, I did find one thread in this forum "Delete SID table content". But I'm not sure whether it could be applied to my case.
    Any suggestion would be appreciated.
    Thank you very much.
    -WJ-

    Unfortunately you cant delete data without inpacting the data in the.  This is how BW works and you will appreciate this because youur transaction data is secured and you wont face any data issues later on. Let me give you an example. Lets sa your ODS or cube stored sales data and in the ODS you have sales org, customer and amount. When you run the report, data is read from this cube /ods, but to fetch the master data it goes to the master data tables via SID. When the transaction data gets loaded and when you try to delete a record in master data, it will let you do.
    If you still wish to do, proceed as follows:
    1. Delete the data in cube first.
    2. Delete the particular record from the master data table.3
    3. Reload the data to the ODS / cube.
    Without deleting the transaction data in the ODS / Cube the system wont let you delete the data in master data and you will get any of the following messages.
    (a) " not all master data could be deleted
    (b) "the master data can not be deleted".
    Ravi Thothadri

  • How to delete a master record with transaction data?

    Hi,
        Iam able to delete master record(GL/Vendor/Customer)through OBR2 when there is no transaction data in those respective master records. Despite of clearing all open items in a particular vendor Account, Iam unable to delete that master record. Please suggest me how we can delete vendor master data having transactional data.
                               Thanks in Advance
    Regards,
    Satish

    Hi...
    Not sure whether this helps....you can mark the vendorrecord for deletion and later try to delete it.
    Logistics >> Materials management >> Purchasing >>
    (new menu) Master data >> Vendor >> Central >> Flag for deletion
    try using XK06/FK06
    Assign points if useful
    Regards
    Aravind

  • Deleted R/3 records Not coming to BI

    I'm using the delivered LO cockpit extractor 2LIS_46_SCL for Global Trade Management (GTM). Its a LO Cockpit extractor, so I'm assuming it works the same way as all the other LO Cockpit extractors.
    The user is creating a contract in R/3 with two line items (10 and 20) and saving it. Later that same day they delete line item 20 and create line item 30.
    When I do the 'delta' extraction later that night, I get the 10, 20 and the 30 records loaded into the delivered ODS on the BI system. The delta ran again a day later and there still wasn't a delete for the 20 record.
    My question is when will the line item 20 record get deleted in BI?
    Regards,
    Mike...

    Mr. BW,
    I'm a little closer to identifying the problem, but still not sure if the problem is in the R/3 process that creates the delta queue records or the BI processing of the delta records.
    The R/3 process that is creating the delta records is a custom ticket application process. When there is a 10 and 20, it creates a 30 record and does a commit. It then has a followup step that deletes the 20 record and does a commit. I looked in RSA3 after this process ran and I see several records in the delta queue for or 20 record.
    My followup question is this. When the records are created in the R/3 delta queue is there some kind of sequence number that is passed to the BI side to tell BI in what order to process them?
    The additional complication to the this whole problem is that the 10, 20, and 30 records are all being created and deleted in R/3 on the same day. So, BI see a 10, 20 create, then a 30 create and then a 20 delete all in the same days processing.
    Regards,
    Mike...

  • Delete condition type records from PO

    Hi all,
       I have put custom fields ( for condition type ) under customer data tab in PO (ME21N) line item.
    While creating/changing PO, I have to delete condition records under conditions tab based on the custom fields which I have defined in the customer data tab.
    Is there any badi or function module to delete required condition records in PO?
    Thanks in Advance.
    Udaya Madhav

    Hi uday,
    Please Use the FM
    RSDRD_SEL_DELETION
    Hope this will be Helpful
    Thanks
    kalyan

  • Table entries deleted in Customized table.

    Respected Guru's
    table entries in a customized table were deleted in production system, no transports pertaining it was found.
    Table entries were updated using bapi.
    Please help me to know how the table entries were deleted.
    Daya.
    Edited by: Dayananadan Anandan on Nov 12, 2009 11:35 AM

    Hi Johnson,
    you might have to restore the DB Backup for the table to gt back the data....
    Furthermore, if you want to track how the entried were deleted then there are 2 ways to go about it:
    If the Deletion of the records was through an application (FM,Program call) then there should be Chande Documents available for them and you can search them by hitting tables CDHDR and CDPOS...
    If the Deletion of the records was done physically the you can try looking into the tables UASE16N_CD_KEY and UASE16N_CD_DATA (deletion from transaction UASE16N) or tables SE16N_CD_KEY and SE16N_CD_DATA(Deletion from SE16). This will give change pointer documents if the records were deleted using these transactions...
    Another option might be that somebody has used the Database utility and selected the option Delete Data. In this case you can have a look at the object log....
    Hope this helps....
    Regards,
    Sitakant.

  • Mass delete of condition records

    Hi All,
    Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long. Also please advise that if a record is marked for delete indicator, then can it be used again ? or can i reomve it completely becasue i want to upload again with correct prices.
    Appreciate your help
    SAPXPT

    Hi,
    Let's get one by one.
    > Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long.
    There is no such Transaction available to delete those like in MASS.
    Best thing is to use a LSMW with VK12 transaction.
    > Also please advise that if a record is marked for delete indicator, then can it be used again ?
    Yes, You can.
    Once marked for deletion they won't appear in the sales order automatically. Pricing Analysis will show you like this.
    "Condition record has been deleted"
    If you want to use it again go to VK12, and go in to your condition record.
    Highlight the condition line item and press "Details" button (Magnifying Glass)
    Un-tick the "Deletion lndicator" check box.
    Save.
    Then you can use it again as normal way.
    > can i reomve it completely becasue i want to upload again with correct prices.
    Yes, You can.
    You can remove it completely from the data base. First you have to configuret your condition type in IMG to enable that function..
    Go to V/06
    Select you condition record & go in to details.
    There you get a filed called "delete fr. DB"  under "Master data" section.
    Change it to "A with popup" or "B without popup".
    Which means your going to delete it from the data base. (Where as you cannot use it again, like you do in Deletion indicator)
    Save
    Then come to VK12,
    Go in to your condition record.
    Highlight the condition line item and press Delete button from lower area.
    If you set "A with pop up" in the condition record, you'll get a pop up saying,
    "The condition type XXXX is set so that when the deletion indicator is set, the condition record can be physically deleted from the database.Do you want to delete the condition record physically?"
    Once save system will delete it from the data base.
    If you set "B without pop up", system will delete it without a pop up.
    Hope this helps you !
    Best regards,
    Anupa

  • Delete a user record from oracle db

    Hi,
    Can anybody share me a custom workflow which deletes a user record from the oracle db.The user does exist in SUN IDM.
    Please help me.
    Thanks in advance.

    You can use a Trigger and UTL_FILE to write to a file (on the server).
    Example:
    create or replace trigger test_file
      after insert or delete or update on test_case 
      for each row
    declare
    v_logfile utl_file.file_type;
    begin
      v_logfile := utl_file.fopen('\myfiles','test_file.log','a');
      if inserting then
         utl_file.put_line(v_logfile,'Inserting to table');
      elsif deleting then
         utl_file.put_line(v_logfile,'Deleting to table');
      else
         utl_file.put_line(v_logfile,'Updating to table');
      end if;
      utl_file.fclose(v_logfile);
    end test_file;
    I want to generate a log file in which i want to dump some useful messages, when anyone does a dml operation on a table, and also, i want to have a switch like YES or NO (may be an environment variable,,) if i switch it to YES the log file should get generated, if NO then, no log file will be generated..
    can anyone help, how can you do this task ?
    thanks a lot in advance..
    srini

  • Delete pricing condition records : vk12

    When i mark a record as deleted in vk12, there add a tick in DeletionID column. I was told the record would be deleted after database reorgnization.
    I want to ask, when will DB reorgnize? Would the deleted records be active before DB reorginze?
    Can anybody help me?
    Thanks a lot

    hi Yimeng,
    In v/06 for your condition type check the field delete from DB
    If you set this field as A or B,then only you will be able to delete the condition record permanently via VK12.Otherwise you can only set deletion indicator. after u set the indicator in v/06, then goto
    vk12 and set the record as delete.so the first one controls the actions in vk12.
    condition record can be deleted in two ways
    1.physical deletion
    2.marked for deletion.
    The customizing can be done at the condition type maintainance in V/06,
    u have three options
    1.physical deletion with pop up
    2.physical deletion without pop-up
    3.mark for deletion.
    select an option there and in condition record in VK12, select the record and
    and delete with the deletion indicator.
    SAP recommends physical deletion
    reward if it is useful
    bye MCM

Maybe you are looking for

  • Home Page Search Is Non-Functional / Not Possible to Restore Previous Session

    After the latest update (to version 29), Firefox's default home page search bar has been completely non-functional. Whether I type enter or press Search, nothing happens. Another (possibly related) problem is that the "Restore Previous Session" butto

  • How to resolve the 0xE8000001 error??

    please help me, my iPod Touch 4g doesn't want to connect with iTunes

  • UCCX 8.5 - Historical Datastore on Subscriber Node Problem

    Hello, Over the weekend I did a Reset Replication because the Subscriber and the Publisher was separated for a period of time, it's a cluster over WAN. Everything looks fine except for the Historical Datastore which looks like this: Every other Datas

  • IPad 2 and iPad 3 WiFi issues with IOS6

    I have both and iPad2 and iPad3 and since upgrading to IOS6 the WiFi connection does not work.  Other devices work fine connecting to the same WiFi router. What I have found for the iPads is that name resolution is broken. My iPads get and IP address

  • Is Photoshop CS3 compatible with FC?

    Hi Guys, i Just found out about FC. the thing is in the tutuorials all the demos are done using Photoshop CS4. i have photoshop & illustrator, indesign, dreamweaver and flash CS3 will these work with Flash Catalyst? just want to make sure before i in