ODataModel Read aSync vs. Sync

Are there any documentation that goes into details on how the ODataModel Read works with Gateway when it comes to using async and sync?  thanks.

Hi,
it is documented in API documentation. Please refer JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.odata.ODataModel
As per this, by default it is asynchronous request
Regards,
Chandra

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.

  • IDOC to Webservice to Email - Async to Sync Scenario

    Dear Experts,
    I have a scenario: IDOC to Webservice (Async to Sync)
    The response from the webservice needs to be sent via email. So I have a Email channel added to the Business service (ECC).
    I tried this with BPM, but it does not work complaining about multiple receivers in a sync receiver interface.
    Anyone has done similar to the above?
    1. Using BPM?
    2. Without BPM?
    Thank you.

    Thank you for the reply. This is what I have:
    Repository:
    1. Async ABS Interface for webservice request message
    2. Sync ABS interface with webservice request message and response message
    3. Async ABS interface for the reposnse message
    5. Async IB interface for hte email message
    4. Message mapping between IDOC and webservice request message
    5. Message mapping between webservice response message and email message
    6. 2 Interface mappings with the above mapping objects
    7. Integration Process BPM with Receive step (Async w/s req), Sync send step (w/s req and respp) and Async send step (w/s response)
    Directory:
    1. Receiver agreement with BPM as sender and Webservice as receiver with SOAP receiver channel
    2. Receiver agreement with BPM as sender and ECC as receiver with email receiver adapter
    3. Interface determination for request mapping
    4. Interface detrmination for response mapping
    5. Receiver determination with ECC as sender and BPM as receiver
    6. Receiver determaination with BPM as sender and Webservice as receiver
    7. Receiver determination with Webservice as sender and ECC as receiver
    is the above sufficient and right?
    Thank you.

  • Itunes can't read songs to sync. Every few songs Itunes stops the sync because it can't read the song.

    When I sync my ipad or iphone, Itunes will start syncing but after every few songs it syncs, itunes interupts the sync with a message saying it can't read the song. I can go to that song in my list of music and play it in itunes but itunes can't read it to sync.  This has just started happening in the last week, 06/28/13.
    Does anyone know what is going on.  The message is as follows: iTunes could not copy "such and such song" to the iphone because the file could not be read.
    rhpiper

    I didn't understand what you mean. Most of the songs itunes flags are songs I have had on my list for a long time. I did notice something else. After it sends me the message and stops syncing. I press the apply button and it seams to save the song. Then I have to start resyncing and I noticed it syncs the song that it just previously couldn't read. The problem is I have to do this 50 times to get through a sync. Also, Itunes never stops on the same songs that it did the prior sync.

  • 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

  • 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

  • How to change async to sync after deploying the process.? Thanks

    How to change async to sync after deploying the process.? Thanks

    you'd need to change the base wsdl, the generated one (_Name.wsdl) and the bpel.file .. and remove the generated classes .. (all in domains/you_domain/tmp/your_process dir)
    the wsdl needs to get the output msg to the input msg instead of a callback porttype, the same needs to be in the generated wsdl (don't forget to remove the callback role in plnk session).. and the bpel process needs to have a reply instead of the invoke ..
    this is what you would need to do .. BUT, maybe we can find a better solution for you, if you elaborate on the usecase..
    during design time this is easier :-)
    regards clemens

  • Why does AI Read(Async​hronous).v​i cause the waveform chart to not display any history ?

    I trying to create a strip chart for 16 channels that will require displaying 10-20 minutes of data.It also starts a separate vi to set gains and offsets while displaying the data. Using AI Read.vi uses 100% of the CPU so the second vi does not run. But using AI Read (async).vi allows the second vi to run, but causes the waveform chart to not display the history? I'm using LabView version 6.0.2.

    Hi Waynes World,
    I have a couple of questions that may help us solve this issue...
    1) If you are modifying one of our example programs, which one did you start with?
    2) What kind of analog input are you doing? Buffered? Finite or continuous?
    3) Have you tried increasing the buffer size of the strip chart? This will allow the chart to store more data in it.
    4) When you use the Async VI, and when you are using the other, can you describe how the strip chart is showing the data... does the data in the chart keep growing and growing... or does it clear itself and start over when the pine reaches the end?
    I think this issue is rooted in how the buffer is being used with the two different AI Reads and how it returns data to the chart.
    On a side note, have you considered upgrading to a newer version of LabVIEW? Our latest versions of LabVIEW come with many new features and it is signifigantly easier to use.

  • Failed to determine receiver - Async to Sync communication

    Hello,
    I have a setup in which IDoc flows from R/3 to XI to destination through HTTP. Being Async to Sync a BPM is put in place. This flow runs fine.
    We tried adding one more receiver to the existing setup. The sender is the same as in the above mentioned flow. The receiver determination is failing. A separate receiver determination was configured for the second flow. The error message is "NO_RECEIVER_CASE_BE". We checked the entire configuration settings. Everything appears fine. Why is the receiver determination failing ? None of the solutions existing provides an answer that works. Any clues ?
    Early answers would be much appreciated.
    Thanks in advance.
    Warm Regards,
    IS / Siva

    In the same receiver determination, with no condition, just add an additional receiver. Create interface determination and receiver agreement for the corresponding receiver. Activate all objects and try again with your input.
    Hope this works..
    Regards,
    Parvathy

  • Can you explain steps in the Async and Sync scenarios JDBC to RFC.

    Hi,
    Can you explain some basic steps in the Async and Sync scenarios for sending data from JDBC to RFC.
    Like,
    The data is picked up from the  database table through JDBC adapter.
    It is passed on to SAP  by calling the RFC. RFC gets executed         
    successfully. The status is returned by the RFC. The status needs to be
    updated back into the SQL database table.
    Is this a sync case or async case.
    What si the diffrences in the sync and async scenarios in the above JDBC to RFC scenarios.
    Soorya

    hi check the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    JDBC Synchronous call using BPM  
    Data Types -
    1) File Input
    2) JDBC Req
    3) JDBC Response
    4) File Response of similar type of JDBC Response.. ( This you can avoid also..let it be for first time)
    Message Types
    4 for each data type
    Message Interfaces
    1) Async, Outbound, Interface, to receieve the file
    2) Async, Inbound , Interface to send the file from XI
    3) Async, Absract , Interface of type File message type to recieve the message in the BPM
    4) Sync, Abstract Interface with Req message type as File Request, and Response Message type as a file Response
    5) Sync , Inbound interface for JDBC with Input message type as a JDBC Request and Output Message type as a JDBC Response
    Message Mapping:
    1)Mapping between File Req to the JDBC req
    2) JDBC Response to File Response
    Interface mapping:
    1) Sender Interface as a Sync,Abstract Interface created for the file type and target interface as Synchrnous JDBC interface.
    Use corresponding mapping for Req and Resp..
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Async to Sync interfaces.

    Hi all,
    We have  IDOC(Async) -> SOAP (Sync) -> Proxy(Aync) interface requirement.
    Can anyone please suggest if it can be done without BPM?

    Hi AYURA,
    Use request response bean and check the link for details.
    http://wiki.sdn.sap.com/wiki/display/XI/UsingRequestResponseBeanModuleinFILE+Adapter
    Reagrds,
    Arijit

  • Async to sync bridge

    Hi all,
    I am extracting information from SAP and Database and merging in XI using BPMcollectpattern and sent to webservice.
    async to async is working fine, but i need to see the response from Webservice in sxmb_moni for what went wrong in webservice.
    1) for this should i include async to sync bridge????
    can anyone suggest me better way to do for this.
    Kind Regards,
    Kiran

    Hello,
    there exists only a sync-to-async bridge.
    In case of async-to-sync you don't need a bridge.
    If your problem is only that you can't see your message in sxmb_moni because it's a sync-message -> look here:
    /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni
    Regards
    Patrick

  • JMS(WebSphere-MQseries) async to sync bridge Problem

    Hi All,
    Please find the scenario.
    IDOC1  -
    > PI  -
    >JMS(WebSphere-MQseries)receiver request
    IDOC2 <--  PI  <--
    JMS(WebSphere-MQseries)Sender response
    I need to pass the response to JMS sender so that I will get it and will send back to other IDOC.
    here I need the details for making this async to sync bridge for JMS receiver to JMS sender.
    Please let me know the which adapter module I should use handle this situation.
    Thanks,
    Bhupesh

    What exactly is unclear for you regarding the online help?
    http://help.sap.com/saphelp_nw04/helpdata/en/45/20d2b4c20a0732e10000000a155369/frameset.htm

  • Error in oDataModel READ method

    Hi Experts,
    I am using read method in oDataModel. The code is below:
    sap.ui.getCore().getModel().read("/E_EXCISE_DATA_SET", exData, null,true,
                                                             function(e){ alert("success"); },
                                                             function(oError){ alert("Insert Failure");  } );
    It is throwing an error - "Uncaught TypeError: Object [object Array] has no method 'getPath' "
    Actually I want to call the HTTP get method from the UI. In debugging mode I am getting above error. How to resolve this?
    What are the parameters for read method I need to pass? Kindly provide the code example for the read method.
    Thanks in advanced,
    Regards,
    Arindam Samanta.

    Hi Arindam,
    check once if you are getting object for sap.ui.getCore().getModel() (you should set model to the core before this code.) .
    Here is the model defination :
    var oDataModel=new sap.ui.model.odata.ODataModel("serviceUrl", true,"uName","Password");
    and here is the read on that model and various paramaters:(This you can get in eclipse help)
    oDataModel.read(sPath, oContext, oUrlParams, bAsync, fnSuccess, fnError);
    Parameters: {string} sPath A string containing the path to the data which should be retrieved. The path is concatenated to the sServiceUrl which was specified in the model constructor.
                       {object} [oContext] If specified the sPath has to be is relative to the path given with the context.
                        {any[]} [oUrlParams] An map of url parameters which will be concatenated to the read url
                       {boolean} [bAsync] true for asynchronous requests. Default is true.
                        {function} [fnSuccess] a callback function which is called when the data has been successfully retrieved. The handler can have the following parameters: oData and response.
                       {function} [fnError] a callback function which is called when the request failed. The handler can have the parameter: oError which contains additional error information.
    Ex :
    Lets say you want to read the data from this service path :
    http://<host>:<port>/sap/opu/odata/<service>/Employee('10000')
    in that case you can define model as
    var oDataModel=new sap.ui.model.odata.ODataModel("http://<host>:<port>/sap/opu/odata/<service>/", true,"uName","Password");
    and read as
    oDataModel.read("/Employee('10000')", null, null, false, function fnSuccess(oData){
    alert("result :"oData);
    },function fnError(response){
    on success, fnSuccess will get fired and you should see resut : object alert message.
    regards,
    Vijay.

Maybe you are looking for

  • I am unable to open firefox 4 properly without an error! HELP!

    This is the message I now get everytime I try to open Firefox 4 broswer: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this director

  • Array Collection cast as Object

    In my app i am pushing data into an array collection. When I debug or trace the AC i get [object Object]. Am i doing something wrong?          public var newsDB:ArrayCollection = new ArrayCollection; then I add to the AC here.                   if(ar

  • Hi, problem in goods issue to cost center Error message M7314

    Hi to you all, I am trying to post a good issue for a material to a cost center but an error message is coming out and says that "stock becomes negative see long text. message no - M7314". the material type was at the begining not valorated (like NLA

  • Can't sync after restore

    IPod screen required a restore. After doing that, I am unable to get all of my music/videos back on the Ipod. A "full sync" only put some of the stuff back. I tried manually dragging and dropping my music but it would only add 60 songs back on the Ip

  • What's happen with this JDBC driver?

    Hi I have just started with JDBC, and I follow the steps from the Mysql drivers, but always receive the same error: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:532) at java.sql.DriverManager.ge