IDoc Ack correlation

Hello,
I am sending a MATMAS iDoc (R/3->XI_BPM->R/3) , and trying to receive Ack (ALEAUD) into the BPM and process it.
How do I correlate between the original message received by the BPM, and the Ack (ALEAUD) message that was sent back to the BPM ?
What fields should I compare ?
Thanks,
Elad.

Hi Elad,
OSS have informed me that they are working on a solution to being able to handle the -ve ack in a bpm and will be available in a future support pack - when? who knows... Maybe someone from XI development can enlighten us here?
In the meantime there are two options when using a BPM:
1) Deadline monitoring:
Wrap your steps in a block with a deadline monitoring branch. When a -ve ack (aleaud) comes back to XI the bpm will stop at this step. Once the deadline is up you will be notified of the problem by an alert or whatever you configure. The tricky part is selecting a deadline that is large enough to take into account potential slow times in system performance, but not too large that it will impact on detecting errors - i.e. 5 minutes.
It would be nice to have an alert raised instead of having to use deadlines - but unfortunately the PMI infrastructure is not integrated with the BPE so this is also not possible at this stage.
2) Handle the ALE error in the receiving sap system:
This can be done quite easily by assigning a workflow task to the inbound process code - the sap help describes this pretty thoroughly. In the workflow task you can then raise an Alert to your central alert server or send a message back to XI or whatever you like.
Hope this helps...
Jason.

