Is there a way to use Global variable in HANA

Hi Developers,
Is there anything like a Global variable in SAP HANA which can be used to pass data from one procedure to another (Visible to all the procedures in a session)?
Thanks
S.Srivatsan

Hi Sundar,
In best of my understanding, there is no context variable or global variable available under SQL SCRIPT scope . You may need to maintain the variable as a parameter in the procedure interface and pass it to the procedures where ever you need it to be available . Or,(DB table is in memory, so its just memory unit) you can create a DB table to store the variable(s) and access it anywhere .
Sreehari

Similar Messages

  • I'm using TestStand/Labview to do a string value test. Is there any way to use a variable in the edit string value test?? This forces you to hard code a string to test against.

    I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.

    Hi ART,
    You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
    There should be an example of this in the Resource Library | TestStand
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Any way to set global variables except EAS console?

    Hi pros,
    I am searching for a way to set global variables (used by business rules) automatically.
    I got several variables which should change each month. I know the rule to set them.
    However, I cannot find any way to set them through scripting or something else.
    I tried to research EAS repository. The one that I found relevant is HBRVariables table.
    I cannot find any tool can help this.
    Any one knows how?
    Appreciated......
    Casp Huang

    Yes you can use substitution variables in business rules and they are widely used, it is relatively easy to automate the changing of values for subtitution values.
    You can also put a sub var into the default value for a global variable in business rules.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Email address validation, is there a way to use Regex or other fuzzy searching?

    I would like to use PL/SQL for Email address validation, is there a way to use Regex (regular expressions) or some other fuzzy searching for that? Using % and _ wildcards only take you so far...
    I need something that will verify alphanumeric charectors (no ",'.:#@&*^ etc.) any ideas?
    Current code:
    if email not like '_%@_%.__%' or email like '%@%@%' or email like '% %' or email like '%"%' or email like '%''%' or email like '%
    %' then
    The last line is to make sure there are no linebreaks in the middle of the email address, is there a better way to signify a line break, like \n or an ascii equivilent?

    Michael:
    The as noted in the previous post, DBI is a Perl package that allows Perl to talk to various databases, including Oracle. We use DBI on several UNIX servers, and it does not require ODBC, and I have always found it to be extremely quick. Things may be different in the Windows world.
    If you are spooling files out to run through Perl anyway, you may want to take a look at DBI. You could probably modify your existing scripts to use DBI fairly easily. The basic structure using DBI is like:
    use DBI;
    my dbh;       # A database handle
    my sth;       # A statment handle
    my sqlstr;    # SQL statement
    my db_vars;   # Variables for your db columns
    # Connect to the database
    $dbh = DBI->connect( "dbi:Oracle:service_name","user/password");
    $sqlstr = 'SELECT * FROM emp WHERE id = ?' # even takes bind variables
    #Prepare statement
    $sth = $dbh->prepare($sqlstr);
    $sth->execute(12345);  # Execute with values for bind if desired
    # Walk the "cursor"
    while (($db_vars) = $sth->fetchrow_array()) {
       your processing here

  • Is there a way to use a statically defined appearance stream in a dynamically created annotation?

    Hello,
    I want to create a document with cascading 'popups'.  Not the built-in text-only popup, but an annotation containing an appearance stream that defines text and images.  I'm currently using widget annotations based on a pushbutton field.
    Each page in my document has many citations that refer to other pages in the document.  When a user hovers over the citation, I want a 'popup' to appear containing a depiction of the destination.  However, as the destination will itself have citations, I also want the 'popup' to contain citations that the user can hover over, triggering another popup, etc.  In this way, a user could navigate throughout the document without leaving the page or even clicking the mouse.
    Obviously, with even a modest number of citations per page, pre-calculating and statically defining all of these widgets causes a combinatorial explosion, making the document sluggish and very large.
    Instead, I'd like to statically define appearance streams once per document, and then dynamically create annotations and assign the appropriate appearance stream using JS as the user navigates.
    So far I've created a named AP in the names dictionary, but I haven't been able to use it to dynamically set an appearance stream of a dynamically created widget annotation.
    Also, I've called Doc.getIcon(), passing in the named AP, which returns an Icon object.  However, after field.buttonSetIcon() and passing in the named AP, the button does not display the icon.
    Is there a way to use a statically defined appearance stream in a dynamically created annotation?
    Thank you,
    Dave

    Hi George, I've gotten named APs to work, and I expect hidden buttons will follow.  Thank you very much!
    Quick follow-up - I will have many documents embedded within the same pdf file, and some of these documents will contain identical popups.  However, I don't want to store identical icons in each document on account of file size.
    Instead, I'd like to store one instance of each icon for all documents in the file.
    Can I store all of the icons in a single document, and then access them by calling <DocName>.getField().getIcon() from any document in the file?
    Thank you again,
    Dave

  • My MacBook Air does not have an optical drive.  I have a program (Megastar V) which is installed using a CD.  Is there a way to use the optical drive on my PC laptop to install this program on my MacBook Air?

    MacBook Air does not have an optical drive.  There is a program I wish to install on my Air which is an astronomy application called Megastar V.  Installation requires the use of a CD.  Is there a way to use the optical drive on my PC (toshiba laptop using Windows 7) to install this program onto my Air?
    With gratitude,
    Otto

    Thank you for explaining to me how to do this.  I will try it tomorrow and let all of you know how it goes.
    Otto

  • Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini

    Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini (late2014)
    im currently useing my Mac mini as a portable computer, I take it to the university and use the iMacs there as a monitor but before I can do that I have to log in to my Mac mini first which means doing it blind
    is there a way to put the IMacs into display mode with out logging into my Mac mini first
    or is there a portable monitor that I can use that will not require me to login first

    This
    Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    says:
    How do I enable TDM?
    Make sure both computers are turned on and awake. 
    Connect a male-to-male Mini DisplayPort or ThunderBolt cable to each computer.
    Press Command-F2 on the keyboard of the iMac being used as a display to enable TDM.
    Note: In Keyboard System Preferences, if the checkbox is enabled for "Use all F1, F2, etc. keys as standard functions keys," the key combination changes to Command-Fn-F2.
    How do I exit TDM?
    To leave TDM, press Command-F2 on the keyboard of the iMac that is in TDM. You can also exit TDM if you shutdown or sleep either computer or detach the cable.
    Can I use a third-party keyboard or older Apple keyboard to enable TDM?
    Some older Apple keyboards and keyboards not made by Apple may not allow Command-F2 to toggle display modes. You should use an aluminum wired or wireless Apple keyboard to toggle TDM on and

  • HT1541 is there a way to use my itunes credit to send a gift card? i have credit from gift cards on my account and would like to gift some of it to someone else.

    Is there a way to use my itunes credit to send a gift card to someone else. I have credit on my account and would like to gift some of it but cannot figure out how to use the credit to do so. It appears I can only send a gift by charging to my credit card.

    You cannot use gift balance for gifts.
    Sorry

  • Is there a way to use iPhoto and *not* have it import photos?

    Hi there,
    I'm transitioning from a PC to a Mac and everything is going fairly well -- overall a better user experience. One question I have is, is there a way to use iPhoto without having it import photos? My main issue is that currently iPhoto imports all the photos that I want to view/edit in iPhoto and copies them to it's own folder structure. I like to manage my pictures in a folder structure that I define, so I already back up my photos to another location and now I'm finding that iPhoto is just duplicating the pictures that I already have where I want them, sucking up precious space on my SSD.
    So is there a way for me to just point iPhoto to a folder, make my edits on those photos, and have iPhoto automatically save those changes to the original folder I pointed it to, instead of duplicating the photos in it's own folder structure?
    It occasional things like this that makes me miss some Windows features. In this case, I miss Windows Photo Gallery.

    Hm, ok so if I edit my photos (adjust brightness etc) in iPhoto and then export it, does it export with the brightness changed, or does it just export the original?
    It exports whichever you choose - the edited version or the original.
    However, am I the only one with trust issues with importing all my photos into iPhoto? I'm scared the library will get corrupted, etc.
    NO you're not the only one. The protection against any data corruption is a good back up, and you need that for any data on any computer running any OS. But in the case of iPhoto, remember too that the original files are stored exactly as they are imported, in folders, in the filing system.
    that when I go to export the photos, there's a LOT of duplicate file names that the export chokes on, which makes it very tedious, no, painful, for me to export a large number of photos.
    Explore the options under File Name when you export from iPhoto using the File -> Export command
    Regards
    TD

  • Is there a way to use PM4.0 with Windows XPH?

    Is there a way to use PM4.0 with Windows XPH without purchasing the latest suite or upgrades?  I origionally purchased a suite with Pagemaker, Photostyler and Freehand just before Aldus went Adobe, and Win3.1 went Win95, then WinME and WinXP.  I miss PM and have several manyscripts saved on PM4.0 and can not export or import them to any current wordprocessing programs.  I was very far into one manuscript and am now in a position to finish it up but don't want to have to purchase a whole suite in order to do so.  Any suggestions for this old tightwad?  [email protected] 

    Jay Chevako wrote:
    Find an old computer and run win3.1.
    Jay
    Shouldn't that be Win3.0  c.1991?  And with a very early of version ATM (Ver 2?)  if you want to do anything with fonts?
    I think I have a WinME PC in the garage, which if you can re-format with DOS 5 and install Win3 instead (I may have the disks in the garage too), PM4 will positively scream along.
    I reckon it's non starter on a modern WinXP PC, as the OS is so different, but if you're willing to experiment, you never know!
    But if you want to open some old files to extract the text, you can open the PM4 files and save them with a d/l'ed trial copy of PM7, which will be OK on WinXP
    Iechyd da! John
    23:45 27/04/2009

  • Is there a way to use two macs to run one app? I want to use my two macbook pros processors in a shared capacity.

    I have two macbook pros a 2.4ghz and a 2.2ghz. Is there a way to use the other macbook pro to help with any cpu intensive apps like audio and video apps. I haven't had much luck on finding anything about sharing resources. It would be awesome if you could link up two macs and use both of them to power through processor intensive tasks.

    Yep here you go.
    http://www.youtube.com/watch?v=vLujLtgBJC0

  • Is there a way to use iCloud Photo Library WITHOUT syncing?

    The idea I had of iCloud Photo Library was that I could upload my pictures to it and access them from all my devices WITHOUT having to sync them.
    At the end of every month, I move all the photos from my phone to my computer. It helps me save space and keep things tidy. With iCloud Library, I want to access all my photos, but it looks like I must sync them through iCloud, and then to save space in my phone, I have to select "optimise space for iPhone". Is there any way to use iCloud Photo Library as a mere cloud storage? I don't want to keep photos on my phone, neither full resolution or "optimised" ones. I want to put them on iCloud, and when I need them, then I want my phone to download them.
    I realise I could use other cloud storage providers for this, but I have always liked Apple's integration with their own services, so if possible, I would like to use iCloud Photo Library without syncing to my devices. Just keep my stuff in iCloud, and when I tap it, download it.

    www.icloud.com.
    Doesn't work well in IE8 (9 I would think is ok), but is fine in the current version of Chrome.

  • Is there a way to use ipod with new computer without erasing entire library

    I'm not really tech-savvy, but I'm tossing my old computer and getting a new one - is there a way to use my ipod on my new computer without erasing my existing library? It won't let me make changes to my ipod and wants me to erase everything that is on there right now - HELP!

    Connect your iPod to your computer. When you get the message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. When your iPod appears in iTunes enable it for disk use, this is required for most if not all the utilities listed below so they can access the files: Using your iPod as a storage drive
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    iRepo Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows Versions
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows Versions
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

  • I own 3 ipods a g2 g5 and now g6 is there a way to use them all on one PC without losing anything

    I own 3 ipods a g2 g5 and now g6 is there a way to use Sync them all on one PC without losing anything

    iTunes will remember the settings for each device you connect using your account.

  • HT204380 Is there a way of using the same FaceTime account on multiple devices?

    Is there a way of using the same FaceTime account on multiple devices?

    Yes you can use the same Apple ID on multiple devices and FaceTime with each one. You have to associate a different email address on all but one of the devices.
    Lets say you have two iPads and two iPods..... All sharing the same Apple ID. When you set up FaceTime on three of the devices, you have to associate another mail address in Settings>FaceTime>You can be reached for Video calls at>Add Another email address. Add a different email address in that setting and let Apple verify the address.
    After that email address has been verified by Apple (they send you an email to that address so look for it in the inboxes of that email account and follow the instructions in the email), then remove the Apple ID email address on each of those three devices. You can use the primary Apple ID email on the fourth device.
    Obviously, you have to have additional email addresses but you can set up free email accounts with AOL, Yahoo, gmail .... and you can use the email address just for FaceTime if you like.

Maybe you are looking for