How to Receive ALEAUD as acknowledgment in ccBPM  ?

Hi
I'm trying to Receive ALEAUD IDOC  as Acknowledgement in ccBPM . I refered to the concepts from the blog (/people/mitesh.parekh/blog/2008/12/01/receiving-aleaud-as-acknowledgment-in-ccbpm)where i have the Message ID which entered into BPM
but not the message Id which triggered the IDoc send . I think i m missing some small detail where i need to capture the send step MSG Id i'm aware that its not possible to get the Msg id in BPM . How is that ABAP Mapping in the above blog captures the message id ?
TRY.
l_msgid_ref = param->get(
IF_MAPPING_PARAM=>MESSAGE_ID ).
catch CX_SY_REF_IS_INITIAL into oref.
endtry.
Alternatively one more thread has some info
if someone can let me know where you can get this SourceDocNum would be great in this RFC Look up . in the thread Re: Idoc Acknowledgements and BPM.
"<?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>";
Since i do not have the Message ID it just creates the below payload from my mapping
This is the request being sent out using the ABAP Mapping as the Messgae ID is null .
<?xml version="1.0" ?>
- <ns0:ZALEAUDIT4XI xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
<S_DOCNUM>0000000000000000</S_DOCNUM>
<S_MESTYP />
<S_SNDSYS />
<S_UPDDAT>00000000</S_UPDDAT>
</ns0:ZALEAUDIT4XI>
Thanks

Another option would be to use JMS instead of db and use a java callout with a synchronous message consumer reading and aggregating the response. Does your target business service return all 3 responses immediately within a short span of few seconds. You can try this pattern if so.
Service client ---> Web Service Call ---> WSProxy
WSProxy does the following :
1. publish the request to the target service.
2. Make a java callout to poll a target response queue using a synchronous Message consumer. java call out has to have a loop which periodically checks the queue for response message. Message Consumer should have some sort of message selector which could uniquely identify the 3 responses associated with a particular request.
3. Java callout returns if all 3 responses are returned or timeouts.
4. response is returned to the service client.
You need to have another proxy TargetProxy which the target service has to call to send the responses.
Target service --> Target proxy ---> publish to Target Response queue with an appropriate header that can be used as message selector.

