BDoc deletion

Hi,
We have few error Bdocs lined up in queue. These are not needed in CRM.
BP's are not replicated from ECC & they are being created in CRM. SO bdoc R3AD_CUSTM from ECC are going in error.
Similarly, we have not mapped equipment in CRM. hence,  bdoc type R3AD_CS_EQU are jammed.
Please inform if ther is any method to archive these Bdocs. Or we can delete them.
I fear we may need equipment in CRM in future. In that case will it affect the process.
Look forward to  sugestions.
Best regards,
Rahul

Hi Rahul.
In transaction SMW01 identify the Bdoc message ID to be deleted. Now select one or multiple Bdoc messages to be deleted and click u201CMark to be deletedu201D button (beside u201CReprocess Bdoc Messageu201D). This will set the status of the selected Bdoc messages to u201CSet to processed (fully processed)u201D. These Bdocs will no longer be in erroneous status.
Once you follow the below procedure and set the status of the erroneous Bdoc to u201Cset to processed (fully processed)u201D, please go to transaction SMO8REORG and delete the selected Bdoc. Using transaction SMO8REORG you can delete only processed Bdocs i.e. Bdocs in Green status. So first we have to set the Bdoc to green status in transaction SMW01 and proceed for the deletion of the same from transaction SMO8REORG.
Note: To the best of my knowledge deletion of Bdocs is not advisable. This may result in inconsistencies between systems.
Regards,
Aj K

