Skip to Content
avatar image
Former Member

Implement READ value from backend and retreive it!

Hi everyone,

I’m starting to feel a little discouraged. I’m trying to send some data to the backend, make a selection and send results back to SAPUI5. For that I’ve redefined methods in the backend to achieve this.

I’ve redefined method /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITY so I can call method HEADERPOINTS_GET_ANTITY. Everything seems to be fine since I’m able to debug my code and check my READ statement goes through both methods (selects all the data I need and puts it in ER_ENTITY) and go back to SAPUI5.

My problem comes at this point. There must be something wrong with my code since I cannot read any result. I’ve used basically the same code I used for a GET_ENTITYSET (which worked!) but something is not working properly in this GET_ENTITY case. Here’s a screenshot of my SAPUI5 routine:

Can anybody help me?

f6249dd.jpg (108.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Oct 26, 2016 at 12:25 PM


    Have you tried setting debug points for the success and error functions? Would be curious to know what exists for either oData or oError depending on what happens with the service call. Also, instead of constructing the URL yourself you can set the base URL for the "/HeaderPointsSet" and then add filters for the other values.


    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 26, 2016 at 03:31 PM

    First of all, I'd like to thank you both for your help!

    I've finally come out with “something” which works and retrieves my values. In fact, it does the same as before (runs through all methods in backend) but now when I go back to SAPUI5 I can see my values. Now I just need to show them in my controller view: one in a “Label” and the other in a “Text”. Let’s how I figure it out.

    Thanks again for your patience!

    316657ca.jpg (218.4 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ryan Crosby

      I finally came out with this:

      Make data available in view:

      this.getView().setModel(oHeaderCheckboxModel, "HeaderCheckbox");

      Show data in view:



      Many thanks for your help!