Similar Messages

  • How to receive acknowledgement from Vendor via SOAP adapter.

    Hello Experts, my outbound scenerio is R3>PI->Vendor via the URL given by vendor. From PI i'm sending my POs via SOAP adapter and in the conversion parameters I choose the check box "Do not Use SOAP Envelope" My message reached the vendor. Now vendor sends back a functional acknowledgement indicating the message had been received and processed. Below is the entire XML file content.
    <MessageAcknowledgment>
        <AckLocation>Medical</AckLocation>
        <AckRefNum>98712345</AckRefNum>
        <AckNote>200-Accepted</AckNote>
    </MessageAcknowledgment>
    Can anyone let me know how to receive the above message? What setup do i need to do?
    Thanks,
    Edited by: XISearch on Jan 10, 2011 3:05 PM

    >>> Can anyone let me know how to receive the above message? What setup do i need to do?
    Solution: You need to create a synchronous scenario.
    Might be at R3 side proxy  sender  and vendor side Reciever Soap
    Basically PROXY <------> SOAP
    Map the proxy request message to soap(vendor) request message  as REQUEST MAPPING
    and
    Map the SOAP (Vendor) response message to proxy response as RESPONSE MAPPING
    and in the backend parse the response.
    If you need more details, Please let us know.

  • What would happen if i didn't receive an Order Acknowledgement email

    what would happen if i didn't receive
    an Order Acknowledgement email to confirm my order details, including shipping and delivery estimates for 2 ipads that i order a day ago or a day and a half already. I'm so worry!!and now i dont know how to keep track with my order

    Check your order status by logging into your account in the Apple store.

  • How many Receiver determination in File to SOAP scenario

    Hi,
    I am trying a File -SOAP-File scenario, where file will be send to PI asynchronous. BPM is configured to receive the file and
    call the web services and get the response (Synchronous call) .After that BPM send the file asynchronous to File via FTP .
    It is basically asynchronous/ Synchronous bridge scenario.
    To do this I have  have configured the BPM  & created 3 Communication channel . 1 sender (File) & 2 receivers ( SOAP & File)
    But i got confused in Receiver determination. How many Receiver determinations do we require in this step?  2 or 3. If 3 how they will look like. I believe Interface determination is same as Receiver determination. I am suing Business System to send & recv the file.
    Points will be rewarded for suitable answer.
    Thanks

    hi,
    You require 3 receiver determinations.
    one from File to BPM(XI)..
    another from BPM to SOAP and other from SOAP to FILE.
    This is exactly the same scenario.
    RFC Scenario using BPM --Starter Kit
    Thanks,
    Vijaya

  • How to receive an RFC message in PI ABAP stack from ECC

    Hi mates,
    I am involved in a scenario in which we want to receive a message in PI (ABAP stack) from ECC (ABAP stack as well).
    We created a RFC destination (3) in sender system (ECC) so both stacks could be linked. However, we do not know how to receive this message once we are in PI Abap stack.
    In sender system code, a call destination takes place, an this destination stands for the one destination i noted before.
    BUT, as this RFC does not exist in PI, i wonder what steps have to be done in PI in order to be able to get the message from ECC.
    Hope you guys can guide me through this. Any help
    Thanks a lot in advance and best regards,
    david

    Hi Anand,
    No no, i do not want to create any sender RFC Comm Channel.
    What i want is to receive (by means of no PI adapter) a message in PI (abap stack) from ECC (abap stack), just by a RFC connection (type 3) between both systems.
    I will try to explain in more detail what i want to achieve:
    1) A standard SAP program is executed in ECC, at the end, a call destination is done.
    2) This destination call, calls an RFC destination that points to PI (RFC dest in SM59, type 3)
    (Until now, nothing is done in PI, there is no sender adapter, we just linked both ABAP stacks)
    3) In ABAP stack of PI, we want to receive the message, make any transformations and send the target emssage to PI adapters
    4) From that moment on, a ordinary PI integration is done.
    So my question is, what kind of stepd so i have to perform to get the message from ECC in PI without creating any object in PI (ESR, ID, i mean). Just as if we wanted to receive a RFC message, lets say, in BI (abap side) from ECC.
    Hope you got me this time.
    Thanks a lot in advance.
    Best regards,
    david
    Edited by: David de Miguel on Dec 27, 2010 11:48 AM

  • How to receive a xml CDATA in string element when OSB calling a webservice?

    How to receive a xml CDATA in string element when OSB calling a webservice?
    I have a business service (biz) that route to operation of a webservice.
    A example of response to this webservice legacy:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eg="example">
    <soapenv:Header/>
    <soapenv:Body>
    <ex:executeResponse>
    <ex:arg><![CDATA[<searchCustomerByDocumentNumberResponse>
    <name>John John</name>
    </searchCustomerByDocumentNumberResponse>]]></ex:arg>
    </ex:executeResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    the type of ex:arg is a string.
    How to receive this CDATA structure to webservice in OSB?

    Similiar to the answer How to pass a xml CDATA in string element when OSB calling a webservice?
    Use the xquery function fn-bea:inlinedXML rather than fn-ben:serialize
    Steps to solve this problem:
    1. Create a XML Schema. E.g.:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified">
    <xs:complexType name="searchCustomerByDocumentNumberResponse">
    <xs:sequence>
    <xs:element name="name" minOccurs="0">
    <xs:annotation>
    <xs:documentation>
    </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:string" />
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="searchCustomerByDocumentNumberResponse" type="searchCustomerByDocumentNumberResponse"></xs:element>
    </xs:schema>
    2. Create a XQuery to create a searchCustomerByDocumentNumber ComplexType. E.g.:
    3. Create a XQuery Transformation (XQ) to get the CDATA response to the webservice legacy. E.g.:
    declare namespace ns0 = "novosiaws";
    declare function xf:getReponse($searchCustomerByDocumentNumberResponse as element(ns0:searchCustomerByDocumentNumberResponse))
    as element(searchCustomerByDocumentNumberResponse) {
    fn-bea:inlinedXML($searchCustomerByDocumentNumberResponse/ns0:arg)
    For more information about xquery function:
    fn-bea:inlinedXML
    The fn-bea:inlinedXML() function parses textual XML and returns an instance of the XQuery 1.0 Data Model.
    The function has the following signature:
    fn-bea:inlinedXML($text as xs:string) as node()*
    where $text is the textual XML to parse.
    Examples:
    fn-bea:inlinedXML(“<e>text</e>”) returns element “e”.
    fn-bea:inlinedXML(“<?xml version=”1.0”><e>text</e>”) returns a document with root element “e”.
    Source: http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html

  • Message Driven Beans: how to receive and send in a single session?

    Hello
    How to receive and send JMS messages in a message driven bean using a single session?
    Thanks.

    Are you referring to writing code within the onMessage method itself to receive JMS messages?
    If so, that is not a pattern that is recommended, especially not in the case of a blocking JMS
    receieve. If you must write an explicit JMS receive within an EJB component it's best to use
    a "check the queue" approach where you give a very small timeout for the receive. That way
    if the message is there it will be returned but if not the call will not block.
    You'll also need to take the transactional settings of the onMessage method into account.
    If your are sending a message and then waiting for a response, those two actions can
    not be done within the same global transaction. For that, you'll need to either use
    BMT and perform each in its own transaction or just not use global transactions at all,
    in which case each send and receive operation will be atomic.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to receive the images / binary data t ype

    How to receive the images / binary data type in webdynpro....
    i have a website that let's the user send email, the email attachment and message are stored in both in images data type....
    q1) can i stored the message into binary data type...but the message is very long.....
    q2) if i have a textbox ...i surely will need to display the message  in string ,right ?
    [......... msg here ........]
    what is the codes to receive the images / binary data type in webdynpro....

    As in your previous post if you are storing them as BLOB object.. am sure you are able to get a byte stream or byte array(bytes[]) out of it.
    There should be some way to identify if its a image or a message BLOB. If its a image , convert into bytes and use 
       WDWebResource.getWebResource(bytes,resource type).getAbsoluteURL()
    to obtain the url.. assign this image UI element..
    In case its the message , use bytes.toString to get the message ..
    Regards
    Bharathwaj

  • How to print sales order acknowledgement while printing purchase order

    how to print sales order acknowledgement while printing corresponding purchase order
    in me22n

    in print program of Purchase order.. try to trigger output for Order Ack. as well...
    Order acknowledgement

  • How to receive XML from Flex HTTP POST

    Hi,
    We curreontly have a setup where we have a FLEX frontend send an XML through a HTTP POST and awaiting a response also in XML. On the backend this is handled relatively simply by a PHP script that basically does the following:
    read data (in XML)from FlEX HTTP POST into a new temp XML file.
    execute a c++ program with the XML file as one of the parameter.
    return the result to FLEX
    We have decided to move to BlazeDS for various reasons.
    Looking at the examples bundled with BlazeDS they have a jsp example that returns an XML result to FLEX so that part is fine. I am trying to find an example of JSP (or Servlet) that is able to read the XML data from FLEX and write it into a temp XML file. I would then try to use runtime.exec to invoke a local C++ program to process the XML file the result of which will be sent back to FLEX.
    Any help will be very much appreciated!

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I&#8217;d avoid calling an executable just to process XML &#8211;your<br />application server would provide enough support for reading and writing XML, no?<br />Also, if you&#8217;re only planning on working with XML then even BlazeDS might<br />be overkill because its focus is on sending strongly typed ActionScript data efficiently<br />to and from a client (it&#8217;s true that it does have a proxy service, but<br />that is not involved with processing the actual XML data).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>How complex is your XML? Do you need to resolve ids and<br />references or can you parse it top down in a single pass? There are several<br />well known libraries in Java for dealing with XML &#8211; the choice depends on<br />how you need to interact with the XML. Most of them take an InputStream as a<br />source for reading XML and you can get the InputStream from the servlet<br />request. Googling should turn up numerous examples.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Pete<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><br /><br /><div><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> khwong<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Sunday, September 28, 2008 12:09 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How to receive XML from Flex HTTP POST<o:p></o:p></span></p><br /><br /></div><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />khwong in <br><br /><br><br /><b>General Discussion</b> --<br><br />  How to receive XML from Flex HTTP POST<br><br /><br><br />Hi, <br><br /><br><br />We curreontly have a setup where we have a FLEX frontend send an XML through a<br />HTTP POST and awaiting a response also in XML. On the backend this is handled<br />relatively simply by a PHP script that basically does the following: <br><br /><br><br />read data (in XML)from FlEX HTTP POST into a new temp XML file. <br><br />execute a c++ program with the XML file as one of the parameter. <br><br />return the result to FLEX <br><br /><br><br />We have decided to move to BlazeDS for various reasons. <br><br /><br><br />Looking at the examples bundled with BlazeDS they have a jsp example that<br />returns an XML result to FLEX so that part is fine. I am trying to find an<br />example of JSP (or Servlet) that is able to read the XML data from FLEX and<br />write it into a temp XML file. I would then try to use runtime.exec to invoke a<br />local C++ program to process the XML file the result of which will be sent back<br />to FLEX. <br><br /><br><br />Any help will be very much appreciated! <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b69b23">How to receive XML from<br />Flex HTTP POST</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b69b23!folder=.3c061a83">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div><br /><br /></div>

  • Any ideas of how to receive images from a wireless camera (2.4 ghz) to my ipad rather than the handheld DVR supplied?

    Any ideas of how to receive images from a wireless camera (2.4 ghz) to my ipad rather than the handheld DVR supplied?

    some of those often have webserver so one just navigate to it using a browser

  • How to receive intransit shipments for inter-organization transfer with in-transit receipt routing via Receiving Open Interface

    Somebody have samples about how to fill the ROI tables only to have the receipt from inter-organization transfer with in-transit routing.
    Thanks in advance.

    Pl. visit following links.
    Oracle Apps: 11.5.10 / R12 ROI How to Receive Intransit Shipment (Inter-org transfer) for Lot / Serial Controlled Items …
    11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법

  • How to receive the datas?

    Look:
    the first I create socket sk:
    sk=socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
    and I fill data into Ip Head and Icmp Head,
    then I sendto the packet,but I don't receive
    any datas:
    lenrecv=recvfrom(sk,buf,100,0,(struct sockaddr*)&addr,&rlen);
    my codes run at the function recvfrom,but it
    couldn't return variable lenrecv,and it look like down,
    I want to know why?how to receive the data?
    (I couldn't creat socket like this:
    sk=socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
    I want to know when I creat socket like this
    sk=socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
    How to receive datas?)

    Last edited by joseperezc (2012-08-14 18:58:22)

  • How to receive objects?

    I'm pretty new to java and this is my first post..Please help me..
    class Time
    int hrs,mins;
    public void ReadTime(int h,int m)
    hrs=h;
    mins=m;
    public Time AddTime(Time t1,Time t2)
    Time obj=new Time();
    obj.hrs=t1.hrs+t2.hrs;
    obj.mins=t1.mins+t2.mins;
    if(obj.mins>=60)
    obj.hrs=+1;
    obj.mins=-60;
    return obj;
    i have defined this ..now how to receive this object.. Please define main function to use this above methods.Thanx..This is a question from syllabus of ICSE 10thboard.

    in future posts, please use the code button for your codeso it looks pretty and formats your code fr you with color and stuff!  and stuff!Anyways, you need an entry point into your program, and that is what the main method is. Asking us to tell you how to do that would completely defeat the purpose of actually doing your homework.

  • How to receive a mail when an error is logged in event log

    Hi,
    How to receive a mail automatically when an error is logged in event log?
    I tried the steps in the below link but still i am not able to receive the mail.
    http://blogs.iis.net/rickbarber/archive/2012/10/26/send-an-email-when-an-event-is-logged.aspx
    Thanks,

    Hi,
    The steps are correct so as Dai said you may need to check your SMTP server. Any error or event received related to SMTP server?
    Another related article for setup email notification:
    http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx
    If you have any feedback on our support, please send to [email protected]

Maybe you are looking for

  • How to import footage to an external hard drive in Final cut pro X

    I am having trouble importing footage from camera directly to an external hard drive in final cut pro X. When I go to import the footage, and select where I want it to be saved, my external drive is not even listed. It shows up fine on desktop and in

  • View History of Print Jobs alongside w/ corresponding Form Name and Printer

    Hi guys, Just a small question. I have to do a particualr investigtion of a particular Job Order(Service). One of them includes checking the print history of its corresponding form name(sapscript), and printer device used for it. Is there a SAP table

  • How to create a JAR

    Hi I'm very new to Java. I have a private project to do a little admin application for bulk changes to my itunes library via their COM API. Previously I used several javascripts to do this so I don't expect a lot of work to adapt them to Java. I use

  • LabView interface for SRS DG645

    I need to implement a driver for my SRS DG645 module connected to my computer by an NI GPIB, does a driver already exist in LabView? I need a LabView program interface on my computer seperate of my module to control it. I read that Stanford Research

  • Plug-in canceled

    I recently went to the Apple download site to download the new Backup 3.2 program. Almost immediately the status bar at the bottom of the web page displayed the message: Failed to open page (see activity window for details). The activity window log,