on 04-05-2016 7:28 AM
Hello!
I am a JavaScript developer and I have never worked with SAP/ABAP. I need a simple service to test my SAPUI5 apps. Please help me to create a test oData service based on table.
I created a simple table ZSTUD_USERS, add a data into table, activate it. Then I add a methods, register a service, activate it.
I test in /n/IWFND/MAINT_SERVICE but I do not get the data in the browser.
Help me please write a getentityset-method to get the data from table based on this:
method ZSTUD_USERSSET_GET_ENTITYSET.
SELECT * FROM ZSTUD_USERS.
ENDMETHOD.
As well as how do I write the methods for create, update and getentity-method correctly?
Thank you!
Thank you all!
...But nothing helped. Maybe I'm doing something wrong, but the XML remains the same.I would read and study the articles.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
may be this will help..start fresh...
did you try this url
http://<yourhost>:<port>/sap/opu/odata/sap/ZODATA_USERS_SERVICE1_SRV/ZSTUD_USERSSet
???
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just use
SELECT * FROM ZSTUD_USERS INTO CORRESPONDING FIELDS OF TABLE ET_ENTITYSET.
hope this helps
Odata service implementation for GET_ENTITYSET | sap abap | sapui5 made easy
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
What you should do is to Redefine methode in SE24.
If you want to get the full table, you only need to redefine entitySet method.
It should work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.