Skip to Content

Debug Option for $batch Odata Calls

Hello Everybody,

we are currently migration old SAP UI5 Applications in a new tool. We would like to use the Odata-Services used in the standard. Unforunally SAP used $batch to conslidate the odata calls to the backend. But we want to see which services are called with parameters etc.

Is there a oportunity to disable batch for debugging purposes. We are aware of the option to diable batch on the model, but we can't do this because the applications are in SAP namespace and we can't change them without modification key.

Is there a browser-parameter or do we have options in the SAP Backend?

Thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 12, 2017 at 04:27 PM

    Just an idea you may try. Put a breakpoint somewhere in the code where you can access the model and try to disable batch processing in the Chrome's developer console.

    e.g. in the console write:

    var oModel = this.getModel();
    Add comment
    10|10000 characters needed characters exceeded

    • This actually works. I`ve added a breakpoint to the component.js-File and executed via console:

      this .getModel("{YOUR MODEL NAME}").setUseBatch(false);

      If you`ve instanciated your model in the code, set the breakpoint after the creation of the model.

      @Radek, thank you for your help!

  • Jan 12, 2017 at 04:52 PM

    you cannot see from network tab of your browser developer tool?

    Add comment
    10|10000 characters needed characters exceeded