Designing a synchronous scenario

Hello experts
we have a proxy to webservice scenario.The requirement is to get back  the response within 3 seconds or else raise a timeout exception.Any idea about how to design this.

Hi,
>>>you can use a BPM...include a Block Step ---> put a Deadline Branch ---> set time as 3 sec...put a control step in it and choose the action as Throw Alert...check if this design approach suits your req...
1. you cannot (or should never) use a BPM for a sync scenario - it is very likely it will always be more then 3 sec with a BPM
2. this is not possible without a BPM for one interface
Regards,
Michal Krawczyk

Similar Messages

  • Synchronous Scenario SOAP to Proxy and Proxy to SOAP

    Hi Sdn,
    I am new to Synchronous Scenario.
    Third party will send SOAP message requesting some information from SAP.
    SOAP - > PI -> Proxy SAP
    they are expecting a response Proxy - > PI -> SOAP.
    Could you please let me know how to design teh Synchronous Scenario in PI .
    Thanks

    > Create DT and respective MT for Request and Response.
    > Create Service Interfaces with Synchronous mode with respective MT's.
    > Create Two separate MM with respective Request and Response MT's.
    > Create Operation Mapping and call both Request and Response Mappings in it.
    > Complete the Configuration part considering Sender SOAP and Receiver ECC Services.
    > Configure CC with required parameters in Sender SOAP CC and Receiver XI CC.
    > Generate wsdl from Sender agreement and save it as a local file.
    > Use SOAP UI or any available Tool for testing purpose. Import the generated wsdl, provide input data and execute the test.
    > If you are comfortable with expected result, deliver wsdl to the Sender Party.
    > For Inbound Proxy, you can refer initial replies.
    Hope it helps.!
    Regards,
    Sunil

  • File to Soap synchronous Scenario

    Hi Experts,
       I have designed an synchronous File to SOAP scenario in PI 7.31.  I am able to send the request am getting the response to target path also  correctly  but am not able to see the msg in SXMB_MONI.am not using ICO am using dual stack in  PI 7.31    plz help on this.
    Regards,
    Rajendar K

    Hi Rajendar, what does your configuration look like? (e.g. Service Interfaces, Oparation Mapping)
    I'm trying to do the same but SOAP response message is not getting back into IE. I have LOGGING_SYNC already set to 1.
    Thanks, Aaron

  • No response message in Proxy to JDBC synchronous scenario

    Dear Team,
    I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
    Business Scenario:
    ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
    Design :
    For Request structure:
    a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
    b-->Created MT for Receiver JDBC  with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
    I have been following  the link and Bhavesh Kantilal document.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
    rameset.htm&current_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
    For Response structure:
    Created MT for Receiver JDBC with All the column names.
    Created MT for target ABAP ECC with the same 11 column name of JDBC response.
    Note :
    1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
    2. The PING test connection for Cc works fine to database.
    Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
    1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
    2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
    3. How can I test ICO in ID?
    4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
    Hope all your inputs can improve my design part.
    Regards
    Rebecca

    Hi Rebecca,
    Did you go through all of these links below?
    PROXY to JDBC- SYNC
    Proxy to JDBC Sync, with Idoc Receiver
    JDBC to PROXY Sync Scenario | SCN
    JBDC Receiver Insert Statement Response
    Re: Synchronous JDBC select
    receiver JDBC structure
    Regards,
    Jannus Botha

  • SAP PI conceptual best practice for synchronous scenarios

    Hi,
    <br /><br />Apologies for the length of this post but I'm sure this is an area most of you have thought about in your journey with SAP PI.
    <br /><br />We have recently upgraded our SAP PI system from 7.0 to 7.1 and I'd like to document  best practice guidelines for our internal development team to follow.
    I'd be grateful for any feedback related to my thoughts below which may help to consolidate my knowledge to date.
    <br /><br />Prior to the upgrade we have implemented a number of synchronous and asynchronous scenarios using SAP PI as the hub at runtime using the Integration Directory configuration.
    No interfaces to date are exposes directly from our backend systems using transaction SOAMANAGER.
    <br /><br />Our asynchronous scenarios operate through the SAP PI hub at runtime which builds in resilience and harnesses the benefits of the queue-based approach.
    <br /><br />My queries relate to the implementation of synchronous scenarios where there is no mapping or routing requirement.  Perhaps it's best that I outline my experience/thoughts on the 3 options and summarise my queries/concerns that people may be able to advise upon afterwards.
    <br /><br />1) Use SAP PI Integration Directory.  I appreciate going through SAP PI at runtime is not necessary and adds latency to the process but the monitoring capability in transaction SXMB_MONI provide full access for audit purposes and we have implemented alerting running hourly so all process errors are raised and we handle accordingly.  In our SAP PI Production system we have a full record of sync messages recorded while these don't show in the backend system as we don't have propogation turned on.  When we first looked at this, the reduction in speed seemed to be outweighed by the quality of the monitoring/alerting given none of the processes are particularly intensive and don't require instant responses.  We have some inbound interfaces called by two sender systems so we have the overhead of maintaing the Integration Repository/Directory design/configuration twice for these systems but the nice thing is SXMB_MONI shows which system sent the message.  Extra work but seemingly for improved visibility of the process.  I'm not suggesting this is the correct long term approach but states where we are currently.
    <br /><br />2) Use the Advanced Adapter Engine.  I've heard mixed reviews about this functionaslity, there areh obvious improvements in speed by avoiding the ABAP stack on the SAP PI server at runtime, but some people have complained about the lack of SXMB_MONI support.  I don't know if this is still the case as we're at SAP PI 7.1 EHP1 but I plan to test and evaluate once Basis have set up the pre-requisite RFC etc. 
    <br /><br />3) Use the backend system's SOAP runtime and SOAMANAGER.  Using this option I can still model inbound interfaces in SAP PI but expose these using transaction SOAMANAGER in the backend ABAP system.  [I would have tested out the direct P2P connection option but our backend systems are still at Netweaver 7.0 and this option is not supported until 7.1 so that's out for now.]  The clear benefits of exposing the service directly from the backend system is obviously performance which in some of our planned processes would be desirable.  My understanding is that the logging/tracing options in SOAMANAGER have to be switched on while you investigate so there is no automatic recording of interface detail for retrospective review. 
    <br /><br />Queries:
    <br /><br />I have the feeling that there is no clear cut answer to which of the options you select from above but the decision should be based upon the requirements.
    <br /><br />I'm curious to understand SAPs intention with these options  -
    <br /><br />- For synchronous scenarios is it assumed that the client should always handle errors therefore the lack of monitoring should be less of a concern and option 3 desirable when no mapping/routing is required? 
    <br /><br />- Not only does option 3 offer the best performance, but the generated WSDL is ready once built for any further system to implement thereby offering the maximum benefit of SOA, therefore should we always use option 3 whenever possible?
    <br /><br />- Is it intended that the AAE runtime should be used when available but only for asynchronous scenarios or those requiring SAP PI functionality like mapping/routing otherwise customers should use option 3?  I accept there are some areas of functionality not yet supported with the AAE so that would be another factor.
    <br /><br />Thanks for any advice, it is much appreciated.
    <br /><br />Alan
    Edited by: Alan Cecchini on Aug 19, 2010 11:48 AM
    Edited by: Alan Cecchini on Aug 19, 2010 11:50 AM
    Edited by: Alan Cecchini on Aug 20, 2010 12:11 PM

    Hi Aaron,
    I was hoping for a better more concrete answer to my questions.
    I've had discussion with a number of experienced SAP developers and read many articles.
    There is no definitive paper that sets out the best approach here but I have gleaned the following key points:
    - Make interfaces asynchronous whenever possible to reduce system dependencies and improve the user experience (e.g. by eliminating wait times when they are not essential, such as by sending them an email with confirmation details rather than waiting for the server to respond)
    - It is the responsibility of the client to handle errors in synchronous scenarios hence monitoring lost through P-P services compared to the details information in transaction SXMB_MONI for PI services is not such a big issue.  You can always turn on monitoring in SOAMANAGER to trace errors if need be.
    - Choice of integration technique varies considerably by release level (for PI and Netweaver) so system landscape will be a significant factor.  For example, we have some systems on Netweaver 7.0 and other on 7.1.  As you need 7.1 for direction connection PI services we'd rather wait until all systems are at the higher level than have mixed usage in our landscape - it is already complex enough.
    - We've not tried the AAE option in a Production scenarios yet but this is only really important for high volume interfaces, something that is not a concern at the moment.  Obviously cumulative performance may be an issue in time so we plan to start looking at AAE soon.
    Hope these comments may be useful.
    Alan

  • HTTP-FILE synchronous scenario

    Hi,
    I want to configure a Http to file synchronous scenario.
    Message will be sent through the HTTP test tool. I have selected BestEffort as the QoS.
    We do not want to use the repository objects.
    Sample file say(<tag>this is a sample file</tag>) will be sent through HTTP test tool.
    This file should be received by the File Receiver channel and dumped on the FTP.
    In response, a file from some other folder on FTP should be sent.
    How can this be achieved?
    Regards,
    Pratibha.

    Hi Pratibha,
    the standard sap help side is here very good
    [Integration Processes (ccBPM)|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm]
    You need a receive step (synchronous) for for your http request.  For this you need 3 abstract interfaces: 1 synchr IF, 1 async for request container, 1 async for resp container. You need to correlate with a unique number which the http sender has to send (f.e. date/time stamp)
    Next may be a transformation (mapping) but not required.
    Then a async send step to send the file.
    The response file need to be created, the corresponding adapter should have a short poll intervall. The response file need to send the unique id as well.
    The BP correlates the second receive step, next you can - like before optional - execute a transformation step.
    Finally u close the sync/async bridge and send the response back. This will take assumedly a minute or more.
    The whole design is may be not sufficient. Better ask if the requierments are changeable.
    Regards,
    Udo

  • Using BPM in full synchronous scenario

    Hi PI Experts,
    I'm trying to use a single BPM in a "full synchronous scenario" like this :
    -Portal EP call webservice -> SAP PI. This one then execute a BPM with 2 successives steps/calls of Bapis :
        -first Bapi call on Backend ECC
        -second Bapi call on Backend SRM
        -...and then return response message to EP caller
    When designing BPM, i can only create variables in container using "Abstract Asynchronous interface"'
    => I don't understand how to design the response message from BPM to EP caller....
    Thanks a lot for your help
    Best regards
    Etienne

    Hi,
    use Sync/Async bridge in your BPM.
    check this blog: https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    Also check this section from help.sap.com: http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/frameset.htm
    Primary porpose of the bridge is to enable communication between a Synchronously calling system and an Asynchronous system....can also use for Sync <--> Sync communication.
    Your BPM design will be:
    Receive(Open S/A bridge) --> Send(Sync..ECC) >Send(Sync..SRM)> Transformation --> Send(EP...close bridge)
    I mentioned transformation because i suppose that you will get response from both ECC and SRM and hence you will need to map it to a single message structure that you wil send to EP....2:1 Mapping required then..
    When designing BPM, i can only create variables in container using "Abstract Asynchronous interface"'
    Not only Asynchronous but also Synchronous message interfaces can be used....the only condition is that each and every MI has to be Abstract
    Regards,
    Abhishek.

  • IDOC to WS Synchronous Scenario Without BPM

    Hi Experts,
    I am dealing with Idoc to WS synchronous scenario. Can this be done without BPM??
    ALEAUD can make IDOC to handle WS response??
    Please suggest.
    Regards,
    Sushama

    Please suggest since BPM involves performance issue
    BPM surely has performance issue...only when there are a lot of steps/ logic implemented in it and when the processing load is too much for the XI/ PI server to handle.
    The BPM design in your case will be just of following steps: Receive --> SyncSend --> AsyncSend .... excluding Transformation...and a BPM with these steps wont cause a big harm to processing of other messages.
    Regards,
    Abhishek.

  • Message flow in SAP PI 7.31 JAVA only for ABAP Proxy synchronous scenario with Oracle DB

    Dear Experts,
    I am working on a synchronous scenario Sender ABAP Proxy <===> SAP PI 7.31 JAVA only <===> Oracle Database.I have successfully
    configured all the proxy configurations as well both Sender SOAP and JDBC receiver channels are showing no error when pinged from
    Cc monitoring in NWA.
    1.During testing at Tx SPROXY , I am triggering a message and after 5 minutes I receive an PARSING error message with 2 messages in ECC
    local IE i.e. Tx SXMB_MONI.
    Note : In NWA , I can see only 1 message that too in cancelled status.
    2.Seeing the trace of the messages I assume that the messages have not moved from sender ECC system. I am still confused with flow of message
    from the Message Audit log. Audit log of error messages.Could any one share the full Audit log of a successful message generated in SAP PI 7.31 JAVA only.
    3.I observed that the QIN Scheduler status in ECC is in INACTIVE status. There is no queue id for 2 messages generated in ECC. Does
    it should in ACTIVE status in Tx SMQR..
    Regards
    Rebecca

    Hi Thomas,
    Valuable inputs..
    1. Since I don't have any audit log for successful message, would you be able to share referring to the
    below screenshot whether the message was put into receiver JDBC adapter and JDBC adapter tried to retrieve the Select response from Oracle Database.
    2.I have done some setting in Advance mode of the receiver JDBC to increase the time out and other parameters as per SAP note but still the issue is same. If you perhaps have some experience in such scenarios, please share some input so that I can ask the Oracle Database administrator exactly what is required from our side.
    3.Regarding the slow response from Oracle , there was some suggestion that the datatype of the request and response should match the column name of the Oracle database. I did that.. Do you have any more suggestion that may be hampering the generation of the response message from the Oracle like SAP note or document.
    Regards
    Rebecca

  • FILE to SOAP synchronous scenario - config of SOAP channel

    Hi All,
    I have a scenario where I want PI to pull some files from 3rd party application.
    Adapters to be used: SOAP receiver, FILE adapters.
    I am aware of the use of Request/Response beans in File sender channel and the File receiver channel to dump the received files in a particular location.
    I need help with the configuration of the SOAP channel.
    The files to be pulled will be Encrypted.
    Summary:
    File sender(RequestResponse & ResponseOneWay Beans) , File receiver( to receive the files), SOAP receiver.
    Need help with the config of SOAP.
    Kindly let me know your views.
    Thanks,
    Pratibha.

    Hi,
    Let me put it in detail steps:
    In forward flow we will be sending an IDoc. It will be processed and later an Acknowledgement file will be generated.
    Now, we want to PULL this Ack file. If the other party had to push the Ack file, the scenario would have been simple.
    But, we want to poll for this file and then pull it.
    So, we would have something like this:
    1. FILE SENDER sends a sample file.
    2. We will be applying the beans in file sender to make it a synchronous scenario. So, the Ack file will be received at the location mentioned in the corresponding FILE RECEIVER adapter.
    3. We have a SOAP RECEIVER which should send the ACK file in response.
    I have configured the same scenario where the RECEIVER was HTTP adapter. The 3rd party had provided us the URL and ENT-APRF value. When I used to send the sample file via FILE SENDER to this HTTP receiver, I was able to retrieve the ACK file via the FILE RECEIVER.
    Now, I wish to configure the same using RECEIVER SOAP adapter.
    I need to know about the config at SOAP end i.e. how and where  the ACK file will be available at the SOAP end for the FILE sender to pull the file.
    Ack files will be encrypted..
    Any views/suggestions will be of great help.
    Thanks,
    Pratibha.

  • Respone message in an synchronous scenario

    Hi,
    I want to create a scenario:
    third party system  (via WebService) <->  SAP PI <-> SAP (ABAP Proxy)
    I have a SOAP to Proxy synchronous scenario.
    Its an synchronous outbound and an synchronous inbound interface.
    It is possible to transfer the response message from the inbound interface to the outbound interface?
    The response message is a very elemetary mesage (only a key).
    With the message from the third party system I will insert data in the SAP system. The new key I will return to the third party system via the response messages.
    Any help please?

    Surely you will have two mappings in place.One mapping will correspond to the request message, while the other one will correspond to the response.When you are doing the mapping for response, then however do it in reverse manner. For example suppose in your case System A is the sender and System B is receiver. Then you make two message types for each system,one for request and one for response.In the mapping for request, the  message type of System A will be source and that of system B will be target because request is going from A to B. However in the response mapping, as the response is coming from B to A, in the mapping you will have the message type for system B as source structure  and that of System A in target..And you will add both of these mappings in the Operation mapping in the message mapping tab.

  • Treatement of Fault Messages in Synchronous Scenarios?!

    Hi all,
    I got a question concerning the use of fault messages in
    synchronous scenarios...
    1. When I define a fault message for my synchronous   
       receiver interface, a fault message, coming back
       would  not be handled by my sync. Interface- and
       Messagemapping, right?
       So how can I give the fault messageinformation back to
       the sender?
    2. Will I have to define a second scenario for handling
       the fault message?
       (Meaning new Communication Channel, MI, IM, MM and so
       on)
       Thanks for help, anwers are quickly rewarded...
       Daniel

    > 1. When I define a fault message for my synchronous
    >   
    >    receiver interface, a fault message, coming back
    >    would  not be handled by my sync. Interface- and
    >    Messagemapping, right?
    > So how can I give the fault messageinformation
    > ion back to
    >    the sender?
    The fault message has to be handled in your BPM using an exception branch. You can create an exception branch in a block and assign it to be the handler for a particular exception(fault message).
    How can we handle Exception Branch in BPM effectively
    > 2. Will I have to define a second scenario for
    > handling
    >    the fault message?
    > (Meaning new Communication Channel, MI, IM, MM and
    > and so
    >    on)
    It depends on what you want to do with your fault message. If you want to throw an alert, that could trigger emails, you can do it by configuring alerts and using a control step in your exception branch to throw alerts. Only if you want to do something else like log a message into a database, you will need separate jdbc communication channel, MI etc.
    Regards,
    Suresh

  • File to Proxy synchronous scenario

    Experts,
       I am working on a File to proxy synchronous scenario.
    I am doing the content conversion at the sendre side by using java program as  input structure is very complex so have to go fr java code. Its a  txt file at sender side.
    Once I read the file in XI, am doing a graphical mapping ( just one to one mapping)  then using the server proxy , a service entry is getting created then response am sending to the receiver.
    My question is , can I use graphical mapping as I am using a java class for content conversion? both in one scenario is possible?
    I have developed a java code  for content conversion and it is working fine. How to use this .jar file in XI?
    Can Any one help me wz thsi one?
    Thanks in Advance
    Virendra

    My question is , can I use graphical mapping as I am using a java class for content conversion?
    You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
    I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
    In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
    Regards,
    Abhishek.

  • Proxy to File Synchronous Scenario

    Hello,
    My scenario is 
    SAP System ----->(Proxy)   PI -------->(File)  FTP
    Synchronous Scenario
    I have been using the RequestResponseBean and ResponseOnewayBean module in the Sender Request Adapter channel to convert the file adapter from Asynchrounous to Synchronous scenario.
    While Triggering Data From Proxy the receiver request channel is placing the file in the FTP.
    But the sender Response channel is saying that "No suitable Sender  agreement found" error.
    Also in the Audit log :SOAP: call failed com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: 204 .
    Getting the above error.
    Also I need the Sender Response Channel to pick the file after 10 minutes of placing the file in the FTP by the receiver Request channel.
    Please help on this.

    My question is , can I use graphical mapping as I am using a java class for content conversion?
    You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
    I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
    In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
    Regards,
    Abhishek.

  • SOAP to Proxy synchronous scenario

    Hi,
    Hope you are all doing well.
    I have a SOAP to Proxy synchronous scenario. As part of this scenario, the data structure of the response sent by SAP is different from the response sent back to the SOAP requester. Hence I have used request message mapping between the SOAP request sent by requester and the one passed on to SAP and response message mapping between the response sent by SAP and the one passed on to the requester. Both the message mappings are incorporated in a single Interface mapping.
    The problem is that the interface is behaving like a asynchronous one, i.e., request is passing over to SAP but though the proxy is giving a response back, the same is not coming over to XI.
    It would be really helpful if you can let me know what might have gone wrong.
    regards
    Debansu

    Hi,
    you should have that:
    1. Two Message Mapping:
    1.1. a Message Mapping for request    (called MM_request)    , from MT_SOAP_request     to   MT_Proxy_request.
    1.2. a Message Mapping for response (called MM_response) , from MT_Proxy_response   to   MT_SOAP_response.
    2. One Operation Mapping (in PI 7.1) or Interface Mapping (in PI 7.0) from SI_SOAP to SI_ Proxy with:
    2.1 in the tab "request", so from MT_SOAP_request     to   MT_Proxy_request    , give your Message Mapping "MM_request".
    2.2 in tab "response"   , so from MT_Proxy_response   to   MT_SOAP_response, give your Message Mapping "MM_response".
    3. In you Directory, you define a flow like that:
    from SI_SOAP to SI_ Proxy by using your Operation Mapping.
    If I missed nothing, that's all.
    MT = Message Type
    MM = Message Mapping
    SI =Service Interface in PI 7.1  or Message Interface in PI 7.0.
    regards.
    Mickael
    Edited by: Mickael Huchet on Oct 19, 2011 4:07 PM

Maybe you are looking for

  • Feel of the MacBook Pro

    I was considering buying a 15in MacBook Pro and was wondering if it feels lighter and looks thinner than I would expect? Thanks   Windows XP   Slow Celeron

  • JTable binding using JPA

    Hi, I'm having a database table containing blob column that contains image for each row. Also I'm having a JTable in front end to display existing records of database using Toplink(JPA). My requirement is as follows 1) code snippet to bind & persist

  • My iphone went into recovery mode when updating, is there any way to get my data on my phone back?

    when i was doing the next update for IOS 8.1 my phone went into recovery mode. i was wondering if i could get out of it without losing everything on my phone?

  • How to edit the customizing infotype

    Hi All, I want to make some changes in a customizing infotype i.e. 9003.I want to know the procedure.

  • Keynote grey-out file on iPhone

    I modified a Keynote file on my iPad, it then sync to my iPhone.  But the sync on the iPhone did not finish and iy's now greyed-out.  I can't open nor delete the file.  Please advise what happened and what should I do now? Thanks!