Idoc in status 12 doesnt reach sap pi

Hi folks,
I have an Idoc2file scenario which is working fine in most cases but occasionnaly a message gets lost:
SAP is sending the Idoc to port (goes to stat 03).
There is no rfc error, SM58 and table ARFCSSTATE is empty.
I run RBDMOIND and status goes to 12 meaning delivery is ok.
However in PI, transaction IDX5 I dont see the above Idoc and of course nothing in msg monitoring as well.
Have you any idea?
I am sending the same Idoc type and 20 Idoc goes fine through PI but 1 fails as described above.
Thus it is definitely not a configuration issue, please dont post howto links or blogs.
thanks

I'd agree with Werner's analysis above, there is (usually) a simple reason - a missing [COMMIT WORK|http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm] (and that's the only reason I've encountered so far). The explanation is quite simple: If you have checked in the partner profile send immediately and create an IDoc, the IDoc layer will attempt to send the IDoc in an update process. Without the COMMIT WORK, the update function for sending the IDoc is never triggered and your IDoc ends up in status 03.
The next time you run BD75 (or program [RBDMOIND|http://help.sap.com/saphelp_nw70/helpdata/en/0b/2a66af507d11d18ee90000e8366fc2/frameset.htm]) for converting the IDoc status from 03 to 12 for successfully transmitted IDocs, SAP will check the outbound RFC queue and not find anything (due to the missing sending attempt in the update function) and thus change the IDoc status from 03 to 12 (despite the fact that SAP never even attempted to send it, but at this stage this is no longer known).
So in your sending SAP system everything looks completely fine and you have absolutely no indication that anything went wrong. This got me in trouble the first time I encountered this, because I kept arguing with somebody on the receiving side, that they must have received the IDoc and everything is completely fine on my sending side. What I had missed is that I shouldn't make such bold statements without actually checking the code generating the IDocs (and in my case it was custom code that I hadn't seen before)...
Once you change your partner profile to collect IDocs the sending is no longer triggered in the update process, but instead has to be triggered manually (or job) via report [RSEOUT00|http://help.sap.com/saphelp_nw70/helpdata/en/0b/2a6613507d11d18ee90000e8366fc2/frameset.htm]. Similarly WE19 has a completely different COMMIT handling, which is one reason why I never like to do any real testing there.
Anyhow, now I'm smarter and as suggested by Werner my checklist includes analyzing the code that generates the IDoc. One classic example I can think of for successfully sending some and not all is IDoc generation via change pointers, where the COMMIT WORK is often done infrequently (like every 20 IDocs). Here sometimes the COMMIT WORK for the remainder of the IDocs is missing (e.g. if 23 IDocs are created, a COMMIT is done after the first 20, but not for the remaining 3).
For those interested, check out function [EDI_OUTPUT_NEW|http://help.sap.com/SAPhelp_nw70/helpdata/en/dc/6b7ec743d711d1893e0000e8323c4f/frameset.htm] (it's so great that we can actually read the SAP code to figure out what's going on) - you'll see that the sending process is triggered (if send immediately is checked in the partner profile) via update task. Note that this means that [database commits via native SQL or implicit commits|http://help.sap.com/abapdocu_70/en/ABENDB_COMMIT.htm] are not sufficient to trigger the sending process.
Cheers, harald
p.s.: And if you don't have any custom code, then it might help to check [OSS|https://service.sap.com/notes] for any bugs that could cause this. See for example [OSS note 1501225 - Generated IDOCs are not sent occasionally|https://service.sap.com/sap/support/notes/1501225] for the very specific component BW-BCT-ISR-PIP (though unfortunately this note doesn't say if there actually are entries in the outbound RFC queue).

Similar Messages

  • SAP IDOC shows status 03, but no file is written

    We have SAP configured to generate delivery IDOCs when the SAP Delivery document is posted/saved. The IDOC is initially created with status 30. There is batch job RSEOUT00 every 30 mins that collects the IDOCs in status 30 and converts to status 03. When we review the IDOC processing screen, even though they are in status 03 and successfully written outside of SAP to a folder, there is no file in the folder. We are missing IDOCs. There is no real time external system integration. We are simply trying to write IDOC files to a folder.
    Can you some please share your insights on how to resolve this issue?
    Thanks in advance
    Satish

    RFC destinations, Logical systems, and then Partner profiles needs to be maintained. and You need to create the Distribution model  in sender system.
    Partner profiles maintained in both the systems, soure Outbound properties
    Target Inbound properties.
    if you have two clients in system it will be easily you can check.

  • IDOC Status, Tracking in SAP PI/PO Single Stack

    Hi All,
    My PO version: 7.4, SP4. I am not sure my questions below are still a limitation in current PI/PO single stack systems, and hence requesting your help for the same.
    1) Is there a way we can track outbound idocs in SAP PI/PO single stack similar to PI abap stack IDX5? ( Note:- I couldn't find any option in IDOC monitoring in single stack SAP PO 7.4, SP4)
    2) IDOC status is always 0 in SAP PO 7.4 single stack IDOC monitoring. I am not sure if this status is just specific to my PO system. Any setting needs to be applied?
    ps: Please post only relevant answers/solutions
    Thanks,
    Praveen Gujjeti
    Message was edited by: Praveen Gujjeti

    Hi All,
    As per SAP help: Comparison of IDoc Adapter (IE) and IDoc Adapter (AAE) - SAP NetWeaver PI Reference Documentation - SAP Library idoc status and tracking not supported in current PO versions. May be SAP will add this feature in upcoming PO versions
    Auditing, Monitoring ,and Tracing Functions
    Attribute/Feature
    IDoc Adapter (IE)
    IDoc Adapter (AAE)
    ALE Audit
    Supported
    Supported
    IDoc tracing
    Supported (transaction IDX5)
    Not supported
    IDoc monitoring
    Transaction IDX5
    Integration with channel monitor and message monitor (as part of Advanced Adapter Engine monitor)
    Status tracking -SYSTAT
    (analysis and further processing of messages that have not been processed)
    Not supported
    Not supported
    RFC monitoring
    Supported
    Not supported
    Message persistence in the IDoc adapter
    Supported
    Message correlation information can be stored in IDoc adapter.
    Not supported.
    Message is persisted in messaging system with correlation data persisted in adapter.
    Regards,
    Praveen Gujjeti

  • IDOC is not reaching SAP from XI

    Hi all,
       The IDOC that I'm sending from XI is not reaching SAP.
    I have tried all most all possibilies. In SXMB_MONI I'm able to see the IDOC gets created successfully (with no error).
    I have re-checked the partner profile, SMQ1, Config etc.
    Please help me to debug.
    Thanks,
    AJ.

    AJ,
    Check if you have a chequered flag on both sides of your message ibn SXMB_MONI?
    Check the log of your TRFC in transaction SM58
    gards,
    Bhavesh
    Message was edited by: Bhavesh Kantilal

  • Inbound idoc failing to reach SAP system.

    Hi All,
    We are upgrading our SAP system from release 700 to 730. Post upgrade we have identified that idocs which are supposed to reach SAP as inbound are failing in Biz Talk with below message.
    Error details: Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The segment name is not valid for the IDOCTYP, Release, or CIMTYP. Segment name: E2EDT37003GRP   IDOCTYP: SHPMNT03    Release: 700    CIMTYP: . Ensure that your message xml validates against the operation schema.
    This happening for only one inbound idoc which is using SHPMNT03 idoc.Whereas other inbound idoc which is using /AFS/ORDERS05 idoc is reaching SAP without any issues. I am bit confused why this is happening for idoc SHPMNT03.
    Please let me know your thoughts.
    Thanks,
    Gowrinath.

    Hi Ramya,
    Thanks for your response.
    In Biz Talk schema is designed for 700 release idoc.Whereas our system is upgraded to 731 release.
    Hotfix is for Biz Talk. Can't we implement any solution in SAP side.
    Thanks,
    Gowrinath.

  • Status 12 in SAP but XI did not receive the message

    Hi Experts,
    I've having problems issues with regards to the idocs that where triggered in SAP with status 12 but I did not find any messages in XI.
    I've checked the smq1 for withheld messages but there was none. I've checked the port that is connected to XI it seems OK. Lastly I've checked the Partner Number and it seem it's OK also.
    Is there a problem on XI side?
    I need inputs. Thanks and have a nice day ahead!

    Hi R-Jay
    It doesnt look like problem with XI. IDOC is not getting pushed from R/3 itself
    Check your configuration with this guide once to verify
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    Thanks
    Gaurav

  • Idoc in status 03 - not received by receiving system

    Hello All,
    I have researched a lot on this topic on the forum - but what I am facing is something peculiar - so posting the complete scenario.
    I have three interfaces based on change pointers mechanism where change pointers have been activated for message type HRMD_A.
    There are three distribution models which filter the same message type and send to receiving system GIS – for the logical systems:
    FI
    Concur
    Russia
    When IDoc is triggered using standard program RHALESMD (transaction RE_RHALESMD - HR: Evaluate ALE Change Pointers), there could be three or less IDocs produced depending on the filter criteria.
    For example, you could have an IDoc each for all above three partners.
    When the above program is triggered in the development system all three IDocs reach GIS.
    All the custom code and configuration is transported from DEv to QA. When I trigger the above program in QA, not all  IDoc reaches GIS. Others stay in the system in status 03.
    If I check tRFC queue (transaction BD75), there are no IDocs in the queue.
    If I use another program to change status from 03 to 12, the status changes, but IDoc still does not reach receiving system.
    I have compared Dev and QA systems, deleted and generated partner profile, distribution model, port in QA – but nothing works.
    Not all IDocs reach GIS.
    I read on the forum that I need a commit work. But because I am using a standard program - RHALESMD - where do I commit work?
    Your inputs will be helpful.

    Hi Suneel,
    Please go to transaction SM58 and check if the IDocs are stucked up on the t-rfc queue. If so, you can right click and choose Execute LUW to release them.
    or
    Execute the program RSARFCRD and get the corresponding Transaction id and then execute the program RSARFCSE for processing the entries in TRFC Queue.
    Regards,
    Ferry Lianto

  • How to find  at what time Idoc has gone  out  of  SAP

    Hi Gurus,
    Could  anybody  let  me  know , how to check at what time Idoc has gone  out  of  SAP in case  of outbound Idoc.
    I am not  talking  about Idoc creation date which we can  see in control records  in WE05.
    -B S B

    you have to see the status of the idoc ,if idoc status is green color ( Succesfully completed  ) then use
    EDIDC-UPDTIM ( This should be last Time)
    Date is EDIDC-UPDDAT.
    See the other table EDIDS to check the idoc status.
    Thanks
    Seshu

  • IDOC Ack status back to XI/BPM ?

    Hi
    i have done File to Idoc scenario, and want to get acknowledgemnents inside XI/BPM.
    i hv proivded port,client,message type and selected 'Request acknowledgement' tab and executed report 'IDX_NOALE'. but im not getting any acknowledgement status in moni. please suggest hw could i get Idoc acknowledgements in XI.
    1.Do i need to import ALEAUD Idoc into XI ? and Is any configuration required in ID for ALEAUD?
    2.Is it possible to map Idoc status back into BPM? if yes, please explain how BPM should design?
    3.once Idoc ack status received inside XI, is it possible to send same status to the back end sender system?
    appreciate your help..
    Regards,
    Rajesh

    hi
    1.Do i need to import ALEAUD Idoc into XI ? and Is any configuration required in ID for ALEAUD?
    By default, audit idocs will come and get tagged to the IDoc. If you want to send it to the file system, all configurations must be done for IDoc to file scenario for the audit IDoc.
    2.Is it possible to map Idoc status back into BPM? if yes, please explain how BPM should design?
    Yes, it can be done. But won't be reqd in ur case.
    3.once Idoc ack status received inside XI, is it possible to send same status to the back end sender system?
    Yes, Q1
    Check this document on handling IDOC acknowledgements.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    rgds,
    Arun

  • How to Reprocess Outbound Idocs in Status 02 (Errors)

    Hi,
        I have an urgent problem. How do I re-process an Outbound IDoc in Status '02' (Error Passing Data to Port)
        I have tried reprocessing this IDoc through BD87 using both the options Edit>Process and Edit>Restrict and Process, but it doesn't work
         Please help as we are migrating cutover data from SAP to another system
    Regards,
    Aditya

    Worth to have a look at this thread
    Error handling problem with outbound idoc status 02 and  XML HTTP Port
    Regards
    Vivek
    Reward points for all the useful answers

  • Outbound IDOC in status 12

    Hi all,
    We have posted outbound IDOC from SAP R3 system to the middleware. Middleware system has received all the IDOC except few(2) idocs and in the very next day again they confirmed that they have not received 3 idocs.
    missing idocs were manually processed to have a immediate solution.
    we would like to konw how to trouble shoot this scenario?
    Following checks were done from our side.
    1.There are no entries listed in SM58(tRFC queue)
    2.No corresponding entries in the table ARFCRSTATE
    3.No network issues.
    4.No clue in the Gateway trace.
    Is there a way to trace the IDOC stats??
    Clara

    Hi,
    Status 12 means that the IDoc has been passed over to the receiving system.
    The report RBDMOIND checks that the transaction ID for all IDocs in status 03 are not stuck in the RFC layer  If no entry is found, the status is changed to 12.
    The receiving system has not acknowledged that this specific IDoc has been received, it is only an indicator that the RFC call is not pending.
    aRs

  • IDOC 51 status "Serialization: A more recent IDoc has already been processe

    HI all,
    i got 7800+ idocs with status 51, and the message is...
    Serialization: A more recent IDoc has already been processed.
    why it happens?
    how to avoid this error?

    For ALE use below link.
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a66c9507d11d18ee90000e8366fc2/frameset.htm
    ALE IMG (transaction SALE)
       Model and Implement Business Processes
        Configure Master Data Distribution
          Set-Up Data for Sending and Receiving Serialization
            Serialization by Message Type
    Thanks,
    Narayan

  • IDOC ERROR Status 02

    Hi,
    I am getting IDOC Error status 02.
    "Error passing data to the port".
    I am using a file port and passing the data from IDOC to the file.
    Idoc is getting created successfully but the file is not created.
    Any idea?

    hi
    use tcode BD83 for reprocessing error idocs in outbound
    in program
    If you want to use a type T connection to start an external RFC server program, enter the name of this program here. Enter the complete path name if possible. You cannot use the command line to specify any parameters for the program.
    Type T destinations are connections to external programs that use the RFC API to receive 'Remote Function Calls'. You must specify the host name and the pathname of the program to be started. The communication method depends on how you select the program location:
    'Explicit' selection
    In this case, the program is started either by the standard gateway program for the system or by the explicitly specified gateway (gwrd) via 'remote shell'.
    Ensure that the computer with the gateway process can access the specified computer by entering '/etc/ping <host name>'.
    In order to be able to start a program on another computer using 'remote shell', the target system must fulfil certain conditions. The user ID of the gateway process must exist and a file called .rhosts must also be present in the user's home diretory. The file .rhosts must contain the name of the calling computer. To check this, logon to the computer containing the gateway process with the appropriate user ID and enter the command 'remsh <host name> <program name>'. The <host name> and <program name> must be the same as in SM59. (If you call an RFC server program without any parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)
    'Server'
    By entering the 'server', you start the program from the SAP application server.
    First, ensure that the program can be accessed from the SAP application server and that the SAP application server has the authorization to start the program.
    To check this, logon with the user ID of the SAP application server (e.g. c11adm). If possible, go into the 'work' directory of the SAP application server ('/usr/sap/.../D.../work') and try to start the RFC server program manually from there. (As in the above case, if you call an RFC server program without parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)
    'User'
    By entering the 'user', the program is started by 'SAPGUI', i.e. under the user's ID and environment.
    Ensure that you can access the program with 'SAPGUI'/'SAPTEMU'.
    Ensure that 'SAPGUI' has the authorization to start the program.
    To check this, simply call the RFC server program in your environment.
    The function call can also be asynchronous (CALL FUNCTION ... IN BACKGROUND TASK DESTINATION ...).
    <b><REMOVED BY MODERATOR></b>
    regards
    Nagesh.Paruchuri
    Message was edited by:
            Alvaro Tejada Galindo

  • To create the follow up transaction automatically on status change in sap crm?

    To create the follow up transaction automatically on status change in sap crm? If yes, how to make the setting for this?

    Hi vishal,
    As per the requirement transaction type is activity(ACTI) & sales order(TA). when the take order objective is complete system automaticaly craete a new activity of tele sales call or metting with wholesaler.
    this is requirement of client.
    now i am already create all type of transaction types of activity & sales order & create follow up transaction also. i have doam already create action profile also but when i am assign this action profile to transaction & try to create an sales order no follow up transaction could be create automatically. i think the condition is not right so please help me out in this. what should be the start & schedulec condition for this scenerio

  • IP Job in BW finished, but how can I check the IDoc receive status in BW ?

    Hi,experts
    After I execute a Infopackage with loading more than 200000 records data, the infopackage monitor show me yellow light, 186020 from 200000 records. this infomation still show me till now, seaval hours,it looks pause here.
    And I check the request in the R/3, the Job has finished. as you know it means the R/3 push the IDoc already finished.
    and how can I do now ? or how can I check the IDoc receive status in BW side?

    Hi,
    I too had the same problem, i executed the following to solve the proble, may be this will help you:
    1) Go to T-code SM58 and select TRFC and press F6,
    2) For manual push of I-Docs, GO to T-COde BD87 select perticular idoc and see the status if it is not executed properly then do the manual push by pressing Execute option,
    Thanks,

Maybe you are looking for