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
- Is there a way to freeze the entire SAP HANA Database
- Calling R function within SQL - HANA database
- Does SAP HANA support incremental backup
- How to add a (primary) key to an existing table using SAP HANA
- Splitting SQL Columns into Multiple Columns Based on Specific Column Value
- Creating a Scroll_Insensitive ResultSet using the SAP Hana JDBC Driver
- HANA SQLScript dbms_output.put_line() equivalent?
- dynamic fill and create a structure in oData with SAP Hana Calculation View
- Model inconsistency during activation?
- How to use a column list in a database trigger on SAP HANA
- Memory allocation failed: How to combine four result sets into one table
- How to transport HANA Views from one system to another using Hybris
- Hana Parameterised stored proc issue simple jdbc template
- script not running through cron. Works fine when executed manually
- Upload an array in HANA
Related Questions in XSJS
- SAP cloud platform log files API
- Converting SOAP Response XML to JSON using XSJS
- HANA XSJS - InternalError: dberror(Connection.prepareStatement): 608 - exceed maximum number of prepared statements
- Convert full LAMP stack Laravel application to SAP Hana
- Error when trying to call SAP HANA stored procedure from service side
- SAP HANA: not able to call xsjs file in HTML
- how to merge similar key values in same keys in javascript
- Cannot pass characters + or % using xsjs / jQuery.get
- How to get the current user in HTML?
- XML file as a stored procedure input parameter?
- XSJS getting result from stored procedure in a variable
- Execute XSJS program in SAP HANA Neo using Eclipse
- Checkmarx issue XS_Reflected_XSS
- SAP HANA Javascript deployment
- SAP HANA XSJS Ajax Post - Internal Server Error
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 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.