Stateful message processing for async scenario

Dear all,
my async scenarios:
1. RFC -> PI -> File
2. File  -> PI -> RFC
Following facts:
- The second message is a response to the first one. Both message are separted and async.
- Scenario 2 can be send some hours after Scenario1.
- A response should only be send if  a specified field in the message of first scenario is filled. 
  For example: Message in scenario has a field <ResponseNeeded>YES</ResponseNeeded>
  This field does only exist in message of scenario 1.
- Both message have an ID field (e.g. <ID>4711</ID>) which can be used to identified the
  corresponding message.
Questions:
- Is it possible to use stateful message processing for this scenario? Or do I need BMP + Correlation?
- A service interface with pattern "stateful" can only be used synchronously. So is it
  possible to use this stateful for async message processing at least?
I would assume that I will need a BPM that sends the messsage and keep alive until a
response will be sends with same ID. After this I would check message of scenario1 and
send (or even not) the message of scenario2 to receiver depending on <ResponseNeeded>.
Thanks in advanced.
Chris

Hi Chris,
Although BPM is possible here, I would not recommend you to use one here for the reason,
>>Scenario 2 can be send some hours after Scenario1.
This means you are keeping a process alive for so long which is not a good thing to do.
You could end up with a lot of open/live process instances.
Having said that, if you still wish to go ahead with BPM, the steps would be
1. Receive async (RFC req) - start process, correlation based on ID.
2. Switch step (Evaluate ResponseNeeded)
branch 1(True): a.  Send asynch step - File
                           b. Receive async - File correlation - ID.
                           c. Send async - RFC call.
branch 2(false) a. Send async -File
3. Stop process.
Regards
Jai

