Deletion of IDOCs

Hi All ,
    How can we delete those Idocs which are not in use  in BW side , any suggestions please for this . Can we delete them by any table or any FM . will it affect to BW if we do it apart from performance optimization :).
  Any suggestion Please .
  With Regards
Vikas
Message was edited by: vikas sharma

Hi Ian,
Welcome to SDN.
Please try program RSETESTD.
Regards,
Ferry Lianto

Similar Messages

  • RSETESTD program to purge IDoc entries won't delete certain IDoc records

    Hello experts,
    I am in the mist of purging the IDoc entries in my system by using RSETESTD (WE11) program to delete the IDoc entries.
    As far as I know, this program will delete the IDoc entries regardless of the status.
    While doing the testing, I find out that when I filter the program to delete IDoc entries from certain date range (which results in WE02 shows there is an IDoc entries with the status 51 and 53 in the range that I selected), the program only select and will run the deletion for IDoc with status 51, but not 53.
    It will show that "No IDoc is selected" when I tried to delete IDoc with status 53. I double check and I found out that in that date range that I selected from WE02 transaction, there is around 17 of IDoc records with status 53, which is not deleted/detected when I want to delete it using RSETESTD.
    Can someone help to enlighten me on why this behaviour is happening please? Are there certain type of IDoc records that this program can't delete? I find out in other system, I have no problem to delete IDoc with status 53 records.
    Thanks and Regards,
    Shakir

    check if the change date is outside your entered date range

  • Mass deletion of IDOC

    Hi,
    I have experienced alomost 7K IDOCs in errors. We need to delete them ASAP. Can you Let me know how to perform the Mass deletion of IDOCs ?
    Thanks in advance,
    JIgar

    Hi,
    Thanks a lot for responding. I had tried "SARA" Transaction and had put in "IDOC" as an ARCHIVING OBJECT. After that when I click on "DELETE"; I do not find any way where I can input the number of IDOCs to be deleted.
    Can you help me with this?
    Meanwhile I found one Program "RC1_IDOC_SET_STATUS" through which we can change the Status of the IDOC from 51 to 68. And we can delete the Workitem using TCode "SWWL".
    Thanks,
    Jigar

  • Idoc is changed toFlag deletion. status 31. How can i delete that idoc?

    Hi,
    The IDOC is getting generated and it is placing in Workflow Inbox in transaction SBWP.
    Now we have changed to flag deletion. status 31. How can i delete that idoc.
    message type: crefet
    kindly help me on this issue.
    Regards,
    Gaya

    Hi
    IDOC Related programs
    1. Archive RSEXARCA and RSEXARCB
    2. Delete RSEXARCD
    3. Read archiveRSEXARCR
    4. Restore RSEXARCL
    U can also use FM EDI_DOCUMENT_DELETE .put IDoc Number to it and delete the one which you want.
    if helpfull give rewrad point
    Thanks
    Amit Shivhare

  • Deleted all IDoc channels but can still receive IDocs in XI

    In our test system I deliberately deleted all IDoc Sender communication channels to test something. I then discovered that the XI system is STILL receiving IDocs!
    I also refreshed the runtime cache. How can this be?
    BR,
    Tony.

    Hi Prateek,
    You said:
    "It is nowhere written that "you do need it"
    The SAP documentation quoted in the previous post clearly states:
    "You require the IDoc adapter to connect SAP systems (or external systems) to the Integration Server using IDoc communication. "
    So it is written that you "do need it", even if it seems you don't.
    And I ask again: Why be given the possibility to create an IDoc sender adapter in the system if you don't need it? There is a basic philosophical question that is not being answered here!
    BR, and thanks so far all for replies,
    Tony.

  • Deleting an IDOC

    Hi,
    There are some Duplicate IDOCS in the system, i want to delete them. can any one please tell me the procedure of deleting the IDOC before processing them.
    Regards,
    Ravi G

    Hi,
    Delete/Remove of IDocs from R3
    Created change pointers related to message types like MATMAS and LOIBOM by keeping specific conditions (running a background job). so server created lakhs of Idocs. Due to this sever is running very very slow. 
    Is there any facility to delete/remove Idocs from SAP R/3. If yes what is is next step. Now what should I do. 
    Take a look at running report RBDCPCLR from SE38 in the backgorund. You will probably have to up a varient we run the report weekely and keep the last 6 weeks of data. You will be removing from table BDCPS take a look and it will all make sense.
    Report RBDCPCLR selection screen is for deleting change pointers. My question is deleting IDocs which are created by Change Pointers. Please guide me to next step. What should I do...... 
    Aplogises thought that we were talking change pointers .... 
    From note 40088 
    "There is no special deletion program for IDocs. 
    Use the archiving programs. IDoc is a separate archiving class. The following programs are available: 
    1. Archive RSEXARCA and RSEXARCB (as of Release 3.0C) 
    2. Delete RSEXARCD 
    3. Read archiveRSEXARCR 
    4. Restore RSEXARCL 
    The Idoc archiving is checked against the status. The statuses which can be archived and those that cannot be archived are stored in the "Status maintenance" table. You can change the standard settings. Menu path: 
    Area menu "WEDI", control, status maintenance. 
    The archiving procedure is described in the documentation 'IDoc interface for EDI'."
    I tried as like you said, first tried with RSEXARCA (Archived) then deleted from SAP R/3 RSEXARCD(Deleted from R/3) I tried this for few IDocs and it worked fine. 
    but after tried for more no of IDocs(20000). then given like 'last create archive file without data objects was deleted' for report RSEXARCA.   and not showed any thing for report RSEXARCD. 
    I am not that familiar with the transaction but it may be possible to break down the IDOCS in to batches of 5000 and run these in the background ??
    Have you checked the customizing for object 'IDOC' - I mean not only in transaction SARA but also the application-related customizing. There might be a parameter, defining the minimun-duration time of idocs ... unfortunately I don't remember the transaction ...
    Archiving IDOCs for WM system
    I use program RSEXARCA to archive the IDOCs that do not required posting. I wanted to permanently delete those from system; but donu2019t see the archive file in SARA. 
    In the 46C there is object IDOC. 
    I regularly run program RSEXARCA in SE38. And archive IDOCs that do not require postings anymore. 
    Documentation of this program in SE38 does not talk about archiving & deleting, I'd believe that it is creating an archive file that I should be able to permanently delete from the system. In transaction SARA for object IDOC, I do not see any files for me to delete. 
    I also regulary delete IDOC, but I use RSEXARCB in the background job. 
    Since you mentioned 'delete' I assume that both programs RSEXARCA and RSEXARCB Archive & Delete at the same time. 
    Please use Object Idoc from SARA. If you use this it will write file using program RSEXARCA and delets using RSEXARCD.

  • How can I delete the IDOC basic type and extension?

    Hi,Expert:
       There are some idoc basic types and extension which are not used any more in our system.Now we want to delete them.but when I delete them using tcode:WE30, system said that the basic type or extension has been released and they can not be deleted.
       How should we do to delete these idoc types?
    Thanks

    From the top menu > edit> cancel release then try to delete
    a®s

  • Delete an IDOC

    Hi,
    Few IDOCS are in error 51 status.I require to delete those IDOCS.
    I use WE11 to delete the IDOCS, and it is displayed as deleted status.
    But when I see in WE02,I could see the IDOC.
    Please advise how to delete the IDOCs.
    Regards,
    Payal Saxena

    Hi Guys,
    I noticed that WE11 delete all IDOC. You can't specify to delete specific IDOC status.
    Let say I only want to delete those IDOC which only status 53 (which was succesfully posted). How shall I run WE11 to acheive this?
    Regards,
    Eida

  • How to delete a IDOC which has the status 51.

    Hi,
    I am trying to delete the IDOC(status 51) from WE02. But not able to delete out, because set delete indicator is disable mode.
    Please let me know is there any way to delete the failure IDOC which is status 51.
    And also let me know how to findout the user or usergroup  who receives the mail through WORKFLOW when an IDOC was failed.
    Thanks,
    Vinay.

    hi vinay,
    Tx. WE11
    Prg. -- RSETESTD
    In the abovesaid program the following fm is used for deletion of idoc. But before the deletion of idoc`s there are several other procedures to be followed. For further reference, explore the abovesaid program.
    CALL FUNCTION 'EDI_DOCUMENT_DELETE'
            EXPORTING
              document_number        = gd_edidc-docnum
            EXCEPTIONS
              idoc_does_not_exist    = 1
              document_foreign_lock  = 2
              idoc_cannot_be_deleted = 3
              not_all_tables_deleted = 4
              OTHERS                 = 5.
          IF NOT syst-subrc IS INITIAL.
            MESSAGE ID syst-msgid TYPE syst-msgty NUMBER syst-msgno
                WITH syst-msgv1 syst-msgv2 syst-msgv3 syst-msgv4.
          ENDIF.
    This is the code found in the abovesaid program.
    Still if you`re not satisfied with my answer, revert back to me with my server details.
    Else reward points.
    Regards
    GUDURI

  • Delete Outbound Idoc Segment based on target system

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Use user-exits .
    if edidc-RCVPRN eq 'ABCD'
    process data .
    else
    call FM segment_delete ( use ur parameters )
    endif.
    Edited by: anil sasidharan on Feb 18, 2009 12:40 PM
    Edited by: anil sasidharan on Feb 18, 2009 12:46 PM
    Edited by: anil sasidharan on Feb 18, 2009 12:48 PM

  • Delete Outbound Idoc Segment based on taget system

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Hi,
        Make use of Segment level filtering in distribution medel (BD64).
    Thanks,
    Asit Purbey

  • Delete Outbound Idoc Segment

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Hi,
        Make use of Segment level filtering in distribution medel (BD64).
    Thanks,
    Asit Purbey

  • Deletion of Idoc Segments

    Hello everyone,
    I would just like to ask on how to delete a specific segment of an Idoc aside from using transaction WE19. I would like to preserve the Idoc that's why I'm looking for another transaction that can be able to perform the deletion.
    Thanks in advance!

    in WE19 you cannot modify an existing IDOC.
    you can open an existing IDOC, but with any change SAP creates a new IDOC which has the current values, the old IDOC is then still as it was before.
    Try it, if you back out after saving your changes,  then you see the new IDOC number in WE19 initial screen

  • To delete the IDOC Segment in the Inbound i.e.Item Data

    Hi All,
    Idoc is received for orders05 as inbound.
    The IDoc Data contains two levels of item data
    i.e. Segment E1EDP01 - In this we Pass only the quantity.
          in the Sub Segment of item E1EDP19 - Customer Material in the segment IDTNR with qualifier 002.
    The same segment is repeated again but the customer material is different.
    Now need to check the material, if it is different, i need to delete the entire second item segment and put the customer material in the Segment E1EDP19 which has empty field.
    His there any Function Module or so to delete the incoming data of the idoc through inbound?.
    Could you please let me know if there any way to do the same.
    Thank you.
    Regards,
    Dinesh.

    yes here you can access only one segment, if you don't control that here, then the information will be populated to xvbap. or else you can even try to implement the error handling exit EXIT_SAPLVEDA_008 /EXIT_SAPLVEDA_011
    already item information will be populated to xvbap  table . so try to delete the item from xvbap also

  • Deleting an idoc segment in memory

    I am using the user-exit EXIT_SAPLEINM_011 to delete a segment for materials that I do not want to send to the interface. The material is in the E1EDP19 segment. I search for all E1EDP19 segment where material is stored and get the PSGNUM for each materials that needs to be deleted and store the PSGNUM in a table (LT_PSGNUM). Then I loop throught the PSGNUM table to read each PSGNUM and delete all entries in the internal table EDIDD where PSGNUM matched PSGNUM and SEGNUM so that I can delete parent and children. The problem is somehow it deletes more than what I intend to delete. I have total 28 segments and if deleted cofrrectly I should get only 23 segments instead I get only 4 segments.
    Any help is appreciated and thanks in advance.
    - Vijay

    loop at t_edidd into ls_edidd.
        IF ls_edidd-SEGNAM = 'E1EDP19' and ls_edidd-sdata+0(3) = '001'.
          lv_tabix   = sy-tabix.
          lv_psgnum = ls_edidd-psgnum.
          lv_e1edp19 = ls_edidd-sdata.
          ls_matnr-matnr = lv_e1edp19-idtnr.
    *--- Select the maximo relevant material from MARA
          SELECT SINGLE matnr zzmaximo_relvnt INTO ls_matnr FROM mara
            WHERE matnr = ls_matnr-matnr
            and   ( zzmaximo_relvnt = c_mxtrk  OR
                     zzmaximo_relvnt = c_mxvw ).
          if sy-subrc ne 0.
            append lv_psgnum to lt_psgnum.
          endif.
        endif.
      endloop.
      loop at lt_psgnum into lv_psgnum.
        loop at t_edidd into ls_edidd where segnum = lv_psgnum or psgnum = lv_psgnum.
          lv_tabix = sy-index.
          delete t_edidd index lv_tabix.
        endloop.
      endloop.

Maybe you are looking for

  • How can I cope iPhotos from one to another user on the same mac

    How can I copy my iphotos from on user to another on the same mac?

  • Hotsync with bluetooth or network from TX to Windows 7 Professional 64 bit (with XP option)

    Hello! I have read and tried to follow the posts on these support boards plus hints given by Palm about this predicament.  I think I have set up the TX for both Bluetooth and local wireless network.  However, even if the TX recognizes my computer, it

  • Two Dimension Hierarchys based on one Logical Table

    Is it possible to have two dimesion hierarchys based on one logical table? Suppose we have the following case: Accounts Table Code Name Category Subcategory Level 1 Level 2 Level 3 I would like to have one dimension Total > Category >Subcategory > Co

  • GL posting AA

    I would want to make it mandatory for a couple of GL postings relating to asset accounting to specifiy transaction type as a criteria when posting as we have AA reports based on transaction types. I canmake it work using a validation if they use tran

  • Oracle Data Guard: Physical and Logical

    I have a Primary database and have created a Physical Standby on another node. The physical standby is kept in synch via REDO Aply - online redo logs. QUESTION: is it possible to create a Logical Standby off of the Physical Standby? I dont think so s