Similar Messages

  • Query on IDOC Ack (STATUS) config in XI for a specific partner comm.

    Hi Experts,
    Is it possible to configure the IDOC Ack (STATUS.SYSTAT01 message) in XI for a specific partner communication? We want to configure our system like ALEAUD but the message type should be STATUS.SYSTAT01 and the acknowledgment should be send to sender system for a specific partner only if XI receives any IDOC like (Orders) from that specific partner. For other partners (same sender system) we donu2019t want this acknowledgment settings and configuration. If possible please provide the configuration filters steps etc. Thanks for your valuable inputs in advance.
    Thanks,
    Satish
    Edited by: Satish Jaiswal on Jan 8, 2009 2:55 AM

    Hi Husain,
    I have the document you have mentioned. Please note my requirement is to filter the Ack while creating and sending to R/3 based on Partner and Message type. The document provides info only on Message type filter but not parner specific for same sender system!!! Any help appreciated. Also note: BPM and Alert is out of scope.
    Looking for  some ALE configuration tricks to achieve this.
    Thanks
    satish
    Edited by: Satish Jaiswal on Jan 9, 2009 2:40 AM

  • 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

  • Confirmation on Using IDOC Ack

    Hi,
    Suppose We have FileIDOC and IDOCFile scenarios
    Q1) Wil these IDOC Ack ALEAUD is Applicable in case of IDOC is the Sender Only Or in case of the Receiver also??
    Q2) This Ack is for SAP R/3 Sys Or Fo Xi Sys???
    Regards
    Suman

    Hi,
    In that case you can receive technical acknowledgement treating soap adapter as an end point. But it won't be an application ack. For more details you should visit two websites:
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    Q2) This Ack is for SAP R/3 Sys Or Fo Xi Sys???
    regarding this question there are acknowledgement specific for integration engine, that one must be requested and IDOC acknowledments. that's two different things.
    Regarding integration engine you can also read in help:
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/frameset.htm
    Kind regards,
    Wojciech

  • IDOC Acks not working

    Hi All,
    I have spent hours searching SDN for this specific problem, and can see some similar threads but none with a successful answer, so I will ask again.
    I have the following scenario:
    R/3 system sending an IDOC to XI, then XI mapping that to a custom XML message and sending it via the HTTP Adapter to an external business partner.
    We have no issues with the above and get a chequered flag in SXMB_MONI.
    But we want an Acknowledgement of that transmission to go back to the initiating IDOC in the R/3 system and update the status. e.g. If there was a HTTP comms failure and the message ended up in error in SXMB_MONI then we want that status sent back as an Acknowledgement to the original IDOC so that the R/3 system is aware of the failure.
    We can see that XI tries to send the Ack back, but in SXMB_MONI in the "Ack Status" column there is an error associated with the Ack which says either "Acknowledgement not possible" or "Acknowledgement contains system errors". When we look into the error message contained within the Acknowledgement it says:
    Unable to convert the sender service XXXXX to an ALE logical system
    The Sender Service listed in the error message is the original Receiver Service which passed on the HTTP message to the 3rd party receiver. But in this case it is the sender because it is trying to send an Ack back to the R/3 system that is now the Reveiver. Note that it is a Business Service (not in SLD), it is NOT a Business System.
    My question is - where is XI looking for an ALE Logical System name? My Business Service is not in the SLD (doesn't need to be, it's a 3rd party external system and I can send to it fine). I even tried populating the Adapter Specific Identifers for this Business Service with the IDOC Logical System name and R/3 System ID and Client, but that did nothing becasue this isn't using the IDOC Adapter, it's using the HTTP Adapter.
    And note that we have SXMB_ADM param RUNTIME-ACK_SYSTEM_FAILURE = 1.
    And please dont post a bunch of links, I've looked at every message in SDN that refers to the above. Please only reply if you can type the exact answer and it refers to the Acks only.
    Thanks,
    Brendan.

    Hi,
    Open(Double click) the Receiver Business service in ID and goto Change mode
    goto Adapter Specific Identifiers---just give the LS name as HTTP and click on Apply and save Activate.
    Do SXI_Cache also
    Now try to post the Idoc Again from R/3
    Regards
    Seshagiri

  • IDOC Ack from BPM to SAP R3 runs into an error

    Hi All,
    I have a scenario which sends an DEBMAS IDOC to an Integration Process "IP_SPLIT_Site" which process the IDOC and sends it to multiple systems.
    When the IDOC is sent from SAP R3 to the receiving Integration Process "IP_SPLIT_Site" in XI, it is processed successfully.
    Since the SAP system is expecting an acknowledgement from the receiver of the IDOC, the integration process "IP_SPLIT_Site" tries to send back an acknowledgement for the IDOC which runs into an error because it is not able to convert "IP_SPLIT_Site" into an ALE logical system.
    The error displayed is :
    Unable to convert the sender service IP_SPLIT_Site to an ALE logical system
    Error code : ATTRIBUTE_INV_SND_SERV
    I am getting this error in all my scenarios where an IDOC is sent to an Integration Process.
    Is there any solution avoid this error?
    Thanks & Regards;
    Bbnu

    Hi Michal
    The 1st approach seems to be helpful.
    about the 2nd approach if i am sending the Ack through a separate send step in BPM then i suppose it would show the same error "Unable to convert the sender service IP_SPLIT_Site to an ALE logical system".
    OR
    Do you mean to say that we could send a separate message of type ALEAUD to the SAP system?
    for 3rd approach, i wouldn't wanna handle many partner profiles.
    Thanks for your reply,
    Rgds;
    Bbnu

  • Send back IDOC ack with details  to  webservice response ?

    Hi Friends ,
    Can we send IDOC acknowledgment  as SOAP response . Our scenario is say for example create SO via Webservice call . Our requirement is to use IDOC only not RFC/BAPI etc . Even we know that IDOC is asynchronous we need to return the SO number which is created .So ,
    1. Can we get Ack with SO number which is created and map to Webservice response filed ? 
    Thanks .,
    V.Rangarajan

    Hi Rangrajan,
    You Have to Identify in which Idoc you want to get the response back in R3 then Map Response of Webservice that contains SO to the idoc identified and you well get all the things you require in R3.
    Let me make few things clear:
    You have to use BPM for this
    ALEAUD is for IDOC acknowledgment not for Idoc response (There is difference between ack and response). So it will not serve your purpose.
    Report IDX_ALEREQUEST is to convert the idoc acknowledgment (ALEAUD) to XML formate.
    Thanks
    Sunil Singh

  • IDOC ack

    Hi,
    i have put in a production support team and the project team which implemented the project has moved out. so i cant ask any project team member now
    There are nearly 3 scenarios configured for IDOC -XI-IDOC and they are driving me crazy. All are running fine. But their ack status is driving me crazy. In one scenario it is showing Waiting for ack for all msgs of this scenario.
    In second scenario, there is again a scenario IDOC - XI - IDOC running in XI Prd system like System A - XI prd - System B. It is running fine. The problem is in SXMB_MONI for ack status there is a green tick coming and when i double click the msg to open it, then on double clicking this success ack msg, shows the error CO_TXT_ROUTING_BACK_ERROR saying Error occurred during back-routing Error in communication channel because the path System B to System A http://sap.com/xi/XI/Message, Acknowledgment is not found. This is leading to a lot of error messages in RWB msg monitoring at IE level in System Error status because of these ack msgs.
    The third scenario is again IDOC - XI - IDOC and it is also running fine without anything in ack status column in SXMB_MONI - which is totally fine.
    I have saw the complete XI prd scenarios and no where ALEAUD is configured. So the above ack in scenario 1 and 2 seems to be a transport level ack. I do not want any ack status for any scenario. How to rectify this thing so that it does not see for ack status at all? Please help.

    Hello,
    You can check this link http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/bdb13b00ae793be10000000a11402f/frameset.htm and then scroll down until you see section 4 and section 5. Section 4 will tell how to disable acknowledgements, but it would be best to consult with business since you are planning to disable it in production.
    Hope this helps,
    Mark

  • Need Help on IDOC ACK

    Hi,
         i Have a doubt on ACK of IDOC.actually the scenario is file to IDOC.in this scenario we are posting PO's to SAP R/3 from a legacy system.after posting into SAP system we want to get an acknowledement back to the legacy system.for that ack which idoc type we'll use in the scenario IDOC to File?

    Hi Narayna
    Find the solution.
    This Feature is Available under SP 18 and we are on SP16
    http://help.sap.com/saphelp_nw04/helpdata/en/42/c8f66bc7a56bb0e10000000a1553f6/frameset.htm
    Check this document on handling IDOC acknowledgements. This might give you some pointers.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    nk
    http://help.sap.com/saphelp_nw04/helpdata/en/44/932e8896b610bbe10000000a422035/content.htm
    <b>Pls reward if useful</b>

  • Idoc ack in PI

    I am working on IDOC TO FILE scenario where i have the req like dont want to show idoc acknowledments status in PI (sxmb_moni) with question mark symbol which indiactes still waiting for acknowledmantes.
    I dont want messsages waiting for acknowledmantes in PI . Please let me know how to achive this?

    Hi Praveen,
    You will need to run this on PI if you want to turn off ALE Acks.....
    Hope you know what you need to do, if you don't here is what you need to be doing to turn off ALE Audit
    To achieve this add the PORT, CLIENT and MESSAGETYPE of the IDOC to the table IDXNOALE in PI
    1.RUN the report IDX_NOALE
    2. PORT
    3. CLIENT:
    4. Exception List: Add Message Type of IDOC
    5. Click 'Not Request Acknowledgement'
    6. Execute Button.
    Verify the table IDXNOALE
    1. SE16: IDXNOALE
    2. Table should have the change entered.
    Try your way around with this method. you'l get what your looking for
    Cheers!
    Hanish John

  • IDOC to File -Ack

    I have found several posts on this but I can not find a clear answer. 
    I am using PI 7.1.  I have a PO Idoc leaving R/3 through PI using an IDoc Adapter.  When it gets to PI I am routing it to one of three possible locations. 
    1.  SRM-SUS if it is a SUS Supplier
    2.  Supplier Web Services if the supplier has exposed a web service for POs
    3.  FTP site if the supplier is set up to get their POs from our FTP site
    When the POs go to SUS or web services I get a green check in the "Ack Status" in SXMB_MONI.  But when I send the PO to the FTP site using a File Adapter I get a "?" (Still awaiting acknowledgement). 
    I read about setting up the Adpater Specific Identifier within the Business Component but I have been unable to get this working.  Is there some way I can force PI to give me a green check once the PO has been sent via File Adapter?
    Thanks,
    Matt

    This blog describes my situation exactly:
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    Let us consider a simple scenario where in an SAP system sends an IDOC to XI and a mapping program within XI
    runtime converts the IDOC structure to a simple XML structure and stores it in a file system using the file adapter. The
    Sender IDOC adapter requests an acknowledgement when sending the IDOC to XI. The system acknowledgement sent
    by the file adapter is converted into an ALE audit message and sent back to the sender SAP system by an IDOC ACK
    channel configured in XI(an IDOC receiver adapter).
    However, when the file adapter communication channel is configured under a Business Service, the sending of ALE
    audit message may fail with the message "Unable to convert the sender service <Business Service Name> to an ALE l
    ogical system". To avoid this error, we need to specify a Logical System for the IDOC adapter.To specify the logical
    system, open Integration directory and select the Business Service that is configured as receiver for the IDOC.Switch to
    Edit Mode and choose the "Service" menu and then the menu option "Adapter-specific identifiers". In the popup specify a
    Logical System for the IDOC adapter.Save and activate the Business Service. Now the ALE audit message is sent back to
    the SAP system without any errors.
    The problem is...I am unable to get this to work using PI 7.1.  I am unable to get the File Adapter to create the Ack (Green Check) as Saravana has described.  Has anyone used PI 7.1 to do something like this?
    Thanks,
    Matt

  • Ack for Idoc

    Can't getting get Acknowledgment once file is received R3 side?

    Hi,
    BPM is one way to req. for acknowledegments
    More -
    http://help.sap.com/saphelp_nw04/helpdata/en/55/65c844539349e9b1450581ab44a5e6/content.htm
    for IDoc Ack - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    else for other scenarios you will have to use BPM and request for ack in the send step -
    http://help.sap.com/saphelp_nw04/helpdata/en/86/80163f6b5baa09e10000000a114084/content.htm
    Regards,
    Vinod.

  • IDoc application ack

    hi all;
    i am sending an IDoc from BPM to SAP with application ack.
    i am not getting an ack back.
    do i need to do some setting in SAP
    do i have to use a seperate adapter to get an ack back

    Hi Mudit,
    There is a guide to handle idoc acknowledgements, in sap xi. please refer,"how to handel acknowledgements for idoc" at,
    https://websmp202.sap-ag.de/nw-howtoguides
    Have look at "How To Handle Acknowledgments for IDoc" .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    Also go through these links...
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    unwanted ack idocs
    Re: ACK send back but which Idoc Adapter
    IDoc Ack
    Idoc Ack in SP 17
    I hope it helps.....
    Regards,
    Abhy

  • Idoc Acknowledgements and Idoc Packaging

    All,
    I am implementing a requirement wherein we need to post 2 different types of Idoc's from our BPM.  The Business requirements is such that until the Idoc 1 is not processed by the R3 system, the Idoc 2 should not be posted from XI as there is dependency in the data.
    This can be addressed using  Application Acknowledgements. The solution to this is to use the send step in my BPM with application acknowlegement. Until the application acknowledgement is not received for the first send step , the next send  step will not be processed and so things will / should work fine.
    The problem comes in the fact that the Idoc's being sent out of XI use Idoc Packaging, ie., the First Send Step uses Idoc Packaging to post multiple Idoc's to the target system.  A question that arises due to Idoc packaging and Idoc ack's are,
    <i><b>How will the Idoc Ack's be sent back to XI?</b></i>
    I have read through the online help and it states that every ALE AUDIT Idoc can contain the status of maximum 500 Idoc's. Now, in  my  case , when using my Idoc packaging, if the number of Idoc's are greater than 500, how will the Application Acknowledgement for the Idoc's work?  Will I still get a single acknowlegement in my BPM or will I get multiple acknowledgements? Will Send Step with Application acknowledgement still hold good?
    Any ideas, thoughts / experiences on using idoc ack's with idoc packaging?
    Regards
    Bhavesh

    If I undestatood correcty you have 2 send step, the first send a message containing multiple IDoc (IDoc Packaging). In this first send step you set the application Acknowledgements.
    I think that this is not managed from the BPM, bacause the acknowledgements will come someone positive and someone negative, and so when the first send step will be completed ?
    I think that the solution must to be changed a little bit, or removing the IDoc Packaging, or removing the wait of Acknowledgements.
    Also take in mind that if you use a BPM with many possible correlation (Acknowledgements) you will have bed performances.
    Regards,
    Sandro

  • Idoc Acknowledgements and BPM.

    All,
    My current requirement is to post an Idoc from my BPM, and get back the Idoc Acknowledgement. On the basis of the status field in the ALEAUDIT Idoc I need to determine the further course in my BPM.
    <u><b>Option 1:</b></u>
    1. In the Send Step of my BPM , I can request for Application Acknowledgement. I have done this and am able to receive the Acknowledgement and see the same against the Acknowledgement Msg ID in MONI. I am able to see the ALEAUDIT idoc triggered for my Send Step back to my BPM .
    The question in case we are to use this Option is , how do I access this AleAudit Idoc message in my BPM. As I want to have a switch, I need this to be populated in a container element of my BPM. Is this possible? Is this approach a correct one? Any Ideas?
    <u><b>Option 2</b></u>
    I can have a Send Step in my BPM to send the Idoc from XI to R3. this will be a normal Send Step with no Acknowledgements. I can also use a Receive Step in the BPM to receive the ALEAUDIT Idoc back to the BPM.
    This I guess can be done with a Receive determination where R3 is the sender and the AleAudit Idoc is the receive etc.
    Issues with this approach, I need to use a Correlation against the Send and Receive Step to send the Idoc and receive the AleAudit.
    1. What is the Correaltion that can be used?  Is there a standard correaltion. for such cases?I looked into the Idoc and the AleAudit but could' nt find a suitable Correlation Field.
    Do both these solutuons make sense? has anyone got a better approach?
    Any comments are appreciated.
    Regards
    Bhavesh
    PS: Have gone through the How to guide on Idoc Ack's and the blogs on SDN as well. But if still someone feels that there is a blog that is relevant to this issue, please do let me know if I have missed anything.

    Ha, now that was interesting question. Brains were rusty, relooked into that lookup and these are the fields of the IDXRRCVPOR we use,
    Used the RFC - RFC read table
    XI's Idoc Number is in Field IDOCNUMBER
    Original SAP IDoc Number is in Field SNDLAD.
    Code excerpt attached below.
    @ Henrique : Work's been crazy past few months. The blog is on my to do list, hopefully someday soon it should be out. My Apologies guys!
    Channel rfcChannel =     LookupService.getChannel(BusinessService, CommChannel);
    //As the call is being made to RFC, RFCAccessor is obtained.
    rfcAccessor = LookupService.getSystemAccessor(rfcChannel);
    rfcXML =
                        "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:RFC_READ_TABLE xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><DELIMITER/><NO_DATA/><QUERY_TABLE>IDXRCVPOR</QUERY_TABLE><ROWCOUNT/><ROWSKIPS/><DATA><item><WA/></item></DATA><FIELDS><item><FIELDNAME>SNDLAD</FIELDNAME><OFFSET/><LENGTH/><TYPE/><FIELDTEXT/></item></FIELDS><OPTIONS><item><TEXT>IDOCNUMBER EQ &apos;"
                             + SourceDocNum
                             + "&apos;</TEXT></item></OPTIONS></ns0:RFC_READ_TABLE>";
    inputStream = new ByteArrayInputStream(rfcXML.getBytes());
    XmlPayload inPayload = LookupService.getXmlPayload(inputStream);
    Payload outPayload = rfcAccessor.call(inPayload);
    responseStream = outPayload.getContent();
    DocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();
    /* Create DOM structure from input XML */
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(responseStream);
    NodeList list = document.getElementsByTagName("WA");
    for (int k = 0; k < list.getLength(); k++) {
        Node node = list.item(k);
       if (node != null) {
         node = node.getFirstChild();
                    if (node != null) {
              if (!node.getNodeValue().equals("")) {
                   OutputDocNum = node.getNodeValue();
    Regards
    Bhavesh

Maybe you are looking for

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable Dear All, I am Automating STATSPACK reporting by modifying the sprepins.sql script. Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statsp

  • How to change data in a particular segment?

    while creating po with 10 materials,idoc has E1EDP01 segment 10 times,Now I need to delete one among those 10 segments ensure that it is a generic material.for this i am doingmodification in exit_sapleinm_002. how to read data from e1edp01 and modify

  • HT201335 airplay with amazon

    I have no problem playing video from my Ipad using mirroring to apple tv, but I cannt view amazon videos anyone know why

  • Support for DNG files from Odyssey7Q.

    Just upgraded my Odyssey7Q to capture 4K RAW from the FS700. Importing the DNGs into Premiere yields an extremely purple image. The DNGs import fine in After Effects. Any chance to get this addressed in a Premiere update?

  • In NWDI Activity Activate Problem

    Hi Friends When i am Activate one my Activity I am got the Error. That Activation is not Activate. How to Solve the issue.      [wdgen] [Error]   coats.spi.wdjcomponent.poclosedetails.CO_POClosureDetails --> ContextModelNode Ymm_Sc_Bapi_Po_Close_Inpu