Editing idoc

Hi All,
There is a  idoc dated is 29/04/2008 and it was failed idoc with status 51.which has to be posted to P1.
When we tried to edit the post the idoc on 10/05/2008, it is getting posted on that date ie., 10/05/2008. ie P2
How can we edit the idoc and post back in the same period P1 when the idoc is generated rather than posting it to P2.
Any one help me plz.
cheers
Sri

Hi Srihari Bolla 
go to WE 05 select your inbound IDOC Number and double clicl on IDOC number then go to data record and go to segment and double click on segment go to data record and then go to display change hare you can put correct data and save it then go to tcode bd87 keep idoc number and process it
second method go to we19 and hare you can change your segment data and process then go to inbound function module put your functional module fare ind execute it
you can find functional module of message type in table edifct
PS:. Reward point
Thnaks
Amit Shivhare

Similar Messages

  • How to edit Idoc data in inbound processing

    Moved to correct forum by moderator
    Hi All,
    How to edit idoc data in inbound processing ? We have a custom FM in inbound scenario and requirement is to update a value in idoc, this value comes after certain processing in custom FM.
    I tried editing it through
    EDI_DOCUMENT_OPEN_FOR_EDIT
    EDI_CHANGE_DATA_SEGMENTS
    EDI_DOCUMENT_CLOSE_EDIT
    but there is problem in this approach. By this procedure two idocs are created in system, one with original data and one with modified data. We want only one with modified data.
    We do not want any direct database table updates.
    Please provide appropriate solution.
    Note : We are not changing status record. Please do not post replies related to status change
    Edited by: Matt on Nov 19, 2008 2:24 PM

    Hi,
    You can edit the idoc by doing the following steps:-
    1. Goto WE02 transaction and give the IDOC number and execute
    2. Once the required IDOC gets retrieved then double on the text pad icon beside the segment which you wanted to change.
    3. Select the Data Record at the top and click Display <-> Change option, which will enable you to change the data in that segment.
    4. After doing the step 3 then click the save button to save your changes.
    5. Then system will generate a new idoc number to store the actual data and your current idoc will hold the new data and the idoc will be in 69 status.
    6. Execute the Program RC1_IDOC_SET_STATUS by giving your idoc number and status as 69 and new status 64 and remove the test flag
    7. Then the IDOC will be in 64 status and you can reprocess the idoc with the help of the program RBDAPP01 by giving the idoc number.
    The above is the entire process for editing the error idoc and reprocessing it again.
    I hope I am clear and you understood the entire flow of editing and reprocessing an idoc.
    Thanks,
    Mahesh.

  • I don't want to disply status '70' idoc along with edited idoc

    Hi,
    if i edit the existing idoc ,I don't want to disply status '70' idoc along with edited idoc.
    Status 70 contains Original data of idoc before editing.
    Regards.
    vanitha.

    Hi Vanitha,
    Welcome to SDN.
    You can use program RC1_IDOC_SET_STATUS to change the IDoc status after the edited is done.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Edited Idoc Segments

    Hi
    I edited some Idocs and reprocessed them after editing. Is there any way we can find after reprocessing what changes were made to Idoc.
    Also another Idoc is showing an error, example company code does not exist.But the segments are not in red. Usually when there is an error in the idoc, the segments which have an error are in red. But in my case the segment are not red.
    Responses will be highly appreciated and rewarded.
    DC

    Hi,
    >>But the segments are not in red. Usually when there is an error in the idoc, the segments which have an error are in red. But in my case the segment are not red.
    just to add what Sergio said
    this is not a usuall case I'd say only very few IDocs provide the info
    with red segments about where the error is
    most of the standard IDocs never show that - but that's the beauty of it:)
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

  • Edit Idoc data and reprocess..?

    I have created one inboubd idoc this idoc is failed..
       i want to change some data in the idoc and reprocess the idoc ..how can i do this..?

    Hi,
    You can right click on the Idoc and then open the same in edit mode.
    Also in the menu tabs, you will find an option EDIT AND REPROCESS.
    This way you can process the idoc and post the same with correct values.
    PS: Not infront of SAP system so not able to tell the exact path. But do some R&D you will get the same.
    Hope this wud be of help!!!
    Regards,
    Lalit Kabra

  • Edit Idoc destination port in control header

    Hello to all,
    I've generated a lot of idoc's with the wrong port name in the idoc control header.
    So all Idoc's went in status 29 "Error in ALE service"
    Is there a way to set the receiver port in the idoc control header manually?
    Please help
    Thanks
    Christian

    Hi,
    Go to we02 and  give your IDOC number and execute.
    After executing  double click on control record> click on Partner tab->click on control record in menu --->
    Display->Change   option.Here we will chnage the port.
    Regards,
    Venkat.

  • How To Edit Failed IDocs Through Report ?

    Hi
    I have the requirement of editing (Modifying) IDocs through a report program..
    ( My program displays the content of a specified segment of failed IDocs in the ALV format..
    Then the changes made to those fields in ALV have to be updated in those failed IDocs.. So that i can reprocess the IDocs.. )
    Is there any BAPI or BADI or Any other solution to edit IDocs through a report....??
    I dont want to use BDC as the report program is meant for editing huge number of failed IDocs..
    Please help me..
    Thanks a lot,
    Raj

    There is a similar POST open in DATA TRANSFER FORUM...

  • How to edit inbound idoc with data errors in multiple segments and reproces

    Hi friends,
    i have a requirement for error handling of inbound sales order(ORDERS04) without using WORKFLOW and WE19.
    i have seen some function modules like edic_* ..
    but my doubt is how to edit the error data(how can i identify the particular error fileds in the segments)and how to reprocess the same idoc.
    Please help me...
    Thanks in advance

    Hi Narasimh,
    Please find the following steps to edit IDOC segment after you find the error using WE02.
    The example codes can be found in website 
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    STEP 1 - Open document to edit
    CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
           EXPORTING
                document_number               = t_docnum
           IMPORTING
                idoc_control                  = itab_edidc
           TABLES
                idoc_data                     = itab_edidd
           EXCEPTIONS
                document_foreign_lock         = 1
                document_not_exist            = 2
                document_not_open             = 3
                status_is_unable_for_changing = 4
                OTHERS                        = 5.
    STEP 2 - Loop at itab_edidd and change data
    LOOP AT itab_edidd WHERE segnam = 'E1EDKA1'.
      e1edka1 = itab_edidd-sdata.
      IF e1edka1-parvw = 'LF'.
        e1edka1-partn = t_eikto.
        itab_edidd-sdata = e1edka1.
        MODIFY itab_edidd.
        EXIT.
      ENDIF.
    ENDLOOP.
    STEP 3 - Change data segments
    CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
               TABLES
                    idoc_changed_data_range = itab_edidd
               EXCEPTIONS
                    idoc_not_open           = 1
                    data_record_not_exist   = 2
                     OTHERS                  = 3.
    STEP 3a - Change control record
    CALL FUNCTION 'EDI_CHANGE_CONTROL_RECORD'
           EXPORTING
                idoc_changed_control         = itab_edidc
           EXCEPTIONS
                idoc_not_open                = 1
                direction_change_not_allowed = 2
                OTHERS                       = 3.
    STEP 4 - Close Idoc
    Update IDoc status
    CLEAR t_itab_edids40.
      t_itab_edids40-docnum      = t_docnum.
      t_itab_edids40-status      = '51'.
      t_itab_edids40-repid       = sy-repid.
      t_itab_edids40-tabnam      = 'EDI_DS'.
      t_itab_edids40-mandt       = sy-mandt.
      t_itab_edids40-stamqu      = 'SAP'.
      t_itab_edids40-stamid      = 'B1'.
      t_itab_edids40-stamno      = '999'.
      t_itab_edids40-stapa1      = 'Sold to changed to '.
      t_itab_edids40-stapa2      = t_new_kunnr.
      t_itab_edids40-logdat      = sy-datum.
      t_itab_edids40-logtim      = sy-uzeit.
      APPEND t_itab_edids40.
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
           EXPORTING
                document_number  = t_docnum
                do_commit        = 'X'
                do_update        = 'X'
                write_all_status = 'X'
           TABLES
                status_records   = t_itab_edids40
           EXCEPTIONS
                idoc_not_open    = 1
                db_error         = 2
                OTHERS           = 3.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Reg: Idoc edit

    Hi All
    How cen we edit the Idoc .After edit the status becomes 32
    Is there any standard programme for editing idoc.
    could some ls help me.
    Regards
    Raj

    IDOC Status
    Reward Points..

  • Editing an Outbound Idoc and resending

    Hello all,
    I have looked but can't find the answer to my questions.
    I have an outbound idoc (invoice) - I have used BD87 to edit the idoc.  the idoc is now in a status of 32.
    How do I resend this idoc?
    when I hit process I am taken to a screen showing me
    Idoc          |Old Status|New Staus|Status Text              |Error Text
    5917058     |32            |               |Doc was edited     |Changed data record was saved
    How do I resend the edited idoc?
    I know the answer is simple - I just don't see it.
    Thanks
    Edited by: Helen Wadino on Nov 11, 2008 3:57 PM

    I believe you created a new idoc num with the BD87 after editing. The old idoc num is still there and probably failed. Did you try re-submitting the new stat 32 idoc in BD87?
    Or, you may want change the status of the idoc:
    PARAMETERS: docnum like edidc-docnum.
    update edids set status = '30' where docnum eq docnum and status eq '03'.
    Edited by: Tom M. on Nov 11, 2008 4:00 PM
    Edited by: Tom M. on Nov 11, 2008 4:01 PM
    Edited by: Tom M. on Nov 11, 2008 4:07 PM

  • How to Copy and Edit an Idoc

    I want to copy an idoc of basic type ORDERS05, then change the material number and bring it into SAP could someone guide me how I can do it. If possible please suggest more than one ways because I dont have authorization to some of the transactions in WEDI. Will certainly give points for right answer. Thanks for reading.

    Hi,
    Please find the following steps to edit IDOC segment after you find the error using WE02.
    The example codes can be found in website
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    STEP 1 - Open document to edit
    CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
      EXPORTING
        document_number = t_docnum
      IMPORTING
        idoc_control = itab_edidc
      TABLES
        idoc_data = itab_edidd
      EXCEPTIONS
        document_foreign_lock = 1
        document_not_exist = 2
        document_not_open = 3
        status_is_unable_for_changing = 4
        OTHERS = 5.
    STEP 2 - Loop at itab_edidd and change data
    LOOP AT itab_edidd WHERE segnam = 'E1EDKA1'.
      e1edka1 = itab_edidd-sdata.
      IF e1edka1-parvw = 'LF'.
        e1edka1-partn = t_eikto.
        itab_edidd-sdata = e1edka1.
        MODIFY itab_edidd.
        EXIT.
      ENDIF.
    ENDLOOP.
    STEP 3 - Change data segments
    CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
      TABLES
        idoc_changed_data_range = itab_edidd
      EXCEPTIONS
        idoc_not_open = 1
        data_record_not_exist = 2
        OTHERS = 3.
    STEP 3a - Change control record
    CALL FUNCTION 'EDI_CHANGE_CONTROL_RECORD'
      EXPORTING
        idoc_changed_control = itab_edidc
      EXCEPTIONS
        idoc_not_open = 1
        direction_change_not_allowed = 2
        OTHERS = 3.
    STEP 4 - Close Idoc
    Update IDoc status
    CLEAR t_itab_edids40.
    t_itab_edids40-docnum = t_docnum.
    t_itab_edids40-status = '51'.
    t_itab_edids40-repid = sy-repid.
    t_itab_edids40-tabnam = 'EDI_DS'.
    t_itab_edids40-mandt = sy-mandt.
    t_itab_edids40-stamqu = 'SAP'.
    t_itab_edids40-stamid = 'B1'.
    t_itab_edids40-stamno = '999'.
    t_itab_edids40-stapa1 = 'Sold to changed to '.
    t_itab_edids40-stapa2 = t_new_kunnr.
    t_itab_edids40-logdat = sy-datum.
    t_itab_edids40-logtim = sy-uzeit.
    APPEND t_itab_edids40.
    CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
      EXPORTING
        document_number = t_docnum
        do_commit = 'X'
        do_update = 'X'
        write_all_status = 'X'
      TABLES
        status_records = t_itab_edids40
      EXCEPTIONS
        idoc_not_open = 1
        db_error = 2
        OTHERS = 3.
    Hope this will help.
    Regards,
    Ferry Lianto

  • IDOC data transfer between 2 SAP Clients on same system

    HI All,
    i was transferring data through standard IDOC from table A609 in client 100(say) to client 301(say).
    Sender    u2013 100  (sender side)
    Receiver u2013 301  (receiver side)
    I did all configurations that were required for transferring data.
    But at receiving side i.e. client 301, data is not populating in the table A609.
    The status at sender side is:
    status 03: Data Passed to port OK.
    But the status is at the receiving side is:
    status 64: IDOC ready to be transferred to application (yellow light)
    My query is why the data is not getting populated in table at receiver end.
    Waiting for your responses.......

    Hi,
    Instead of using idoc ..
    You can write code in RFC function module and update the table directly.
    If it is a Application i mean transaction back end many tables need to update on that case Idoc is necessary other wise use RFC preferabble,
    Program RBDMANI2 for status 51 & 52
    Program RBDAPP01 for status 64 ,66                       "Run this Program By Passing Idoc number it will turn to Green and Table wil be updated
    Program RBDAGAIE for status 32 and 69 (Edited IDocs)
    Program RBDSYNER for status 26
    Program RSEOUT00 for status 30
    re-process IDocs failing in 29 status, use program RBDAGAIN.
    transactions WEINBQUEUE and WEOUTQUEUE to control the individual queues
    Regards,
    Prabhuads

  • Reprocess the IDOC without using BD87

    Can I  reprocess an idoc through a zreport in the background. can i use the program behind BD87 and use a submit statement?
    But BD87 genertes an output from which you have pick your idoc and reprocess it manually.
    Thanks,
    krishna.

    hi ,
    See the status of the record and process the below program using Submit report by passing Idoc number
    Program RBDMANI2 for status 51 & 52
    Program RBDAPP01 for status 64 ,66
    Program RBDAGAIE for status 32 and 69 (Edited IDocs)
    Program RBDSYNER for status 26
    Program RSEOUT00 for status 30
    re-process IDocs failing in 29 status, use program RBDAGAIN.
    Prabhudas

  • IDOC Monitoring urgent

    Hi SAPpers,
    Does anybody knows what is IDOC Monitoring?
    The step by step configuration for IDOC monitoring.
    Was is the purpose of that?
    What is the Tcode for monitoring IDOC?
    Thanks will be rewarded

    Hi,
    Use
    You can easily and effectively monitor inbound and outbound processing of IDocs using special reports and graphic displays. An agent can also be notified automatically using a workflow if an “emergency” occurs (active monitoring).
    Features
    The following tools are available for monitoring:
    ·        IDoc Display
    All the other fields of the control record are available as selection criteria as well as partners and messages
    -   IDoc numbers
    -   Ports
    -   IDoc types
    You can display a tree structure of the IDoc directly using the IDoc number. The IDoc list is displayed again if several IDocs are selected.
    ·        IDoc Statistics
    The IDocs are sorted and represented graphically according to predefined status groups. Lists and individual IDocs can be displayed using mouse clicks.
    ·        IDoc Search
    You can select IDocs according to their business content, that is, according to the data contained in the segments.
    ·        Error and Status Processing
    Error and status codes are defined for the IDoc transfer. These codes can be assigned to a workflow task, which informs the agent automatically in a procedure.
    ·        Monitoring the Inbound Queue
    If you can receive IDocs via qRFC, you can monitor the inbound queue using a special transaction.
    ·        Monitoring the Outbound Queue
    If you can send IDocs via qRFC, you can monitor the outbound queue using a special transaction.
    ·        Active Monitoring
    This function provides you with a report that informs you if the number of critical IDocs exceeds a certain threshold.
    Active Monitoring Locate the document in its SAP Library structure
    Use
    This report automatically informs the agents responsible if too many incorrect IDocs are found.
    Integration
    Active monitoring is not used for processing or reimporting of an incorrect IDoc. Exception handling of every incorrect IDoc is responsible for this.
    Activities
    You plan the report to run regularly with a variant. The variant also informs the report of the status values to be selected: If the critical status contains more IDocs than specified in the critical number of IDocs, a message is sent to a predefined recipient.
    The recipient receives the notification in the form of a work item displayed in their Business Workplace. If they execute the work item, the IDoc statistics are displayed with the values determined at the time of evaluation. The agent can display the current status of these IDocs using the Refresh function. The selection criteria which led to the notification are also used for this evaluation.
    Example
    An important customer orders goods using EDI on working days, between 8am and 6pm. These goods are to be delivered at 4pm the next day. To ensure that the delivery is made on time, the ordered quantity must be recorded by midday on the day of delivery. The active monitoring function is to be used at 8am every morning to determine whether there are any orders which could not be processed automatically. The report, therefore, is started at the same time every day and 0 is selected as the critical number of IDocs. The agent responsible is notified if any incorrect IDocs are found and can then manually process the outstanding orders by midday.
    For more information see
    Schedule Monitoring Job (example)
    A processing status is assigned to an IDoc during processing (e.g. Status03: Data Transfer to Port OK). These status values are in turn assigned to a higher level status group (e.g. Output: IDoc Transfer Successful). This assignment to a status group is referred to as Qualification. You can change the assignment of status values to status groups in the Edit Status Values transaction.
    Procedure
           1.      To edit the status groups, choose the ALE customizing transaction SALE ® Set-Up System Monitoring ® Set-Up IDoc Status Display ® Edit IDoc Status Values (WE47).
    A list of statuses which have been defined is displayed.
           2.      If necessary, choose This graphic is explained in the accompanying text. By double-clicking on the status that you wish to assign a different status group, the detail screen is displayed.
           3.      The status group is displayed in the Qualification field. Use the F4 input help for an explanation of the numbers.
           4.      Select Save.
    ExampleExample
    Status 25 (processing despite syntax error (outbound)) is assigned status group 1 = “Outbound: IDoc generated". Replace 1 with 5 for “Outbound: IDoc Interface error".
    Chek Tcodes in WE02 OR WE05
    Regards,
    Phani,
    Points If Helpful.

  • Enhanced Fields in IDoc Message Type CRMXIF_ORDER_SAVE_M

    Dear Experts,
    I have enhanced the Business Transaction with EEWB and is used in Complaint Handling scneario. Now, I need to send the IDoc for the complaints. So, I have used the Message Type CRMXIF_ORDER_SAVE_M for this. But this message type does not have the Custom Fields which were enhanced. When  I searched on the internet, I found the solutions to Re-generate the IDoc after adding fields in CRMXIF_CUSTOMER_H Segment. But when I try  to do that it is asking  for Access Key. I think there must be another way.
    Please guide me.
    Regards,
    Sreenivas Raju.

    Hey Sreenivas,
    Standard provided Idoc will not have segments for Z fields that you add using AET/EEWB. How did you try to regenerate Idoc? You need to use transaction BDFG to generate a custom Idoc.
    Follow the steps below.
    1. Create a Z function group.
    2. Run BDFG. Enter 'CRMXIF_ORDER_SAVE' in parameter for function Module and press enter. It will list the available message types including 'CRMXIF_ORDER_SAVE_M'
    3. Press Create button in application toolbar. A popup will come. Give a name for new message type. Another popup will come, give names for inbound/outbound functions using the Z FG you created, suitable development class and press enter.
    4. Now view your message type. Go to the idoc type and release it.
    5. Finally selecting your new Z message type, go to menu Edit->Idoc Type and Segment Type->Release. Release your objects. There may be a few popups, respond accordingly.
    6. Maintain partner profile settings. Process code will be APLI or APLM as per your need.
    Voila!! You have your new message type having segments for Z fields.
    Let me know the outcome.

Maybe you are looking for