Similar Messages

  • JDBC adapter disconnects, if there are no message processing for 2 days

    Hi All,
    I have sender JDBC adapter configured, which polls messages every 3 mins.
    XI is constantly polling the database (SQL Server) and since there are no messages on weekends, after a certain interval, it disconnects... giving a null exception.
    I have checked the advance option "Disconnect from Database After Processing Each Message". still it is giving this error. I am on SP 12.
    Can someone please let me know, what could be the reason of this null exception. why does it disconnects if there are no message processing for a long interval.
    Any help would be appreciated.
    Regards,
    Amit

    It means we don't support that file type for doing imports. It sounds like a reasonable request to [add to the Exchange|sqldeveloper.oracle.com] though.

  • Error while create TSW ticket processing for DES Scenario

    Hi Experts ,
    I am facing an error while doing  TSW - ticketing process  for DES scenario
    For STO creation under movement type O - Origin T - Transfer.An error is coming while actualizing the ticket
    Error states : " you do not have authority to access  the shipment ( Return code 4)
    Request all experts to look into the issue and kindly reply
    Thanks in Advance

    Hi,
    Error states : " you do not have authority to access the shipment ( Return code 4)
    It seems authorization problem,kindly take help of basis team for authorization
    kapil

  • Acknowledgement message for Async scenario...

    Hello All,
    I am working on Asynchronous scenario (IDOC -> File). I have confirgured all the things properly. My problem is when i execute the idoc everything is working fine file got created at FTP. But in sxmb_moni i am getting success message with still wating for acknowledgement "?".... Where i have did the mistake.. as this is async scenario this message is not expected.
    Is there anyone who had faced such problem... Please let me know..
    Thanks for all your help in advance...

    Hi Siddhesh,
    By default, Sender IDOC adapter requests IDOC acknowledgement from receiver adapter, when we send IDOC to XI. In your case, System acknowledgement sent by File adapter is converted in to ALE audit message and sent to sender system.
    If you want to receive acknowledgement then you need to configure IDOC receiver communication channel.
    Refer to this good blog
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    From the above blog....
    At times, there could be a scenario where in we do not need the ALEAUD IDOCs to be got back.
    To acheive this add the PORT,CLIENT and MESSAGETYPE to the table IDXNOALE.Use transaction SE16 -> specify the table name "IDXNOALE" and then choose create new entries.Specify the values for PORT, CLIENT and MESTYPE fields, save the entry.This procedure helps switch off ALEAUD IDOCs from being sent back to the sender SAP system.
    Best Regards,
    Divyesh

  • What to do if the target system is down for async scenario

    Hi All,
    What all recovery options we have in XI if the target system is down for very long time
    in async scenario ??
    -> Can we configure any alerts which will send mails with the failed message details if the
       target system is dowm for very long time.
       If this is possible, will there be any links in that mail which will allow the
       alert mail receiver to 'resend' the failed message once the target system is up ?
    We are on nw2004s SP9.
    Can anyone help.
    Thanks in Advance
    Regards,
    Chemmanz

    Can we configure any alerts which will send mails with the failed message details if the target system is dowm for very long time.
    Yes we can send Alters from XI  . let clarify one thing here alters are triggred immedaitely when their any failure in Adapter or mapping or etc then immdeaitely it is sendt so theirt is no such things  for  this "details if the target system is dowm for very long time". it does not differencate it long or short.
    If this is possible, will there be/can we configure any links in that mail which will allow the alert mail receiver to 'resend' the failed message once the target system is up ?
    chekc the blog for alter step by step from Michal
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    you can confiure alters to send your outlook also then if he replis you get a reply.
    Regards
    Sreeram.G.Reddy

  • Message flow between advanced adapter engine and messaging system for ICO scenarios

    Dear all,
    I'm working on a PI 7.31 AEX box and created an ICO object for one interface with HTTP_AAE2IDoc scenario. The interface works quite well. When I looked in to message log of messages for this interface in PI monitor, I noticed that the internal XI message are put totally 5 times into the send queue and retrieved from send queue. In some steps I only see after retrieving a message from send queue and immediately put it back into send queue. Can someone please kindly explain the message flow between advanced adapter engine and messaging system and what exactly happens after each retrieving a message from send queue?
    Below is an example of message log for one message:
    12/08/2014 09:26:06.472    Information    MP: processing local module localejbs/CallSapAdapter
    12/08/2014 09:26:06.472    Information    Application attempting to send an XI message asynchronously using connection HTTP_AAE_http://sap.com/xi/XI/System
    12/08/2014 09:26:06.478    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.499    Information    Message successfully put into the queue
    12/08/2014 09:26:06.499    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.499    Information    The application sent the message asynchronously using connection HTTP_AAE_http://sap.com/xi/XI/System. Returning to application
    12/08/2014 09:26:06.500    Information    HTTP adapter successfully processed interface PlantResponse_Out
    12/08/2014 09:26:06.501    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.501    Information    Message status set to DLNG
    12/08/2014 09:26:06.513    Information    Message successfully put into the queue
    12/08/2014 09:26:06.513    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.515    Information    Message status set to DLNG
    12/08/2014 09:26:06.533    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.548    Information    Message successfully put into the queue
    12/08/2014 09:26:06.548    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.550    Information    Message status set to DLNG
    12/08/2014 09:26:06.551    Information    Executing Request Mapping "http://styrolution.com/pi/Integration/PlantMaintenance/PlantResponse/PlantResponse_to_Zcol_Basf_Inotif02_Inotif01_Zeupm_Inotif01_Ludwigshafen" (SWCV 085d2320fb3b11e2cc0bf4d50aea8c33)
    12/08/2014 09:26:06.563    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.571    Information    Message successfully put into the queue
    12/08/2014 09:26:06.571    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.573    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.573    Information    Message status set to DLNG
    12/08/2014 09:26:06.580    Information    Message successfully put into the queue
    12/08/2014 09:26:06.580    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.582    Information    Message status set to DLNG
    12/08/2014 09:26:06.583    Information    Delivering to channel: IDOC_R
    12/08/2014 09:26:06.583    Information    MP: processing local module localejbs/IDocOutboundModuleBean
    12/08/2014 09:26:06.583    Information    XI message received for processing
    12/08/2014 09:26:06.587    Information    Sender Party: Sender Service:SXX Receiver Party: Receiver Service:RXXCLNT200 Communication Channel:IDOC_R
    12/08/2014 09:26:06.588    Information    IDOC metadata repository is RXX
    12/08/2014 09:26:06.589    Information    Control record is not mandatory - control record will be added if not available
    12/08/2014 09:26:06.590    Information    XML Payload parsed to idoc document list with number of idocs: 1
    12/08/2014 09:26:06.595    Information    Sending idoc message to receiver R/3 system with TID XIh{lsRI824UITC0009OalmW
    12/08/2014 09:26:06.813    Information    IDOC message sent to receiver R/3 system
    12/08/2014 09:26:06.817    Information    TID XIh{lsRI824UITC0009OalmW confirmed
    12/08/2014 09:26:06.819    Information    Message was successfully transmitted to endpoint <local> using connection HTTP_AAE_http://sap.com/xi/XI/System
    12/08/2014 09:26:06.821    Information    Message status set to DLVD
    Thanks & regards
    Dingjun

    Hello All,
    Thanks for the prompt responses and with best information, But apart from this,I need how an adapter(File/JDBC) works along
    with AAE in PI 7.1. When does the job of File/JDBC adapter is completed and resumed in a synchronous case. That is,
    File Location --> file adapter -
    > XI(AAE) --> JDBC adapter --> database.
    In file sender, lets suppose we have synchronous settings(Best Effort). Now when File adapter's job is finished and when it
    gets back the response back from XI. Please explain step by step from starting(file adapter polling the location) to getting the response coming back to XI.
    Regards,
    Achari.

  • Breaking message processing for perticular message in Biztalk Orchestration.

    Hello All,
    In above Orchestration I need to break the process for particular incoming message
    if the decide condition get TRUE,  I also don't want to execute further shapes if condition is TRUE.
    I have tried using Terminate shape but it has stopped whole process...!
    Please share if anybody have an IDEA.
    And also share some links regarding how to break and continue (C#) in BizTalk, if any.
    Thanks all

    You've noticed that there is no simple "End Shape" so there's two ways to handle this.
    Make sure the control flow is such that when the 'break' condition is hit, there are no other Shapes until the end of the Orchestration.
    Set a Flag that you can use on further Decide Shapes to skip that logic.

  • Fault Message Mapping for SOAP Scenario

    Hi ,
    I have configured a Proxy to SOAP synchronous scenario. The scenario is working fine. Now I need to map the fault message and display the message in SAP in case of any errors. I have used the standard Fault message. But I dont have any message from the WSDL which I can map to the standard fault message. Is it that we need to tell the wenservice team to modify the WSDL to include the fault message or is there any other way out to acheive the same.
    Thanks
    Amit

    >>> Is it that we need to tell the wenservice team to modify the WSDL to include the fault message or is there any other way out to acheive the same?
    Fault message is to provide meaningful message to the other end if there is a validation error or business exceptions or so...
    a) You are importing WSDL of the third party and using it in soap receiver target side.
    b) Normally it is best practice to create a WSDL which contains request, response and fault message. if your wsdl has fault message type declared then you can map the wsdl fault message with your proxy side fault message(which you can create). Please note you rely on the third party wsdl. Third party WSDL must have application logic coded to support fault message in case of application error occurs. Example if there is a validation that does not go through then their application logic must populate data in the fault message of wsdl. Then only if we map the wsdl fault msg to our proxy fault msg, we get meaningful fault details.
    If your target WSDL does not support fault mesg, it is not going to be helpful at all.

  • Subcontracting process for MTO scenario

    Dear Sir ,
    In my company one scnario comes , in which we are making MTO sales order for customer , some item of BOM of finished goods I have  to provide to the subcontracting vendor for making semifinished goods .
    How I can do this activity according to SAP point , as subcontracting vendor stock is represented with specail indicatior O and sales order stock with E.
    Please help to get rid off this issue.
    thanks & regards
    Shailendra

    check these links http://help.sap.com/erp2005_ehp_04/helpdata/EN/4d/2b90b043ad11d189410000e829fbbd/content.htm
    http://help.sap.com/bp_blv1600/V5600/BBLibrary/HTML/150_EN_IN.htm
    Edited by: anjali s on Apr 28, 2009 12:57 PM

  • What is stateful and stateless message processing

    What is stateful and stateless message processing ?
    When it is used ?

    Hi
    Before going to Statefull or Stateless...u have to know about java and EBJ and what is session as well.
    Basically we are using 2 S in EBJ.It is nothing but persistance of data.
    Statefull: It means data are persists in multiple sessions.
    Stateless: It means data are persists in single session.
    in simple terms
    if you use BPM in your integration scenario then it is stateful.
    without BPM can be considered as stateless.
    Business Process Management provides SAP Exchange Infrastructure with functions for stateful message processing: The status of an integration process is persisted on the Integration Server. This means that you can specify how long an integration process must wait for further messages to arrive, for example. Furthermore, this enables you to process messages within an integration process further still; for example, you can collect certain messages and then send them in a particular order.
    This basically means SAP XI as a EAI tool without the BPM provides stateless message. this means that one message coming in SAP is not dependtent on another message.
    BPM in SAP XI is used to make messages stateful and this allows us to do functionalities like collecting message , splitting message, waiting for a message etc.
    Refer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c656a9d-0901-0010-bcaf-fed14210c991#q-16
    http://help.sap.com/saphelp_nw04s/helpdata/en/93/33b504f33cb9468bf35f8fbda11294/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c656a9d-0901-0010-bcaf-fed14210c991
    thanks
    Swarup

  • How to increase timeouts for Async messages? Which parameter ti increase?

    Hi guys,
    can you please provide a parameter name which needs to be increased so long taking message processing of asynchronous scenarios which contain lots of data would not fail because of the timeout?
    Thank you for your help, Andrzej

    Hello,
           you can modify the time out parameter. refer sap note 856597
    Regards
    Monica

  • Can't see messages on sxi_monitor for sync scenario?

    Hi gurus,
    We are using PI 7.11. We found after no operation for ESR or ID for a long time, the system pops up the error "no authorization...", then we have to click esr on pi main page and logon again. Is there any parameter to change the user session or somthing?
    Thanks in advance.

    your subject line seems different to the issue you are having...
    or they could be the same!  have you set the messaging logging for sync scenarios in SXMB_ADM?
    can you explain the actual problem you are having?  it makes no sense.

  • Message routing for IDoc to IDoc scenario

    Hello Colleagues,
    i have to configure a IDoc scenario R/3 > XI > (R/3 Test or R/3 QA), Messagetype PROJECT > INTERNAL_ORDER and have one Question regarding the message routing. The sending R/3 system transmit in some cases IDocs to the test R/3 and in other cases to the QA R/3.
    How is the best practice to setup the message routing for this scenario.
    I would prefer to do this by means of Partner Profile at sending system.
    Is this possible to configure at Receiver Determination?
    Many thanks in advance!
    Jochen

    Hi Jochen,
    >>>>by means of Partner Profile at sending system.
    inside receiver determination (<b>conditions</b>) you have access to EDI_DC40
    segment of an IDOC - so the one with partner information
    so you can use it as you need
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Stateful messages in BPM(Urgent)

    hi,
    BPM is used for handelling stateful messages.But what is the maximum no. of messages it can handle,without reducing the performance.

    Hi,
    Business Process Management provides SAP Exchange Infrastructure with functions for stateful message processing: The status of an integration process is persisted on the Integration Server. This means that you can specify how long an integration process must wait for further messages to arrive, for example. Furthermore, this enables you to process messages within an integration process further still; for example, you can collect certain messages and then send them in a particular order.
    For Performance fine tunning avaoid having message mapping inside BPM,do it either before the BPM or after BPM
    BPM is used for Stateful communications,suppose u have to delay message processing,or wait for other messages to arrive and then semd them all together,in that case use BPM.
    go thru this: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-8569d193124e
    Performance is not only depend on the usage of BPM, it also depends on the message volume inside the BPM. So it depends on the memory size, message size i.e payload size , design , mapping used etc
    This basically means SAP XI as a EAI tool without the BPM provides stateless message. this means that one message coming in SAP is not dependtent on another message.
    BPM in SAP XI is used to make messages stateful and this allows us to do functionalities like collecting message , splitting message, waiting for a message etc.

  • Separation of business processes in IDoc scenarios

    Hello!
    We have implemented an IDoc -> XI -> IDoc scenario with complex mappings and enhanced receiver determination using the value mapping API in which about 15 different R/3 platforms send IDocs to XI for internal ordering.
    All R/3s are using standard IDoc types like DELFOR.DELFOR02, DESADV.DELVRY03, ORDCHG.ORDERS05, ORDERS.ORDERS05 and ORDRSP.ORDERS05. As XI gets more and more used additional projects are coming up in which we will also use exactly the same IDoc types.
    Especially when using enhanced receiver determination it now gets extremely difficult to separate the different business processes once they use the same IDoc types. The projects do not only share the same receiver determination object but what is even worse they also share the same message mapping object to determine the receiver. This makes development, testing and MTP extremely difficult and requires coordination over several project teams.
    Within R/3 business scenarios can easily be separated using different message codes and message functions. However, once the R/3 post IDocs to XI there is no clear separation possible any more.
    Of course, every project can implement own Java classes for enhanced receiver determination and transport the archives separately but still the problem is that all the projects using the same IDoc message type share the same message mapping object to the determine the receiver. This means that it would be necessary to fill the input parameters for the enhanced receiver determination classes of ALL projects within the same object. Either by putting logic in the graphical mapping or writing another Java function to call the different Java classes for enhanced receiver determination based on the message code and message function.
    From a design perspective it is no good approach to mingle logic for different projects and business scenarios in the same development objects. What alternatives do we have? Does SAP plan to support a separation using message code and message function for IDoc scenarios in the Integration Repository?
    Regards, Tanja

    Hello!
    Does nobody have any comments on this?
    Regards, Tanja

Maybe you are looking for