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.

Similar Messages

  • Idoc (async) - soap (sync) - file (async)

    Hi.
    I have a flow from idoc (async) to webservice (soap sync) and I want the response from soap to be written in file (async).
    I want to do this without BPM and I have read some posts about using modules RequestResponseBean and ResponseOnewayBean.
    Can someone help me with this step by step.
    I have in ESR a OM that is async because of the outbound Idoc. Do I need a sync OM for the soap call and another async OM for the response to the file.
    Where do I need to put the modules? In the SOAP receiver?
    I know there are some threads that cover some of this but I couldn't find any that cover the whole of my issue step by step.
    Regards,
    Hjortur

    Yes doing async to sync is possible without bpm. YOu already got the design solution.
    >Where do I need to put the modules? In the SOAP receiver?
    Sender Channel.  In your case you might not need channel for idoc but for this configuration you might need to create one. That is my guess.
    In the module section sequence as follows
    1) AF_Modules/RequestResponseBean   Type:  Local Enterprise Bean    Module key   1
    2) CallSapAdapter                Type Local Enterprise Bean    Module Key 2
    3) AF_Modules/ResponseOnewayBean     Type Local Enterprise Bean  Module Key   3
    Plus follow the link given by shabarish as reference.

  • Communication across different subnets using DatagramSocket class

    Hi All
    I've written a simple client-server program to send broadcast messages across the network and receive them back after some processing. The problem is that the messages sent by the program are not received across the subnets i.e. my program broadcasts messages only on the one subnet. I am using DatagramSocket class. Is there any way to communicate across the subnets using DatagramSocket class or will I've to use the some other class like MulticastSocket?
    Thanks in advance
    Neeraj

    neejain wrote:
    The problem is that the messages sent by the program are not received across the subnets
    Your router/gateway is probably set up to drop udp. This is usually done by network administrators to prevent things like broadcast storms across large networks. If you have admin access to the router, you should be able to change it to allow routing of udp.
    God bless,
    -Toby Reyelts

  • AlwaysOn Async to Sync to Async

    Hi all,
    SQL Server 2012 or 2014, we can have primary replica and secondary replica in asyncronous mode, it is possible to switch from async mode to sync mode on the fly? And then back to Async? I mean with database in a production scenario under heavy load.

    Yes, it is possible, but you should note there are good differences between both the modes wherein with async there are data loss possibilities and in sycn not.
    Also if you change something on prod then you need to be cautious always as you do for a normal production environment and that also on very high transaction oriented environment.
    So we need to be careful for sure.
    Check below links to know more on it like how it effects the behavior and requirement:
    http://msdn.microsoft.com/en-IN/library/ff877931.aspx
    http://msdn.microsoft.com/en-in/library/ff877884.aspx
    Santosh Singh

  • ASync RFC -- Sync RFC -- SOAP scenario: do I need BPM?

    Hi,
    I have this scenario. ASync RFC --> PI --> Sync RFC --> PI  --> SOAP scenario.
    Here are the details.
    1. users run async RFC and it will pass data to PI.
    2. PI will call Sync RFC with received data and get the data.
    3. PI now calls web service with received data from #2.
    Do I need BPM to implement this scenario.
    Thank you.
    -Won

    I'm still wondering if it's possible to perform my scenario without using RFC lookup or BPM.
    Yes, it is possible.
    I want to see if PI supports sequence of calling RFC, JDBC, web service, etc and pass data to
    the next call in sequence... without BPM...
    Yes, PI supports that. Please make a search on SDN, there are numerous blogs / posts which talks about A/S bridge without BPM.

  • Sharing data across different webapps using JSP/Servlet

    I have two different web applications running on same WebLogic server say webapp1 and webapp2. Webapp1 has servlet which redirects the user to JSP in webapp2. While redirecting I have to pass one string value to called JSP. I have achieved this by using QueryString as follows:
    response.sendRedirect(ConfigService.getProperty("com.twofactauth.caymanlogin.caymanurl", null)) + "?userName=" + strCaymanUserName);
    but this expoes the value in browser address bar but i don't want to expose the value passed. I am searching the way to pass the value internally without exposing.
    so please tell me other way in which i can pass the value to called JSP without usign QueryString.
    I am using WebLogic 8.1 for deployments. Both applications are deployed on same WebLogic instance.

    I have two different web applications running on same
    WebLogic server say webapp1 and webapp2. Webapp1 has
    servlet which redirects the user to JSP in webapp2.
    While redirecting I have to pass one string value to
    called JSP. I have achieved this by using QueryString
    as follows:
    response.sendRedirect(ConfigService.getProperty("com.t
    wofactauth.caymanlogin.caymanurl", null)) +
    "?userName=" + strCaymanUserName);
    but this expoes the value in browser address bar but
    i don't want to expose the value passed. I am
    searching the way to pass the value internally
    without exposing.
    so please tell me other way in which i can pass the
    value to called JSP without usign QueryString.
    I am using WebLogic 8.1 for deployments. Both
    applications are deployed on same WebLogic instance.I think a big part of the problem is that you want the functionality of a web app to be available to others, but you've locked it up behind a UI.
    I think this is one of the benefits of a service-oriented architecture. You start thinking about the system functionality apart from the UI. Your JSPs become just another client of the services you expose. Anyone can call those services, as long as they can see that service on their network.
    When I've done this I've started with a Spring service interface that is completely separate from the view layer. Once I have that, I can expose it to any other client either with web services (not preferred) or Spring HTTP remoting (preferred due to its simplicity).
    %

  • 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.

  • Questions on async and sync's unit tests

    Hi All
    I write a API project and that have sync and async method.  
    Then I also write a unit tests for them.
    What I want to ask is how to write them is better ?
    public abstract class ApiProxyBase
            protected async Task<T>
    GetDataAsync<T>(IRestRequest restRequest, bool ignoreSslCertificateValidation
    = true) where T
    : ApiResponse, new()
            protected T
    GetData<T>(IRestRequest restRequest, bool ignoreSslCertificateValidation
    = true  where T
    : ApiResponse, new();
       public class GameServerApiProxy : ApiProxyBase, IGameServerApiProxy
    async Task<GetGameRedirectResponse>
    GetGameRedirectAsync(GetGameRedirectRequest request) ;
        public GetGameRedirectResponse GetGameRedirect(GetGameRedirectRequest request)
        public class GameServerApiProxyTest : TestsBase
            [Test]
            public async void Can_Get_Game_RedirectUrl_Async()
                await LogIn();
                var response
    = await _gameServerApiProxy.GetGameRedirectAsync(new GetGameRedirectRequest());
                response.Url.Should().NotBeNull();
                LogOut();
            [Test]
            public void Can_Get_Game_RedirectUrl()
                LogInSync();
                var response
    = _gameServerApiProxy.GetGameRedirect(new GetGameRedirectRequest());
                response.Url.Should().NotBeNull();
                LogOut();

    I have an
    article on asynchronous unit testing. I'd say your async unit test method should be async Task and not async void. Other than that, it looks good. In particular, since your interface has both synchronous and asynchronous APIs, you should have tests for
    both of them.
    Home page: <a href="http://stephencleary.com/">http://stephencleary.com/</a><br/> Programming blog: <a href="http://blog.stephencleary.com/">http://blog.stephencleary.com/</a><br/> <br/> <a
    href="http://www.landmarkbaptist.com/salvation">How to get to Heaven according to the Bible</a><br/>

  • 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

  • Statistics of Sync and Async messages in PI

    Hi,
    How can we count no of Sync and Async messages that were processed(sucessful or unsucessful) in PI.
    Does the worbench has any table or Report that will give me the statistics.
    Request some pointers on the same.
    Thanks ,
    Bhanu.

    Hi,
    Yes, such a report is available in RWB under Performance Monitoring. Simply choose the required time period, and use Display Options to add the Processing Mode (that will say: sync or async). You can also use Performance Monitoring to get more details about these messages.
    Hope this helps,
    Greg

  • ASYNC to SYNC scenario using BPM.

    hi,
    i have a async to sync scenario. i have a File sender->PI(BPM)->ECC and the response from ECC->PI->SOAP.
    Here in PI, i am using BPM. The ECC side is a Synchronous BAPI. The response is sent to the SOAP receiver.
    in BPM, can someone tell me how many transformation steps do i need i.e mappings. and how many abstract interfaces, synchronous interfaces, outbound interfaces, inbound interfaces?
    also how many send,receive and transformation steps.
    and in the configuration part,
    how many receiver determinations, interface determinations do we need.
    rgds,
    mithun

    Hi,
    File sender->PI(BPM)->ECC and the response from ECC->PI->SOAP
    Service interfaces
    -> SI_OB for file (Request)
    ->SI_IB for Soap(ASy Response)
    ->SI_ABstract(ASy Request)
    ->SI_Abstract (Asy Response)
    ->Si_REq_RES_ABS(Syn)
    ->SI_ABS(ASY BAPI REQ)
    ->SI_ABS(ASY BAPI RES)
    mappings
    one for request mapping(file Req to BAPREQ) and one for response mapping(BAPI REs to RESponse mSg).
    operation mappings-2, one for Req MApping ANd One for Res ponse mapping.
    IP
    reciv->transformation(REq)->Send(SYN/ASYN)->transformation(RES)->Send
    ID:
    3 reciver deteminations
    one for file to IP
    IP to ECC and IP to SOAP
    3 interface determinations
    1 sender agrement
    2 reciver sgrements
        one for IP to ECC
    and IP to SOAPregards,
    ganesh

  • Doc on Async and Sync using BPM

    Hi all
    Can anyone send some docs explaining the steps involved in bridging async and sync interface using BPM. The source adapter is JDBC and target is proxy. I've already checked one blog by krishna moorthy (File-File using BPM) and based on that i tried but coudnt get the expected result for my scenario.
    Thkx

    Hi PS,
    in your Integration Repository go to:
    Software Component: SAP BASIS
    Namespace: http://sap.com/xi/XI/System/Patterns
    Process: BpmPatternSyncAsyncBridge
    This is a very good example!
    Regards Mario

  • Design question - 1 source (sync) -- 2 receivers (sync and async)

    Hi All,
    What are the options available to design following scenario:
    Message (material update) sent to XI from 3rd party system, XI will update material synchronous calling BAPI in SAP, response will be sent back to 3rd party. The same message (material update) needs to be updated in SQL DB asynchronously.
    Do we need to use BPM for the above scenario (SystemA <> XI <> SAP and same message from SystemA -->XI --> SQL DB)???
    If I need to use BPM What are the steps to be used in BPM??
    Can we do this without BPM?? What is the procedure??
    Thx
    N@v!n

    Ahmad,
    I think that for 1:n scenarios, if you have synchronous receiver interfaces, you'll need BPM for that. That happens because XI wont be able to decide on which receiver response message will be actually mapped back to sender response. However, Im not sure it wont work for 1:2 scenario, if you have 1 sync and 1 async receiver interfaces. Theoretically, it could work. You'll have to test it in order to be sure. If you get "TOO_MANY_RECEIVERS" error then it is like I said, it wont process 1:n with sync interfaces.
    Kumar,
    as for the BPM, you dont have necessarily to have transformation steps inside BPM, you can normally perform mappings at interface determination runtime (given that your interfaces are unique for each send step inside BPM). The steps you really need inside BPM are:
    1. receive step in "open sync/async bridge" mode;
    2. send step in synchronous mode (for receiver RFC);
    3. send step in asynchronous mode (for receiver JDBC);
    4. send step in "close sync/async bridge" mode.
    Regards,
    Henrique.

  • Doubt on Sync-Async  bridge using BPM

    Hi Experts,
                     I had a doubt on Sync-Async  bridge using BPM,
       1. If sender system is SAP system and receiver system is non-sap system then while configuring in Integration Directory how many  Receiver Determinations should be done ?
    2.Plz explain if we have 2 receivers i.e one sender SAP system and 2 non-sap systems then what will be the no. of receiver determinations?
    3.How we have to count no. of receiver determinations if we have 2 receivers and 1 receiver system? If so what is the no. of receiver determinations in case of 1 receiver syst and 2 receiver systems?
    Plz clarify above questions  good answers will be definetly rewarded.
                                                                                    Regards,
                                                                                    Vinod.

    vinod,
    ... Sync-Async bridge and Recievr determination are not related....
    Sync-Async bridge means.. u r sending some request syncronously...and u r expecting the response also in synchronous way... but u r not getting the response  directly...u r getting it via BPM..i.e asynchornously.....
    see here what is the  Use of Synch - Asynch bridge in ccBPM
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    and here if u have 2 reciver... u have to create 2 receiver determination and ofcourse for BPM one reciver dtrmination is required.... since in BPM related scenario BPM will act as a reciver...BPM(IP) wil first recive the message then it will be forwarded to Receiver system!!! so total 3.
    <b>3.How we have to count no. of receiver determinations if we have 2 receivers and 1 receiver system? If so what is the no. of receiver determinations in case of 1 receiver syst and 2 receiver systems?</b>
    r u telling that u r having two recivers and each receiver is receiving messages using 2 interaces???
    u have 2 use 2 receiver determination and 4 interface determination.
    regards
    biplab

  • Async to Sync Scenario

    Hi Experts,
    I am doing async JDBC to sync webservice scenario.
    I did create async interface for JDBC and sync interface for webservice.
    my scenario is i just want to see the response from webservice in XI for trouble shoot, i dont need to send the response message to database.
    can anyone tell me how can we do it without using BPM (async to sync bridge).
    Kind Regards,
    kiran

    Hi
    Please go through below steps now
    I have added the comments with same in bold font
    Data Types: JDBC_DT,File_DT
    Message Types: JDBC_MT,File_MT
    Message Interfaces:
    JDBC_OUT_MI(outbound,async),This should be Sync given MT_File as respo
    File_MI(inbound,async), Dont use this
    WS_IN_MI(inbound,sync,input=WS_req,output=WS_resp)
    WS_resp_MI(outbound,async,WS_resp), -----No need of this
    Message Mappings:
    JDBC_WS_req_MM
    (JDBC_OUT(JDBC_MT)------->WS_IN_MI(WS_req) ).
    *Here WS_IN_MM msg. mapping should be used insted of*
    *WS_IN_MI i.e message interface*
    *WS_File_Res_MM*
    (WS_Res(Source -- Ws_res) ---> File_MT)
    Interface Mapping: JDBC_WS_req_IM(source=JDBC_OUT_MI,target=WS_IN_MI)
    In IM you need to use the above one only
    Here you have two tabs as Request & Response, Request will be normal as
    it is JDBC_MT to WS_Req with proper mapping
    *In Response use File_MT <--- Ws_RES with appropriate mapping *
    For ID configuration refer below sample scenario,
    It is File1 to RFC to File2- Just in your scenario it is JDBC>WS--->File2
    So refer and do necessary changes
    From SP 19 on XI 3.0 and SP 10 on PI 7.0, a File - RFC - File ( Asynch - Synch ) scenario can be done without a BPM.
    Steps:
    Integration Repository
    The Integration Repository will be similar to any Synchronous Scenario ( say HTTP - RFC ) . 1 Outbound Synch message Interface and 1 Inbound Synch Message Interface.
    Integration Directory
    This is where a few differences lie, so let me take some time.
    1. The Receiver Determination , Interface Determination will be the same as in HTTP - RFC synch scenario. Create the Sender File Adapter, Receiver RFC Adapter and Receiver File Adapter.
    2. Sender Agreement will be for the Sender File Adapter. Sender Agreement uses the Synch Outbound Message Interface.
    3. Receiver Agreement will be for the Receiver RFC adapter. Receievr Agreement will use the RFC as thge Inbound Message Interface.
    4. We need to add a few modules in the Sender File Adapter.
    Go to the Modules Tab of the Sender File Adater, and add the following modules in the same sequence,
    Number - ModuleName - Type - ModuleKey
    code1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
    2- CallSapAdapter-Local Enterprise Bean - 2
    3-AF_Modules/ResponseOnewayBean-3[/code]
    Parameters
    ModuleKey - ParameterName - ParameterValue
    code1 - passThrough - true
    3-receiverChannel - Receiver File Adapter Name
    3-receiverService - Receiver Business Service/ System[/code]
    With this configuration, you can now handle the requirement without a BPM
    This feature been already blogged for JMS Adapters in these blogs ,
    Sync/Async communication in JMS adapter without BPM (SP19)
    /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
    Async/Sync Communication using JMS adapter without BPM (SP 19)
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    Dynamic Configuration is also possible,and this as well as many other options are discussed in the How To guide - "How To Realize a sync-async and async-sync
    bridge within the Adapter Framework" available on the Service Market Place.
    For info on the Modules used here, look into these links,
    Request Response Bean
    http://help.sap.com/saphelp_nw04/helpdata/en/45/20c210c20a0732e10000000a155369/content.htm
    Response Oneway Bean
    http://help.sap.com/saphelp_nw04/helpdata/en/45/20cc5dc2180733e10000000a155369/content.htm
    Hope this info helps,
    Thanks
    Swarup

Maybe you are looking for

  • Why are my images coming out of CS5 Photoshop granulated and pixelated after saving?

    I am new to CS5 Design Premium. I use a Canon 50D and shoot in RAW format. I upload my pictures into Bridge and do most of my editing in Camera Raw, then I open the object into Photoshop where I save the image into a folder. I save each image as a .p

  • MuticolumnPartitioning key

    Hi All, BANNER Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi PL/SQL Release 10.2.0.4.0 - Production CORE 10.2.0.4.0 Production TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio NLSRTL Version 10.2.0.4.0 - Production

  • MDM Console - Roles

    Hi all Inside the Data Manager i create 2 rows in the Named Serches table, then i did a query (in the free form search --> i look for a value in qualified) and I finally I assign to one of them. I prude the resulset: Search --> Restore Named Search -

  • Mdt 2013 refresh wizard canceled as soon as I authenticate

    I've been after this for a week or so now. I'm trying to run a POST OS Installation task, something I've done many times before, but always in MDT 2010. I"m now trying to kick off MDT 2013 from Windows 7 x64, and I get as far as being prompted for cr

  • Problem in deep cloning

    Hai Friends, I am trying to use deep cloneing for copying objects and then setting the appropriate values to the properties of copied object. When we make deep clone copy, it is supposed to retain original property values. But in the example I tried,