Delete IDocs

Hi,
do you have some nice report/class/method to delete unwanted IDocs ?
- i know transaction WE11 but this one is not really nice without IDocno and Partner.
- i know set deletionflag, but this is really time spending.
any other ideas ?
Thx,
Gordon

Hi,
You cann't delete the IDOC's physically, what you can do is only set the deletion flag on for the unwanted IDOC's ie set the status to 31 for outbound idocs and to 68 status for inbound idoc's.
The IDOC's are not physically deleted because they are the documents used for either creation of a document in our system, or it is a document which tells us that this has been sent to our partner.
If you wanted to delete the idoc's physically then you need to archive them first and then only delete them.
thanks,
Mahesh.

Similar Messages

  • Delete Idocs not processed

    Hi, I know there are some Reports to execute which will delete Idocs. We have some Idocs that have status 51, and want to delete them.
    Any ideas?

    Hi,
    <b>1st way:-</b>
    IDOC Related programs
    1. Archive RSEXARCA and RSEXARCB  
    <b>2. Delete RSEXARCD </b>
    3. Read archiveRSEXARCR 
    4. Restore RSEXARCL 
    <b>2nd way:-</b>
    use FM <b>EDI_DOCUMENT_DELETE</b> .
    pass the IDoc Number to it and delete the one which you want.
    <b>3rd way:-</b>
    use the tcode WE11 or program RSETESTD to delete an IDOC
    Regards
    Sudheer

  • Delete IDOC before cancelling Billing Documents

    Hi Gurus,
    I want to Cancel Billing Documents , for this billing documents Idoc are already created with status "03" Data passed to Port OK.
    For this First shall i need to delete Idoc and then cancel the Billing documents or first i can cancel billing documents and then delete Idoc?
    Let me know which one i should do first.
    Regards,

    Hi,
    Are you refering to the outbound idoc send from Billing doucment.
    If yes, then fist check if the idoc has posted in the target system.
    Many times it happnes that even if outbound idoc is in 03 status, it might have actually posted in target system.
    And if it has not posted in target system, then delete the idoc and then delete the billing document.
    Also I suggest, after deletion ask the target system guys to have a look for the idoc data, if they receive it ask them to take no action on it.
    Let us know..
    Regards,
    SB.

  • Delete idoc segments

    Hi all,
    I need to delete the idoc segments for some condition based on the table KNVV value. It is basic type is DEBMAS05.
    I have used a wrapper FM ZIDOC_INPUT_DEBITOR as i could not find a user exit in IDOC_INPUT_DEBITOR.
    In test run we19, in debuggin i see the incorrect records/segments are getting deleted from IDOC_DATA which is the way i have coded. However when i see the generated idoc number i can see all the segments and the incorrect segments are not getting deleted. Let me know how to delete idoc segments through code.
    Note : I have tried in BD59 to reduce the idoc segment, but the condition for our requirnment cannot be possible in BD59.
      LOOP AT idoc_data.
        CASE idoc_data-segnam.
          WHEN 'E1KNA1M'.
            gwa_deb_hdr = idoc_data-sdata.
          WHEN 'E1KNVVM'.
            gwa_deb_sale = idoc_data-sdata.
          WHEN 'E1KNMB1'.
            gwa_deb_comp = idoc_data-sdata.
           APPEND gwa_aex_item TO gt_aex_item.
        ENDCASE.
       IF gwa_deb_hdr+0(3) = '004'.
          IF sy-tabix > 1.
        SELECT SINGLE kunnr vkorg vtweg INTO (lv_kunnr, lv_vkorg, lv_vtweg)
                FROM knvv
                WHERE kunnr = gwa_deb_hdr+3(10)
                   AND vkorg = gwa_deb_sale+3(4)
                   AND vtweg = gwa_deb_sale+6(2).
            IF sy-subrc NE 0.
              DELETE idoc_data INDEX sy-tabix.
            ENDIF.
          ENDIF.
       ENDIF.
      ENDLOOP
    Thanks,
    Senthil

    Just want to know.
    If the standard idoc segmets cannot be deleted through code or this doesnot work as i ran in test run we19?

  • How to Delete IDOC

    Hi
    can you tell me how to delete idocs from R/3 system
    Regards
    Nawa

    hi,
    1st way:-
    IDOC Related programs
    1. Archive RSEXARCA and RSEXARCB
    2. Delete RSEXARCD
    3. Read archiveRSEXARCR
    4. Restore RSEXARCL
    2nd way:-
    use FM EDI_DOCUMENT_DELETE .
    pass the IDoc Number to it and delete the one which you want.
    3rd way:-
    use the tcode WE11 or program RSETESTD to delete an IDOC
    but iDocs don't actually get deleted, just flagged with a deleted status (68). Transaction BD87 can do it, it does depend though on the existing Status of the iDoc though.
    Thanks,
    Vijaya

  • Any RFC To Archive and Delete IDOC from XI?

    hi,
    Is there any standard RFC available which archives and deletes the IDOC?
    In my scenario i have to delete the IDOC that has successfully transmistted an IDOC to a SOAP Receiver.
    client's requirement is to delete the IDOC immediately instead of running a SAP batch program scheduled sometime later.
    Let me know if there is one.
    Thanks,
    Tirumal

    Vijaya -
    I completely understand that scheduling the report every on a timely basis is the best way.
    But you know if i were the manager i could have taken decisions but since i am not i have to do what the client says. No other way.
    We will see.
    Thanks for your patience and helpful answers.
    - Tirumal

  • In 4.6C, How to delete IDoc stuck?

    Hi, experts
    after I load more than 20000000 records data from R/3 side, I found out there are too many IDoc stuck in R/3 side use SM58.
    How can I delete these IDoc in one time? the T-CODE 'WE11' and the program 'RSETESTD' can not use in my 4.6C system.RSETESTD.

    try BD87

  • Tool for Mass deletion Idoc

    Hello everybody,
    We have a little problem with our ALE....We have generated 2 000 000 idoc by error in our Sender System..all the idoc have the statut 30 (generated)...
    We're looking for a programm or a transaction to edit or delete these idocs...(we didn't find it)
    Is it possible ?
    We are in 4.6C version
    Thansk for your help

    If you do not want the IDocs, which I am guessing is the case based on your question, you could use transaction code SARA to archive the IDocs.  If you are not familiar with SARA, there are some steps you will need to complete to setup variants for the Archive run.
    1. Go to WE47 and check whether you have status code 30 setup for archiving possible or not.  When you double click the status code it brings up the details for the status.  There is a section for "Archiving"; it should be set to "Poss.".
    2. Go to transaction code SARA, enter Object Name = IDOC and enter.
    3. You will need to go to the Customizing section of Archive Management and setup the Test run variant and Production run variant for the Delete Program (RSEXARCD) .
    4. When you click Archive, you will be able to create a variant for the Archive program run (RSEXARCA).  At this point you can specify "Do not create archive file" if you do not want the IDocs archived to a file.
    Hope this helps.  Best of luck.
    Regards,
    Stan

  • Delete IDOCs status 64

    Hi Community,
    after system copy some HR-Org replication IDOCs got stuck in status 64 "ready to be transferred to application".
    I would like to delete them just to make sure they are not accidentally processed at a later point in time.
    Any idea of how to delete them or change status? BD87 & related tools don't seem to make the job.
    I will reward points for helpful replies.
    Thanks in advance and greetings
    Julian

    Hello,
    You can archive Idocs via SARA transaction, but before that you have to check in customizing if the status 64 is ready to be archived. You can do this in transaction we47 --> choose the status 64 and there is on part about archiving, the radio button should be picked as in the option 'Poss'.
    Thats all!
    Best Regards!

  • Unable to delete IDoc meta data

    Hi,
        When I'm trying to load the IDoc meta data from IDX2 it is telling first delete the old one and then reload. But, the problem is we are unable to see the already existing IDoc meta data.
    Can some one suggest how to see meta data all the loaded IDocs.
    Regards,
    Jeevan.

    Hi Jeevan,
    You may be checking for the IDoc meta data in the wrong port.
    Make sure that you are looking in the correct port.
    >>Can some one suggest how to see meta data all the loaded IDocs.
    1. In IDX2 expand the Port that you are trying to import the IDoc.
    2. Locate the IDoc type in that port and hit Delete.
    Thanks
    SaNv...
    Edited by: Sãnthosh Kûmãr  V on Oct 23, 2008 11:20 AM

  • Archive or Delete Idocs

    Hi gurus,
    We are trying to come up with a plan for BW idocs. I have been asked to analyze
    (1) Should we delete or archive (PROs and CONs)
    (2) If to delete, how many month to delete and frequency
    (3) If to archive, how many months to archive and frequency.
    Could you guys give some insight into this or tell me where should I begin my analysis from.
    Ankit

    Hi,,
    Please check this link for ur perusal
    Performance Aspects of data archiving>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/91573601-0b01-0010-08bb-f2b38db0c52c
    on tape archiving frequency.
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/a9f87f4b8a11d189510000e829fbbd/frameset.htm
    thanks

  • Deleting Idoc

    how to delete an inbound/outbound idoc stored in database . 
    consider in partner profile trigger by background program is selected. so whenever an idoc is generated both for ale/edi they wont start the posting program . Now we can see this idoc  using we02. My need is i want to delete this idoc without  processing further. Similar for outbound idocs too.
    Regards
    David Boon.

    Sandro Garofano,Michal Krawczyk,Archana
    Thanks all for your answers. WE11 itself solve my question.
    I worked with WE11 but using BD87 i couldn't proceed.
    How to change the status of a idoc using bd87.
    Regards
    David Boon

  • Deletion IDoc

    Hy everybody,
    My project ask me to write a program which will be able to create an IDoc where it deletes another IDoc where his field LOGSYSTEM has been changed.
    E.G.
    Message Type COSMAS with  LOGSYTEM A has been sent to the right system.After  that the LOGSYSTEM has been changed to B so it has to go now to the B system but it has been deleted to the A system also.
    I heard I have to use the FM MASTER_IDOC_DISTRIBUTE but I don't know how.
    Anybody could help me please?
    Regards,
    Mohamed.

    Hi,
    Not sure, whether it works for u
    data: begin of itab_edidc occurs 0.
            include structure edidc.
    data: end of itab_edidc.
    data: begin of itab_edid4 occurs 0.
            include structure edid4.
    data: end of itab_edid4.
    select * from edidc
             into corresponding fields of table itab_edidc
            where docnum = p_idocnum                      
              and status = 53
              and mestyp = 'COSMAS'.
    DELETE edidc FROM TABLE itab_edidc
    Also u check the field for target_client .
    thanks\
    Mahesh

  • Running RSRLDREL to delete IDoc links

    Hi.
    Can anyone give recommendations on how to run RSRLDREL to clean up obsolete IDoc links from tables IDOCREL and SRRELROLES. Which link types can be deleted and which ones should be kept.

    I am intrested too! Please if you know the answer already, could you please let me know?
    Kind regards,
    Roy

  • How to Delete IDoc by Sara Transaction without create a file

    Hi guru´s
    I have a problem.
    I am using SARA transaction for Archiving IDoc, but I need to execute and eliminate recods without create a file. In R3 version we have this option in RSEXARCA, but in ECC 6.0 not.
    How to execute it?
    Some one have the same problem?
    Do you have any documentation about Archiving in Ecc 60.0?
    Thanks in Advance.
    B. Regards
    Cristina

    Hi guru´s
    I have a problem.
    I am using SARA transaction for Archiving IDoc, but I need to execute and eliminate recods without create a file. In R3 version we have this option in RSEXARCA, but in ECC 6.0 not.
    How to execute it?
    Some one have the same problem?
    Do you have any documentation about Archiving in Ecc 60.0?
    Thanks in Advance.
    B. Regards
    Cristina

Maybe you are looking for