on 10-13-2014 8:18 AM
Hi all,
I am wondering if it's possible to establish a data connection between design studio and a web service to read and write additional data?
Also I found the following snippet to achieve it with and ajax jQuery command and I am wondering if that works with design studio sdk.
The question now is - What requirements are to fulfill to gain something like this like authorization and SOP Same Origin Policy.
Best regards,
Christian
Christian - I don't think Design Studio currently supports this - see http://scn.sap.com/thread/3325114
Maybe in the next release when there is a data source SDK - see Figure 5
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
I have done the write back functionality with our (VisualBi's) Custom Component called scriptbox. Even it could work in SAP DS 1.3 version. In my application I have used jquery and ajax to send and retrieve data from SAP. Also I have resolved same origin policy issue. Please let me know if you have any further questions. Please refer the following blog which was published by Keerthana on VisualBI's Custom Component Script box and html box.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
Same origin policy issue can be resolved by adding access-control-allow-origin: * inyour own HTTP handler class and add the class in the HTTP handler list of your web service under SICF node. You can add the following abap code in your IF_HTTP_EXTENSION~HANDLE_REQUEST method of the HTTP handler class.
call method server->response->set_header_field( name = 'Access-Control-Allow-Origin'
value = '*' ).
This will resolve the CORS,SOP issues and you can call your webservice from any origin after implementing HTTP class.
Thanks,
Ramki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.