I have created an application in which I'm calling XSJS file from the browser and in that XSJS file I am calling a normal SQL procedure. In that procedure after some validations I'm calling R procedure. My requirement is to create that R procedure in the user schema when the user calls the XSJS file. And call statement for that R procedure should be updated in SQL procedure. So basically every time a user calls XSJS file the R procedure should be dropped and created again in the user schema. I am using SAP HANA studio latest version.
How to create a procedure in XSJS dynamically in HANA
1.1k Views Asked by vatsal At
1
There are 1 best solutions below
Related Questions in HANA
- HANA returns Formatted Values through hdbcli
- I am trying to fetch Distinct values into the For loop in SAP HANA and I am not getting all the distinct values into the For Loop
- Hana SQL , Is there a way to use mapping/setup table of constants?
- Delete SAP HANA Views
- Is there any currency conversion function in GCP Bigquery?
- How to implement a encrypted connection to a SAP Hana DB instance in Java
- Hana SQL SAP DSP , can't use standard functions
- SAP HANA, query to check the size of the FullBackup as displayed in the HANA Studio backup catalog
- Why can't I connect to the Hana database through Python but can through Hana Studio?
- HANA Global Temporary tables 'Could not find table/view' error
- How to ingest data from HANA to postgres?
- How to derive the hierarchy output using SAP HANA SQL
- How to connect SAP BW to Jupyter Notebook
- How to get final inserted sql records count using python
- In SQL how to validate dynamic key-value pairs against key-value columns
Related Questions in XSJS
- When I run SAP HANA XSJS Application, it returns Error 404 - Found
- Function skipping the squesnce of statements execution
- XML file as a stored procedure input parameter?
- XSJS getting result from stored procedure in a variable
- how to merge similar key values in same keys in javascript
- Error when trying to call SAP HANA stored procedure from service side
- Execute XSJS program in SAP HANA Neo using Eclipse
- HANA XSJS - InternalError: dberror(Connection.prepareStatement): 608 - exceed maximum number of prepared statements
- Accessing Backend HANA XSJS from SAP Conversational AI Chatbot - getaddrinfo ENOTFOUND error
- How to get the current user in HTML?
- SAP cloud platform log files API
- Not able to run xsjs file, error: site can't be reached
- Cannot pass characters + or % using xsjs / jQuery.get
- Checkmarx issue XS_Reflected_XSS
- How to create a procedure in XSJS dynamically in HANA
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you want to execute dynamic SQL in SAP HANA, you can use EXECUTE IMMEDIATE SQL command that will work in read and write procedures. You can build SQL query to create a new procedure in xsjs, send this query to a read and write procedure in which you have to use EXECUTE IMMEDIATE QUERY to get your procedure created and same can be done for deletion as well.