BPM build for asyc to sync to async scenario

Hi ,
I have a scenario where
1. abap proxy  triggers and sends no of records and sequence id...
2. i'l update the JDBC recvr
3.the JDBC sends an acknowledgement no of  records updated.
kindly help how to build a BPM for this scenario to compare the no of records .. so that i'l be sending the sequence ID back
via another async proxy...
plz help me in the build

Satish how do i compare in " switch " the record count of proxy and JDBC .. if u can elaborate a bit
This comparison should be done in a mapping program.....AFAIK you cannot do such a comparison in a Switch Block....
Introduce a mapping (2:1....proxy and JDBC resp on source and some structure in the target).....in this mapping compare the Sequence ID from Proxy with that from JDBC response.....if both match then make the target element as "X"...if does not match then make the target element as "Y"......now based on the value (X/ Y) define the condition accordinlgy in your Switch......
If the value is X then it should mean that the both the Sequence IDs are same and then have the Send step in the corresponding branch....
If the value is Y then the values do not match....then execute the otherwise branch.
Regards,
Abhishek.

Similar Messages

  • 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

  • Correlation issue in JMS adapter - SYNC/ASYNC scenario without BPM

    Hi,
    I am working on a SYNC/ASYNC scenario with JMS adapter without using BPM. My scenario is SOAP<>PI>JMS. I configured the interface as below:
    1. SOAP Sender channel
    2. JMS Receiver Channel writing to Queue A.
         Module used:      a. RequestOneWayBean
                   b. WaitResponseBean
         Correlation Settings:
                   a. Set JMS Correlation ID to "XI Message ID"
                   b. Store JMS CorrelationID of request (Checked)
                   c. Set JMS Property to "JMS Correlation Id"
                   d. Value = "XI MEssage ID"
    3. JMS Sender channel reading from queue B ( I am exporting the message from queue A and importing into queue B)
         Module used:      a. NotifyResponseBean
         Correlation Settings:
                   a. Set XI MEssage Id to "GUID"
                   b. Set XI Conversation ID to "Stored JMS COrrelationID of Request"
    I can see the cid in the message from queue A. But I observed thhat the header format of the message in Queue A is "MQSTR".
    ISSUE:
    1. While writing the message to queue A, below adapter log details(part b) concerned me:
         a. Message '8747a7c2-2b06-11df-8055-005056a70ed6' successfully processed by channel
         b. Could not create acknowledgements for message '8747a7c2-2b06-11df-8055-005056a70ed6'
    I am not sure why I am receiving the message that "  could not create acknowledgements"
    2. While reading the message from the sender channel,I consistently get the error message as below:
         a. XI message ID corresponding to JMS message with ID 'ID:414d51205341504449442e514d202020c67b954b20005602'
              will be created as a new GUID with value '21bca916-424f-41f6-3347-c71090392b58'
         b. Error while processing message '21bca916-424f-41f6-3347-c71090392b58';  detailed error description:
              com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: found no correlation ID: RecoverableException:
              found no correlation ID at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:105) ...
    Below are the blogs which I have already gone through:
    1. JMS Synchronous Scenario without BPM - Correlation Settings and Transactional JMS Session
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b028f6f6-7da5-2a10-19bd-cf322cf5ae7b
    2. Note: 1086303
    3. Sync / Async Bridge without BPM
    In the note, they mentioned something about header being "MQRFH2". BUt in our case, the header is "MSSTR". Not sure whether it makes any difference.
    Please help.
    Edited by: GP on Mar 9, 2010 4:24 AM

    Hi,
    detailed error description:
    com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: found no correlation ID: RecoverableException:
    found no correlation ID at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:105) ...
    This error would generally arose when there are multiple messages, got stuck in the outbound queue. Try to stop both the sender and receiver JMS comunication channels and clear both the inbound and outbound queues.
    Once all the messages in the queue are cleraed, try posting the message again.
    Regards,
    Swetha.

  • Async to sync to async across different SWCV using BPM

    I have inherited some scenarios and incomplete config...  the more i dig the more i find....
    i think I have a SAP proxy -> web (sync) -> mail adapter scenario.
    i have created the SWCV for the web, the Proxy is using SAP Standard ERECRUIT objects (aysnc) and i guess i need to use a BPM to link the async -> sync -> async.
    however, i cannot use the object from the ERECRUIT object in my BPM...  :o(  i have tried... it is not allowing me...
    the service interface is not abstract... i cannot create an abstract version of the SI in my namespace and use it...  as it can only access the DT and External Definitions within the SWCV...
    would it be best to map the SAP structure to a custom copy of the SAP Structure within my namespace then proceed with the BPM?
    what would be best practice for this???  has anyone else come across a similar scenario?  is BPM the answer???
    i have been looking at this blog and it looks the way to go...
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    i am using rules to determine where the message should be routed too in the receiver, but i get the feeling this will have be implemented for all messages once i get the first working...  the process will probably be the same, jsut the final Web destination will be different....

    for the BPM, you can only access service interface in the same SWCV as of the BPM.

  • Sync or ASync for a Data Warehouse environment?

    We have a 7 TB DW environment that we're using High Availability on. Almost all of the data is bulk loaded nightly/ weekly. We've been running this in Sync-commit mode, but lately the Transaction Log in our Primary DB has grown to > 1/2 TB waiting on
    the bulk loads to be committed on the Secondary server. 
    Would this scenario be mitigated if we were using ASync-commit mode? Would the TLog, no longer waiting for the Secondary to synchronize, be able to shrink as it normally would (of course considering TLog backups, etc.)?
    TIA, ChrisRDBA

    We have a 7 TB DW environment that we're using High Availability on. Almost all of the data is bulk loaded nightly/ weekly. We've been running this in Sync-commit mode, but lately the Transaction Log in our Primary DB has grown to > 1/2 TB waiting on
    the bulk loads to be committed on the Secondary server. 
    Would this scenario be mitigated if we were using ASync-commit mode? Would the TLog, no longer waiting for the Secondary to synchronize, be able to shrink as it normally would (of course considering TLog backups, etc.)?
    Hi,
    Whether you use Sync or Async mirroring( I guess you are talking about mirroring) logs generated by transaction would be same. IMO problem here is logs being generated. Of course in sync mirroring transaction will wait for commit on mirror to commit
    it on principal so in sync commit would be delayed there would not be affect to transaction log.
    From what you gave I suggest you to break bulk load operation in more quantised batches. I mean to say decrease amount of data being loaded followed by (If possible) more transaction log backups and in this case Async would help to speed up commit but remember
    chances of Data loss in case of disaster will increase in Async Mirroring plus you need to have Enterprise edition to take benefit of Async mirroring.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Alerting for complete async scenario

    I'm new to XI and I need advice from XI experts.
    Could any one explain me how to setup the alert scenario for complete async scenario in case of any errors in XI like mapping error etc. I have gone through some alert config documents but what I'm looking for is, suggestions and recommondations for as how to implement alert scenario for async processes. how is it implemented in async and sync processes in real time. whats the good approach for alerting and error handling.
    Thanks,
    Sudha Madhuri

    HI,
    You can use alerts for alert the msg/error msg to user with/without interpt the process or while processing the msg.
    In Async process you can use alerts in UDF or through BPM.
    In Sync , you can raise alerts through BPM.
    Also reconcile the process with BPM.
    Please see the below links..
    Alerts with variables from the messages payload (XI) - UPDATED - /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    XI ALerts with container elements - /people/sukumar.natarajan/blog/2007/01/07/how-to-raise-alerts-from-abap-proxy
    Reconciliation of Messages in BPM - /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
    /people/sap.india5/blog/2005/12/06/xi-ccms-alert-monitoring-overview-and-features - CCMS Alert Monitoring
    Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    blogs for alerts
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9c/34193cb4f5131de10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8a/3e2d4105f8d92be10000000a1550b0/content.htm
    Regards
    Chilla..
    <i>Points rewarded if it is useful..</i>

  • Proxy to JMS Scenario: switch from sync to async proxy,does it makes sense?

    Hi @all,
    i've implemented a sync proxy to JMS scenario that works well. Backend is ECC 6.0 and Middleware is PI 7.1.
    Business Case: Run a request with a number and get a response back with a corresponding entry for the number. That means, there is always a response expected.
    Now the following thing appears: the receiver system could not handle many calls at one time (200 calls are planned at each run), the calls reduces the performance. Now gys at receiver system likes to develope a buffer of 10 seconds between the requests to handle some kind of load balancing with that. That means for the request that it the response takes +10 seconds back to backend. It is also possible to handle that in SAP backend with a waiting-statement in coding, so there is no need to go from sync to async - but the customer requested us to implement this scenario in async.
    JMS is always async, I know. But the Service Interfaces for Inbound and Outbound are of mode sync - so I can call my outbound Interface class in backend with Importing Output and Exporting Input.
    My question is: makes it sense to go from sync to an async scenario?
    And how looks the coding in backend for the response? I guess that it only makes sense to switch to async when no response entry is needed (example: for write operations).
    Thanks in Advance,
    Stefan

    > But in case of switching, what is the best way?
    > Should I implement 2 senarios? Or is it ok to switch the Inbound and Outbound Service Interface from sync to async?
    I don't think you need 2 scenarios for this. Just one is enough with different RDs.
    Over all in this case you have to re-create/modify the service interfaces and also you have to create 2 interface mappings. You have to also create the new inbound and outbound proxies since service interface mode will be changed. For outbound proxy the code can be reused and for inbound proxy also logic and code can be taken from your old code.

  • Doubt about Sync and Async process

    hi experts i have one small doubt
    if we r having the scenario like file to rfc
    iam passing the input parameter like material number through file  adapter
    and then i want to get the material details response from rfc sap r/3 to file system
    this is the scenario.
    now here which is the synchronous processs 
    and which is the asynchronous process
    please let me know
    clear my doubt with explanation please......
    thanks
    giri

    Hi Sesha,
    For information on sync/async please refer:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/65d4dab39b0398e10000000a1553f6/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/43/65d4dab39b0398e10000000a1553f6/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/83/d2a84028c9e469e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/83/d2a84028c9e469e10000000a1550b0/frameset.htm</a>
    Regards,
    Subhasha ranjan
    Message was edited by:
            Subhasha Ranjan

  • Sync-to-Async process

    Hi,
    I'm trying to call an asynchronous process from a synchronous one following the Sync-to-Async instructions available in the documentation ("Building Synchronous and Asynchronous business processes").
    I can generate the Sync-to-Async WSDL file without problems but when I try to build the control from the WSDL, the callback method is never generated (the callback method is defined in the WSDL) and get this warning:
    "WARNING: processes/sync/SincronWorkerSyncContract.wsdl Line 0, Col 0: Operation 'response' was not added to the CTRL file."
    Any ideas of what I'm doing wrong?
    Thanks!!

    Raghavendra,
    You should check the syncmax wait time parameter on the server. It is this parameter that causes synchronous interfaces to time out .
    - santosh

  • Acknowldegement in asynchronous scenario: is it sync or async

    Dear community,
    in an asynchronous scenario with a fault message type defined for the inbound interface, the handover of a message from XI to receiver consists of two steps:
    Step 1: XI will send a message to the receiver
    Step 2: The receiver will acknowledge positively or negatively.
    Will Step 1 and Step 2 be handeled synchronously or will it be handeled asynchronously for async scenarios ?
    The background of this question is resource-related. If the processing of a message is synchronous, processing of these two steps would block resources, which would be problematic for higher volumes.
    Logically it seems as if this would all be async but I could not find a detailled spec and I need to know for sure.
    Thanks a lot in advance !
    Jochen

    Hi Jochen,
    if you want to have the result of a message at the receiver you have 2 alternatives:
    Synchronous:
    +You get the errors at once
    +You know very soon, what happend
    -Bad performance, bcoz processing time may be for minutes stopped
    -no connection (receiver offline) leads to an error
    Asynchronous with acknowledgement:
    -You get only sometimes an error acknowledgement
    -The calling programm has no direct information
    +Much better performance
    +Queing mechanism allows automaticly and manually restart
    Usually you try to build, if possible, asynchronous scenarios. But it depends on requirements.
    Regards,
    Udo

  • 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

  • Can processes be both sync and async

    Hi,
    When creating a BPEL process in JDeveloper, there are two pre-defined templates for synchronous or asynchronous processes. As such, I've been viewing a process as being either synchronous or asynchronous.
    However, after a bit of experimentation, I've come to the conclusion that a process can contain both synchronous and asynchronous operations.
    Does this sound correct? Should I not be viewing a process as being one or the other, and it is fact the operation that is sync or async?
    Cheers,
    Toby

    Some thoughts on that:
    -You can view sync as a special form of async, so each sync process is also an aysnc process. (I'm ignoring the tech diff like two ports, two partnerlinks here)
    -You can call sync and async (BPEL-) processes in one process.
    -If a process P contains only sync processes, that will make P sync.
    -If a process P contains (among others) at least one async processes, that will make P async.
    -If you have a async process, you can wrap its invocation with a timeout, making it a sync process.
    Roman

  • Differnce between sync and async webservices

    All,
    What is the difference between sync and async web services?
    Actually i am looking for a web service, which doesn't return a response. is this achievable?
    Thanks

    SRAVZ wrote:
    What is the difference between sync and async web services?from a webservice protocal perspective there is no difference. you still make a request and get a response. the difference is in what the initial response contains. in a synchronous call, the initial response will contain the final result. in an asynchronous call, the initial response will not contain the final result, but may contain some sort of "ticket" which can be used in a subsequent call to get the final result. generally, the client will need to poll the webservice until the final result is available.
    Actually i am looking for a web service, which doesn't return a response. is this achievable?it's not really possible to not return any response. http is a request/response protocol. if you don't have any data to return, then the response will be fairly minimal, but it will still exist.
    Edited by: jtahlborn on Dec 2, 2012 9:22 AM

  • Naming sync and async operation

    Hi there,
    Does somebody know what is the rule for naming the synchronous version of an asynchronous operation (or vice verse)? Also, is the implementation pattern for the Create/Update/Delete/Sync EBO based EBS operations always supposed to be asynchronous request-response (while synchronous for Query/QueryList)?
    I know that Process() can be designed as both synchronous and asynchronous, but can the aforementioned have their synchronous version as well (asynchronous for Query/QueryList)?
    Regards,
    /Miko

    839396 wrote:
    Dear Friends,
    In 11g databgurad ,
    I planned to used 2 physical standy once in the same LAN and another in the DR site
    I need to have SYNC between primary and Standby 1 which is in same LAN
    I need to have ASYNC between primary an standy 2 which is in DR site
    Is it possible , if so how do i achieve this?
    Because i believe SYNC and ASYNC will be decided by oracle internally based on the Protection mode we choose so in that case
    we can't have mix up (SYNC and ASYNC) for standby databases?
    Regards,
    DBI think John already mentioned how to do, let me derive more .
    SQL> alter system set log_archive_dest_2='SERVICE=same_lan SYNC NOAFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=<db_unique_name>'
    SQL> alter system set log_archive_dest_3='SERVICE=DR ASYNC NOAFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=<db_unique_name>'
    >
         839396      
         Newbie
    Handle:      839396
    Status Level:      Newbie
    Registered:      Feb 23, 2011
    Total Posts:      14
    Total Questions:      8 (8 unresolved)
    >
    why all the questions are unanswered? Please close the threads and keep the forum clean. https://forums.oracle.com/forums/ann.jspa?annID=718

  • BPM Steps for RFC to RFC..

    hi..
    im configuring an R3 as sender and R3 is the receiver for the same..
    need to do this thru' BPM..
    can i have the steps in bpm mentioned for the same..
    say sumthing like...
    receive -> send sync and so on..
    regards,
    vishal

    Hi
    Try with this
    Reciver step which will listen req from RFC(Sync)
    Sender step which will push the request to another RFC
    Thanks

Maybe you are looking for

  • Mac mail now quitting with IMap plug-in

    I thought my Mac Mail problems were over. But lately, Mac Mail is now quitting with the IMap plug-in. This started to happen yesterday.  Why is it still quitting with alternate plug-ins.  Here's my console report, like I did last time. 8/14/14 7:13:2

  • Images No Longer Showing in Design View but Work Online

    Here is the live site that works - http://www.drinkupsandiego.com Everything works in the live site and it has been up and running for a couple of years.  I went to modify the site today in DW CC and none of the images showed up.  I noticed that the

  • PS CS4 "File Info" Forms - Clearing "Suggested Words"

    My photographer friend uses PS CS4 on a Mac book. She asked me if I knew how to clear the 'type-ahead' or 'suggested' words and phrases that show up in the PS CS4 'File Info' forms. She has some typos in the list of suggested words and she would like

  • PDF problem, perhaps ?

    If this is not the strict correct forum for this question, I apologize but it was the best I could find; I use a lot of PDF files that I all create with OSX's "print as pdf" I, myself, have no problems opening and viewing and printing the files. Howe

  • Customer has same Bill-To and Ship-to address...

    If a Customer has same Bill-To and Ship-to address, then is there any way to enter one address and copy to another in the BP-Master??? (in SAP B1 2007 B PL7)