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

Similar Messages

  • Upload of Campaign and Leads from flat file into SAP CRM system

    Hi Gurus,
    We need to upload Campaign and Leads from our legacy systems to SAP CRM systems. The source data will be available in the form of flat files (tab delimited)
    Please let me know the possible ways of doing this.
    Reward points are assured.
    Thanks in advance.

    Hi
    you can use external list management functionality in CRM 5.0 useing the flat file tab delimited you can upload the contacts and create business partners followed by lead transaction types with business partners created and also external list management will allow you to create target groups for executing the campaigns in SAP CRM
    please do reward points if helpful
    regards
    Dinaker vikas

  • Can Inbound IDOC create a BP(Business partner) In SAP CRM system

    Hi
    Req:
    Contractor data is transfered from ERP system to CRM using Message type HRMD_ABA with ALE Distribution Model in place.
    Inbound IDOC is Successfully Posted  when checked in WE05  in SAP CRM System.
    Question :
    1. Can  an INBOUND Idoc create  BP automatically  or is there  need of Configuration or Any custom program .
    Appreciate Your Response
    Bhanu Polsani
    Edited by: Bhanu Polsani on Oct 4, 2011 6:10 PM
    Edited by: Bhanu Polsani on Oct 4, 2011 6:16 PM

    You can maintain two different address for the business agreements (can be treated as mailing address for the printed invoice)but you can not maintain more than one standard address for BP as any given time.
    Regards,
    Sanjoy

  • Cancel/delete the Cancelled invoice in crm system

    Hi all,
    I want to cancel/delete the Cancelled invoice in crm system which hasnu2019t replicated in Finance,because posting closed,we dont want re open that.
    Scenario: By mistakenly user has created the cancel invoice for the complete processed Invoice (recon also done).
    Now we want to delete/cancel/reverse this cancelled Invoice in crm Which has unnecessarily created??
    How can i fix this??
    if the solution is Delete the Cancelled invoice give the Table names and procedure how to delete the cancelled Invoice.
    Thanks in advance.
    shoki.
    Edited by: shoki on Dec 24, 2009 12:30 PM

    HI
    It is not advisable to directly remove an invoice from the CRM system.
    Since it is not yet posted to accounting this may create an inconsistency in the FI posting.
    However the relevant table in CRM system is /1BEA/CRMB_BDH - this
    ANY OTHER SUGGESITIONS???????
    SHOKI

  • Where i can find the deleted transport request in SAP development system?

    where i can find the deleted transport request in SAP development system?

    Hi,
    When you delete the transport request from SE10 , you can not find the request entry from E070 and E071.
    and only local change request are possible to delete from SE10 /SE09
    if you are try to delete the change request with target system then it's gives you the error that request cannot be deleted because it contains locked objects.
    It's not possible to find out the deleted request from SE10.
    regards,
    kaushal

  • How to Import DaRT into SAP CRM System

    Hi Everybody,
    Can some body help me in knowing how to import DaRT ( Data Retention Tool) into SAP CRM system. This is an urgent requirement. Your early reply will ab appreicated.
    Thanks in Advance
    Sirfraz

    Hi Kaustubh,
    Use the FM ARCHIVFILE_CLIENT_TO_SERVER.
    Give Filename + path for both the source and destination and your file will get transferred to the specified directory in AL11.
    But I am not sure about creating your own directory in AL11.
    Reward if helpful.
    Regards
    Hemant Khemani

  • Check SAP CRM System status - Web service

    is there a way to check a SAP CRM system status - is it available? just simple check to see it SAP CRM system is up and running? Is web service available?
    Jawahar

    Hello
    This u can check in SICF transaction.
    Also u can check in CCMS monitoring

  • Cannot Delete BP Relationships in SAP CRM 7.0 - intermittent error

    Hi Everyone,
    We are running SAP CRM 7.0, SP08.  We are trying to delete just the relationship "Contact Person" between an Account and a Contact in CRM.  Sometimes when we do it everything works just fine and the relationship is removed in CRM and the Contact Person is deleted in ECC.  Other times we are getting the following error: "Address is still being used and may not be deleted." If we expand the error, we are getting the following:
    Diagnosis
    You tried to delete a BP address. This BP is still being used somewhere in the system, meaning that you are not permitted to delete this address.
    System Response
    Error message. The BP address is not deleted.
    Procedure
    Look at the where-used list for the BP address. If you still want to delete the address, change the reference to this address in the applications affected. In most cases, if applications other than maintenance of business partner itself are affected, you can navigate directly to the corresponding application from the where-used list (by calling the context menu with the right mouse button). You can then try again to delete the BP address.
    Note
    If a business partner is merely moving, you only need to change the actual address details. All references are automatically transferred to the new address.
    We have tried several scenarios and have not found a consistent result.  For example, we can create Activities in CRM, Quotes and Orders in ECC, using the Contact, and then when we remove the relationship it all works as we expected and removes the relationship in CRM and deletes them in ECC.  However, for another Contact this does not work.  It does not seem to matter if the person is the "main contact" in ECC or not, whether we have flagged them as the Main Contact in CRM or not, whether they have lots of transactions or none.  The only thing that does seem to be consistant is where they were created and the relationship defined.  It seems if they were created in ECC it does not work, but if they were created in CRM it does work.
    I looked at SAP note 830239, but it does not apply to CRM 7.0.
    Any help in this regard is appreciated. Thanks for your time.
    Bryan

    Hi,
    We used the questionnaires (questionnaires was displayed and worked) but we faced issues with the display in web UI (only when the questionnaires are linked to an activity/opportunity). The Admin screen for questionnaire works well).
    We have implemented the following notes in order to correct this displaying issues :
    - 1858059 : Upload the CRM_SVY_GENERATE_BSP_TEMPLATE.ZIP, refresh cash and generate all surveys
    And then notes mentioned above
    - 1914885 & 1944288 in the relevant order.
    But we cannot display anymore the existing surveys (They are active, all scenarios are flagged).
    Error message : Cannot get questionnaire HTML string
    Any Ideas how to proceed to solve ? (we work on EHP2)

  • Does IPC require an SAP CRM system ?

    Hello,
    we need to install the SAP Internet Pricing and Configurator (IPC).
    Does this IPC require a CRM landscape ? As we have ERP usage type...
    Many thanks!

    Hi Raghvendra,
    Open ur CRM system configuration from portal
    <i><b>system administration -> system configuration</b></i>
    locate ur CRM system under portal content and
    Right click on <i><b>crm system open->object</b></i>.
    now Under Property Editor from property catogory select ISA B2B (internet sales B2B application)
    <i><b>ISA B2B Description --> description.</b></i>
    <i><b>ISA B2B host name ---> j2ee_host.domain.com:port</b></i>
    <i><b>ISA B2B path ---> /b2b/b2b/init.do</b></i>
    <i><b>ISA B2B Protocol--->http</b></i>
    Hope this helps.
    Rgds,
    Vivek
    PS: Pl reward points if found useful

  • Can SAP CRM system point to different PI systems

    Hi All
    We have a scenario where we need to point our CRM system to multiple PI systems. Currently we are running around 100+ interfaces in our current setup i.e. CRM(A) and PI(A) systems. Can we point our CRM system to other PI system withiout having any impact to currently developed interfaces? Can we run both the interfaces in CRM point to PI (A) and PI (B).
    What are all the configurations we need to do in CRM to make it point to PI(A) and PI(B). How will SPROXY tcode will look like if I point to both the ESRs.
    Please suggest...Thank You.
    Current Setup:
    CRM (A) -->PI (A) -->3rd Parties.
    Additional Requirement:
    CRM (A) -->PI (A) -->3rd Parties and
    CRM (A) -->PI (B) -->3rd Parties.

    Hi Achuth,
    Yes it's possible. Check the below links
    Connect SAP Application System to multiple SAP PI Integration Server - Variant n°1
    Consumer and Provider ABAP Proxy Service to Multiple SAP NetWeaver PI Systems Using Process Integration 7.1
    http://scn.sap.com/people/r.tiesma/blog/2010/10/25/connecting-sap-proxy-framework-to-multiple-sap-xipi-systems
    Regards,
    Praveen Gujjeti

  • Delete a buag in SAP CRM

    Good morning,
    we have the problem, that we created with an code error to much buagu2019s. We solved the problem in the code, but now we need a possibility to delete the buagu2019s.
    Is there any possibility in SAP CRM Standard, or do someone have a code example?
    Thanks a lot for your help.
    Regards,
    Sascha

    Hi,
    This generally happens when a BUILD_TABLE( ) call is missing. Ensure the following in your view controller that holds the table node:
    1. If DO_PREPARE_OUTPUT( ) is re-defined, it calls SUPER( )
    2. The super call calls BUILD_TABLE( ) method on context node as follows:
    me->typed_context-><node_name>-build_table( ).

  • TAX_GROUP_BP_01 field in quotation in SAP CRM system is not updating at all

    Hi,
    when we create quotation in SAP CRM...there is tax conditon type in item level...where it has the field TAX_GROUP_BP_01...and this field value is not getting updated at all..Could you please anyone suggest us why this value is not updating in CRM system
    Thanks and Regards,
    Sudhansu.

    Yes thanks all.
    Even though the 'p_emp_number' was used as a vehicle (do I know what I'm talking about?) in the Create API's process I have setup working splendidly, for this Update process semingly having the line removed it did the trick.
    1 record updated as required.
    Many thanks to all..
    Steven

  • Mass deleting marketing attribute assignments in CRM 3.1

    Hi anyone!
    I'm working in CRM 3.1 where we don't have the same Expert tools as in 4.0. Does anyone of you know another way of mass deleting marketing attribute assignments to BPs?
    Regards Camilla

    Hi again!
    Thanks, it looks like this solve my problem. Have you tested this program when the attribute set is assigned to a big amount of BPs (1.000.000)?
    C

  • CTI integration with SAP CRM system

    Hi guys,
    Is it possible to integrate a CTI solution of a no SAP Partner to SAP CRM 2007 Interaction Center?
    My company bought a IVR/CTI and that CTI does not have a native connection to SAP CRM 2007. I would like to know if is it possible to enhance SAP CRM 2007 IC to integrate with this IVR/CTI.
    Any help is welcome.
    Regards,
    Lalas

    thanks a lot for your reply sir,
                                                   curently we have avaya connector and we enhanced hec out of ICI and CAD method  to fit our requirements.   To cut  ourexpeneses and maintenance cost we are moving towards non connector solution. I'm thinking to reuse all ICI work wehave done and implement screen pop's. i have less time to discuss with cti vendors and i've to implement this solution as quickly as possible
                                               i've seen quite few people herewho already implemented this solution and i came across your thread thought that your inputs will be valuable, please let me knowwhere you are standing on this approach and i will let you know about my approach as well may it willhelp you out as well.
    thanks
    susheel

  • Complete message flow Monitoring from webclient to SAP CRM system

    Dear Friends,
      I need some step by step  monitoring guidance for my scenario friends.
    My Scenario:
       Webclient-->PI7.0--
    >SAP CRM
                      -<--      <--
    Step !:
    1.  When webclient send the SOAP Request to PI through sender soap adapter with qos (Best Effort )
    2.  It reaches PI and send the data to SAP CRM sytem *through Server Proxies ( Mode - sync )*
    3. I have creted wsdl file in ID and send the file to the person who is working in webclient.
    When a webclient send the request it waits for the response.
    I need your guidance on how to monitor the as a step by step guidance.
    Friends i am a Novice to PI.
    Kindly help me.

    Hi friends,
    When i run the transaction I am getting the following error in SXMB_MONI in PI
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
    Kindly suggets me what i need to do...

Maybe you are looking for

  • How to put ituness movies onto separate hard drive?

    I have just started to downloads films from the itunes store, however I don't want to clog up my Mac's hard drive. Is there any way to put the Movies onto an external hard drive? Please bear in mind I watch the films by streaming to Apple TV.

  • Files cannot be unlocked on AFP Share on Lion Server

    I have an environement with a Mac Pro Server (10.7.4) running as an Open Directory Master, DNS, with AFP file sharing enabled. All clients are running 10.7.4, none are bound to the domain and all home folders are local on the users machine. The users

  • The color of text item with multi-line in web

    I tried to change the background color of text item with multi- line, but it does not work when I run in the web, if some body knows that, please give a hint. Thanks Frank null

  • Accelarate the Linux ATI Graphics card  for java Swing application

    Hi All, I am using a ATI Radeon 9550 Graphic card in LFS (Linux from the scratch) environment. I want to enable the OpenGL-based pipeline for Java Swing application. I tried the -Dsun.java2d.opengl=true . But the Java swing application getting very s

  • Multiple MIDI Sequencers In Java Applet?

    Hi all, I'm working on a music applet and need to have multiple MIDI sequencers playing simultaneously. I have some test code and it works in my IDE (I'm using JGrasp) but when I try to open the applet in a web browser, it doesn't play the sequencers