Similar Messages

  • Archiving of Bdoc

    Hi guys
    did anyone of you know how to do the archiving of Bdoc's, I have problems with my SMW01 log it is to big and I have to archive it soon.
    BR
    Jakob Bang

    Hi
    check the below link, hope it is helpful.
    BDoc deletion
    R/Reddy.

  • How to archive contact persons without relationship

    Hello,
    if in ERP a contact person of an customer (VD02) is deleted a BDOC is created for CRM.
    This BDOC deletes the relationship from the contact person to the account in CRM.
    In the meantime we have a lot of contact persons without any relationship in CRM because our CRM system is already 5 years in production.
    How could i flag this contact persons for deletion and archive them in the next step?
    Sorry for this maybe low-level question but i never did this in CRM.
    Our CRM Version is CRM70 SP05.
    Thanks a lot.
    Kind regards
    Manfred

    Hi Mandred,
    I would use t-code BUPA_PRE_DA, to mark them massively for archving.
    To find the contact persons without relations, you can first collect all contact persons in the system at BUT100 by querying business partners with contact person role, and the check in table BUT050 to collect the ones that have relationships.
    Then I would compare with first list (BUT100), and obtain the ones that doesn't have a relationship.
    Kind regards,
    Garcia

  • CRM EmployeeResponsible of BP replicated to ECC Sales Employee error

    Hi Experts,
    We are integrating CRM 7.0 with ERP 6.0 and make CRM act as a leading system.
    BP is created in CRM to have field Employee Responsible. And the relationship "Has the Employee Responsible" and its sales organization has been maintained with Partner Function = 'Sales Representative'. On saving this BP, it is supposed to have this customer created in ECC and have partner function 'PE' (Sales employee) to be the responsible employee.
    However in CRM we get an error message for this BDOC,
    Deletion not allowed: SP is mandatory function
    (Error message: F2 609)
    Any hint will be helpful.
    Thanks in advance

    Hi Kai,
    Thanks for your reply.
    But we already have those mappings in both CRM and ECC side and all of them are standard, since we do not have any custom partner functions.
    Fortunately, we have succeeded to solve this issue by removing the "unique" flag for "Sold-to party", and importing note 1392878 to solve the problem of changing and deleting issue of relationship/partner function in CRM.
    To setting unique flag for "Sold-to party", it is in ECC, view V_TPAR.
    By the way, we also have Note 497146 - Relationship remains in CRM aft downld partner functn deltn implemented in our CRM. But not sure whether it is working.

  • Delete BDoc in SMW01

    Dear SAP gurus,
    Is it advisable to delete the error BDocs in SMW01? There is one case where when i deleted one of the error BDocs in SMW01, the changes that were made, were reverted. What should be the best way to do if i would like to clear off all the error BDocs in SMW01. Those errors can be ommitted, but we do not want to see them in SMW01. Please advice. Points will be rewarded.
    Thanks

    Hi,
    u2022Reprocess failed BDocs
    CRM 4.0: Choose BDoc Message >Process > Reprocess
    CRM 3.0/3.1: Choose BDoc Message >Process > Retry to reprocess
    Note: Do not reprocess the BDoc messages without checking for the possibility of overlapping effects, overwriting actual data! If newer BDoc messages for the same application object exist and have been fully processed, reprocessing an older BDoc message may cause the current data to be overwritten by a BDoc containing data from an older state.
    u2022Delete BDoc messages
    CRM 4.0: Choose BDoc Message > Process > delete
    CRM 3.0/3.1: Choose BDoc Message > Process > Mark as deleted
    Note: Do not delete BDoc messages without solving the problem! Deleting a BDoc message means that the receiving system(s) will not be updated, thus creating inconsistencies. Only delete BDoc messages when you are sure they are obsolete or can be recreated by sending the application object again.
    Regards
    Srinu

  • Where Can I settle an enhancement to delete a sales order item according to the data in BDOC from CRM?

    Hi expert,
    I have an urgent requirement from the client.
    Delete the sales order item totally in ECC.
    I planned to implement this enhancement in ECC. Check the data in BDOC from CRM middleware, according to the user status in the order item,decide whether the item can be deleted.
    My question is,where can I settle this enhancement? The BADI name,user exit?
    Thanks in advance.
    Jerry.

    Hi Jerry,
    It may be delayed. you may found the solution.
    Use BADI CRM_DATAEXCHG_BADI and try the code in MBDOC_FILL or BAPI_FILL method.
    Regards,
    Bala

  • Delete Old BDoc entries

    Hello Everybody,
    I am new to CRM world , so excuse me if I am missing anything here.
    I am trying to delete old bdoc entries from our system. I read up and found Bdoc entries can be deleted by scheduling the reorganization job execution(Report SMO6_REORG2) and we already run this report everyday with standard options:
    Here's our current table sizes and also the message flow statisctics with average times.
    Please let me know if the entries/messages are in optimum size or if there is anything else I need to do to bring the entries further down.
    Reorganize processed Bdoc messages :           Days to hold 7
    Reorganize Trace data :                                   Days to hold 7
    Reorganize Bdoc statistics
    Hold data (days / weeks): 2/2
    Reorganize Requests (only one time requests)     Days to hold 7
    Reorganize object links (for BDocs)                    Days to hold 21
    Current tables entry sizes:
    Tables
    Entries
    SMW3_BDOC
    156,306
    SMW3_BDOC1
    156,312
    SMW3_BDOC2
    156,314
    SMW3_BDOC4
    2,500
    SMW3_BDOC5
    207,892
    SMW3_BDOC6
    75
    SMW3_BDOC7
    134,566
    SMW3_BDOCQ
    30
    SMWT_TRC
    35,910
    I have also attached a screenshot of message flow statistics and for different BDoc types  and
    BDoc type                    Avg.(s)      MFlow (ms)
    PRODUCT_INDOBJ      1.4            33,676,46     
    BUPA_MAIN                  0.6          25,776,994
    BUS_TRANS_MSG        0.6           27,653,277
    BEABILLDOCCRMB     1.9            1,531,422
    CMDOC_NOTIFY          2.9            123,013
    Thank you!

    Hi MMD,
    Please see my response to your questions below.
    a. Is it safe to just delete the old files and just create a BDoc Type entries for BUPA_MAIN and BUPA_Rel so that we could apply the DO NOT SEND resolution?
    Ans: It is not advisable to delete the BDocs as it may cause data inconsistency but if you are ready to do some extra work and your business allows you to initiate the initial load then you can surely delete the queues. Use the DIMA tool to find out the data inconsistency and resolve it.
    b. If we set up the BDOC types and apply the DO NOT SEND resolution, will it be safe to reprocess all the pending CSA* queues even if its old already (May 2008) to clear the SMW01 queues as well?
    Ans: You can restart the queues any time it does not matter how old it is.
    Thanks,
    Vikash.

  • Bdoc recovery in CRM after deletion

    Dear SDN team,
    By mistake we have deleted/archived some BDocs in our SAP CRM 5.2 Prod system .
    We want to recover those BDocs to perform some analysis.
    How can we achieve this ?? Please help urgently.
    Points will be rewarded.
    Regards
    Ritvij

    Hi Ritvij,
    If a Bdoc is deleted, it will not be removed from the system immediatly. It will be "set" to delete status.
    But, if you run the m/w re-organisation job (which is usually scheduled to run periodically), there is a chance that it might have picked it and removed it for ever (unless you have some archive stratergy).
    So, if you have set your middleware re-org job to delete the Bdocs, then i dont think there is any way to recover it.
    Regards,
    Alin

  • Is it possible to delete Bdoc error message

    Dear All ,
    I want delete all my previous bdoc error messages from the log
    I would like to know the possibility of deletion of Bdoc error messages from SMW01
    Regards,
    Silpa.

    Hi Silpa,
       BDOC messages will be stored in the table SMW3_BDOC6 and SMW3_BDOC4. These entries will be deleted from your system at the time of middleware reorganization job execution(Report SMO6_REORG2).
       I hope you scheduled the Middleware reorganization using report SMO6_REORG2.
    //Bhanu

  • Mass Delete of BDocs in SAP CRM system

    Dear SDC team,
    We like to hard delete some BDocs which are hanging in the txn SMW01 in CRM 5.2 system.
    As of now we do not see a option to delete these unnecessary BDocs,  as they are in Intermediate state (I04) .
    Please tell us if there any standard report which can be used to do Mass Delete of BDocs in SAP CRM system.
    Or Is there any Tables which need to be emptied .
    Please help ..Points would be rewarded .
    Regards
    Ritvij

    hi
    Concerning the BDOCs without error, there is a job that you can schedule to run daily that cleans the BDocs processed without errors from the database.
    The details of this job are:
    Job name: SMO6_REORG
    Job program: SMO6_REORG
    Variants: SAP_MW_REORG
    Trace data (days to hold): 7 (recomended by SAP)
    Trace log (days to hold): 7 (recomended by SAP)
    Period: daily.
    Besides i should tell you I looked through Help and there are no best practices that I could find.We went through this process at one of my clients. They had 40,000 pluserror'd BDOCs and thousands of processed ones. The Middleware guycreated a program to delete the BDOCs that were over 2 months old andhad completed successfully to prevent the further build up of theseBDOCs. SAP Help says they are marked for deletion after they areprocessed, but it doesn't look like they get removed as wanted..
    From SAP Help:
    Deleting Processed BDoc Messages
    1. Processed BDoc messages cannot be archived.
    2. BDoc messages that have been processed successfully are marked fordeletion.
    Procedure
    To delete processed BDoc messages choose Architecture and Technology >Middleware > Message Flow > Delete Processed BDoc Messages
    The messages you selected will be deleted.
    and regarding deletion of non errant Bdocs
    Usually there are two schools of thought on this issue:
    1) Make the hard decision to go back to the beginning and startcorrectly all the things that caused these to error out (bank codes, taxcodes, config on R/3 side but not on CRM side, etc.). Then these can bereprocessed and everything will be brought up to date in the system.This takes time and may neccesistate hiring a Middleware resource for ashort term to help go through the process. The big part of this isidentifying those config items that are out of synch between R/3 andCRM.
    2) The other way to handle these is to go through the errors quickly,gain an insight into the cause of the errors, and correct the bigthings. Delete all the old error'd BDOCs and then bring down all the bigitems again - BPs, Sales orders, products, and so forth. This is muchfaster process, but has it's own risks and problems vs Option 1 above.As these items come in, if you haven't fixed the config problems, theywill error out again. It's a fix and move - fix and move process. In theend you may have some missing data still, but the time commitment ismuch lower. You just need to get leadership's buy-in to this process.
    Those error'd BDOCs are a problem and point out all the datainconsistencies that exist in the system. They are also a drag onperformance and need to be processed one way or another. After that,keeping them under a "1000" number is imperative. If you don't, theproblem will get away from you again.
    finally Some Transaction Codes that people might find useful for working withBDOCs:
    SMW01 Display BDocs
    SMW02 Display BDoc Summary
    SMW02A BDoc Messages: Show Top N Errors
    SMW03 Show stats of unproc. BDoc messages
    SMW10 Bdoc structure chekker
    SMW19 Copy BDoc and process
    SMW20 Process BDocs
    SMW3EX1 Flow Carrier Example
    SMW3FDBDOC Maintain Bdoctype dep. Flows
    SMW3FDCUST Maintain Customer Flows
    SMW3FDIF Maintain Bdoctype dep. Attributes
    SMW3FDSTD Maintain Standard Flows
    SMW3RBM Convert BDoc Messages to XML
    SMW3RC BDoc Message Error Recovery
    SMW3RCW BDoc Message Error Processor
    SMW3STOP1 General Stop Configuration
    SMW3STOP2 BDoc Type Stop Configuration
    SMW3WD Watchdog for failed BDoc Messages
    SMW3_00 BDoc Type Settings
    SMW3_GSB Generic Bridge Activation
    SMW3_GSB2 Generic Synch. Bridge Configuration
    SMW3_GSB_SHOW Display Generic Synch Bridge Config
    SMWMBSTATDISP BDoc statistics
    hope info will help your cause,i told all this coz before deleting the Bdocs complete understanding of the errant and non errant Bdocs is necessary,
    best regards
    ashish

  • Delete BDOC's Bupa_rel

    Hello,
    We are working on CRM 4.0. I have a typical case. There few Bdoc's generated under BUPA_REL which contains errors. I want to delete these bdoc's. How can I
    do it.
    Thanks in advance
    Regards
    Vamsi

    Hi Vamsi,
    You need to follow below mention steps:
    1) Execute transaction: SMW01
    2) Enter criteria parameter to find the Bdocs. Execute
    3) Select the required Bdocs, and press on delete icon.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Deleting BDOC Errors

    Hi experts ,
    Please tell me how to delete BDOC error in CRM .
    My Error is Technical Error and BDOC type is BUPA_REL.
    Please mail me urgent.
    Thanks,
    Swapna

    hi swapna, 
         ur prob is solved or not? i am having same prob. but for BUPA_MAIN, do u have any idea....

  • What is the consequence if I delete the BDoc Messages from the Queue?

    Hi,
    What is the consequence if I delete the BDoc Message (SMW01) from the queue with any state (e.g. intermediate)?
    Regards,
    Alex.

    Hi Alex.
    I had a similar issue with Bdoc. We have had a lot of errors comming through as our CRM & ECC syste were out of sync.
    You need to look into the exact error message before you delete a Bdoc. I would suggest that you do not delete any Bdoc message unless you are sure of the error is and it is fixed.
    Hope this helps
    Mohammed.
    Edited by: Mohammed Faisal on Jun 2, 2010 4:43 PM

  • Inconsistency in Bdoc sequence

    Hello,
    we added some z-fields to smokna1 and hence to capgen_object_write. We face problems with the distribution of the contents of the z-filds. Data entered on one client gets saved in the CRM Server but is not saved on other clients altough the data is in the bdoc.
    We found that the sequencial position of the fields of the bdoc is not continous.In the BDoc, the fields are in order till positon 91. Then it starts from 104.
    We generated the Bdoc automatically. Does someone know a way to change the sequence to be in order?
    Thanks
    Wiliam C.
    Message was edited by:
            Wiliam C. Haltenhoff

    Hi Kaushal,
    what Anusha posted today in her answer is right. We found this solution by chance. After removing the 'use map' flag in sbdm the sequence was in order and the bdocs were processed fine.
    In our tests we also found out, that the meta data on the clients has not to be generated again. Only by transporting the flag deletion to our QA-System it worked there also.
    Best regards.

  • BDOCs not triggering on changin Contract Account thrU FM FKK_ACCOUNT_UPDATE

    Hi,
    We have integrate SAP ISU and CRM system. My scenario is, on Dunning til a specific level, customer is removed from Direct Debit if he's on an active Incoming Payment Method in a dunning activity.
    In my scenario, I'm reading Contract Account Details using FKK_ACCOUNT_READ, deleting incoming payment locks if any, clearing three fields of Incoming Payment Method Id, Bank ID and Credit Card ID (EZAWE, EBVTY, CCARD_ID) and then passing the new structure in FM FKK_ACCOUNT_UPDATE in below format:
            CALL FUNCTION 'FKK_ACCOUNT_UPDATE' IN UPDATE TASK
              EXPORTING
                x_fkkvk                 = wa_fkkvk
                y_fkkvk                 = wa_fkkvk_old
                vk_upd_mode             = lc_change
                udate                   = sy-datum
                planned_or_real_changes = lc_real
              TABLES
                x_fkkvkp                = lit_fkkvkp
                y_fkkvkp                = lit_fkkvkp_old.
    But it is not triggering any BDOCs and therefore DD details can still be seen in CRM system.
    I checked the standard process (CAA2), also uses the same FM in same format but it triggers BDOCs. I believe after this FM is called, some other FMs are being called to trigger BDOCs.
    Can someone help me in finding out, where am I going wrong. Thanks.
    Ravi

    Use BAPI_ISUACCOUNT_CHANGE instead.

Maybe you are looking for