Short question about system-id

Hi everybody,
how can I get information about the server-id, my web dynpro-application is running on? I need something like sy-sysid in APAP
Thanks
Jan

HI
String ID = System.getProperty("SAPSYSTEMNAME");
Try this thread,
Retrieveing SID programmatically !
Regards
Saravanan K

Similar Messages

  • Short question about the nano controls

    Hi. I'm probably going to buy a 4Gb nano today, but first I'd like to ask a short question about the << >> buttons on the click wheel.
    I read in a forum that the << & >> buttons are actually 'skip' buttons (only used to play the previous or next song respectively), and that it's impossible to rewind or fast-forward within the track you're listening to. This is extremely important for me as I have several 2-3 hours mp3, and I need to be able to access different parts of the file quickly (eg. not having to actually wait 1 hour to listen to my favorite part). I found this to be an important feature, and I can't believe Apple hasn't thought about it.
    Anyway, I've never used an iPod, that's why this question may sound plain stupid.
    Thanks for you replies!

    The iPod fast charges to about 80% and then trickle charges the rest of the way to prevent damaging the battery/iPod. A full charge takes more than an hour or two though the battery indicator will show full. The best way to tell if a full charge has occurred is to unmount the iPod from the computer but keep it connected. The screen will show an animation of a battery. When the animation stops the battery is fully charged.
    Also, as your battery discharges the indicator will eventually show red indicating the battery is about to run out...in an hour or two. After you've owned your iPod for a couple months you'll figure out how much time you have left when the indicator turns red - it depends on a number of factors including play volume, equalizer use, etc. In real world use I'm getting over 11 hours.
    The headphones are...average. If they didn't hurt my ears I'd find them acceptable for my pop music but not so acceptable for acoustic and symphonic nor music with booming bass - because they don't boom the bass.
    I encode the majority of my music at 256 AAC and I've noticed no distortion caused by the EQ. This, plus your complaint about the earphones, leads me to think perhaps you got a bum set of phones. Borrow a pair from someone else and see what happens.

  • Short questions about the focused item

    Hi,
    Short questions about the focused item:
    - How can I check if a specific item has the focus?
    - How can I check in my code which arbitrary item on my form has the focus?
    I need to know this because I have a checkbox and when it become unchecked, I disable an item on my form. But when this item has the focus, disabling this item will fail. Does anyone knows a solution for this problem?
    Greetz
    Eddy

    Hi Eddy!
    I suppose you should make an "event trigger" for the event "et_GOT_FOCUS" in your ItemEvent-handler and store there the item, which initiate that event. It can be like following:
    SBOApp_ItemEvent(FormUID, pVal, BubbleEvent)
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_GOT_FOCUS)
       strCurrItemInFocus = pVal.ItemUID;
    do someth..
    if (strCurrItemInFocus == "chbxMyCheckbox1")
       // disabling this item will fail
    else
       // disable an item on my form
    I hope it helps..

  • Problem\question about System.in and DataInputStream

    Hello everybody,
    I have the following code, trying to read an int and a string into two variables using System.in and DataInputStream:
    package objectIO;
    import java.io.*;
    public class WriteStudentObject
         * @exception IOException Can not read the file
          public static void main(String[] args)  throws IOException
              a loop could be used here to create more than one
              student object and write each one to a file
              Student mary = new Student("Mary Martin", 12345);
              // open inputstream to read data from keyboard
              InputStream is = System.in;
              DataInputStream dis = new DataInputStream(is);
              int  g;
              String c;
              for (int i =0; i < mary.grades.length ; i++)
                  System.out.println("Enter a grade for test" + i);
                  g  = dis.readInt(); //*QUESTION 1*
                  System.out.println("Enter a comment for test"+i);
                  Datainput stream can read String
                 and store as text or reverse
                  c = dis.readUTF(); //*QUESTION 2*
                  mary.grades= new Grade(g,c);
    try
    FileOutputStream fos = new FileOutputStream("c:\\personal\\test\\studentObject.dat");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
    oos.writeObject(mary); // write obj to file
    oos.close();
    } catch(IOException e) {
    System.out.print("Error: " + e);
    System.exit(1);
    The class uses a Student object -attributes are name\String, id\int and Grades (Grade class has grade obtained\int and a comment from the teacher\String).
    My questions are: (as bolded in the code)
    1) at "g  = dis.readInt()" I have to press Enter 3 times to finish the reading (one after entering a single int and then just 2 times Enter). Should I add bellow this line "System.in.read()" to clear the newline\return character?! What exactly does "System.in.read()" clears? After leaving the method readInt() the variable g has an enormous value... like 9 digits... why? I also tried "g  = (int)dis.readInt()" but the results are the same... I want to read an int from keyboard, but using DataInputStream, not with System.in.read()
    2) at this line the program never ends, it tries continuously to read characters... no matter what I enter it does not complete... I want to read a String from keyboard, but again using DataInputStream...
    Many thanks in advance (and hopefully now I can assign the offered stars...)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    don1983p wrote:
    I read an int form keyboard with 'int read_int = System.in.read();' but why I must, after this line, enter a new System.in.read()? (what does this clears? the return character? )Yep. Note that InputStream.read() only reads the next byte of data. If your user had input something that required multiple bytes to represent, you would not have read all of it.
    Fun Fact: Even if you had used Scanner.nextInt() to get your integer from the console, you still need to do a .nextLine() as .nextInt() only reads up to the newline and does not consume it.

  • Question about System.in, FileoutputStream and blocking

    Hello everybody,
    I have written a simple java program that read the System.in and append it to file (which is the first argument of the program).
    Here is the context: my client launch several instance of this program at the same time, with the same file passed in argument. In a first time, I did not use the FileChannel.lock() method because I didn't know there will be several instance, but this is not the question.
    The problem is simple: sometime, I can't figure why (and this is why I'm here to ask you), one of the process block, and stay like this until my client kill it.
    So why? It has something to do with the absence of FileChannel.lock()?
    My client is on Solaris, don't know which version, with a JDK 1.5.0_04
    Here is the code:
    InputStream is = System.in;
    InputStreamReader ir = new InputStreamReader(is, encodingMode);
    BufferedReader reader = new BufferedReader(ir);
    FileOutputStream fos = new FileOutputStream(args[0], true);
    String lineSeparator = System.getProperty("line.separator");
    String buf = null;
    while ((buf = reader.readLine()) != null) {
         fos.write(buf.concat(lineSeparator).getBytes(encodingMode));
    }I think the FileChannel.lock on the output file will solve the problem, but I'm just curious about that odd issue.
    Thanks for help, and excuse me for my bad english.

    Ok, I try to launch 20 occurences at the same time on opensolaris 2009.06 and here is what I've got:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    # An unexpected error has been detected by Java Runtime Environment:
    # java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?
    #  Internal Error (allocation.cpp:120), pid=1603, tid=2
    #  Error: ChunkPool::allocate
    # Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode solaris-x86)
    # An error report file with more information is saved as:
    # /export/home/eric/SocGen/hs_err_pid1603.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    Error occurred during initialization of VM
    java/lang/ClassNotFoundException: error in opening JAR file /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jarI've also got a nice core file and a hs_err_pid1603.log ( here: http://pastebin.com/m513df649
    Funny think is that I can't reproduce it on AIX.
    Hope that can help you helping me.
    Edited by: Eric-Fistons on 13 oct. 2009 13:43
    Edited by: Eric-Fistons on 13 oct. 2009 13:45

  • Urgent Question about System Center Server Names and Dashes

    Hey guys I have a quick Urgent question that would be awesome if it happens to get answered quickly :). 
    So in the past we had problems with different server names in components of System Center when setting up different servers.... I never myself saw the errors or what it did, but an absentee colleague did. For example is anything wrong with a name setup like
    xx-scom-01 / xx-scom-02  as compared to the standard scom01 scom02? We have a certain naming convention we are moving to and I wanted to see if this was fixed. I wanted to say it had something to do with the hyphens... anyways any foresight anyone can
    provide would be awesome. Thanks!

    Dashes in the name will work fine.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Pacman - short question about usage

    Hi,
    while searching the database with "pacman -Ss foobar", is it possible to show which of the resulting package names are already installed? In Debian it's shown via "aptitude search foobar", but I can't find the corresponding option for pacman in its man page.
    Thanks for your answer.

    Sorry, I've forgot to mention - but I think "repo-add" is more elegant solution. Personaly, I use a script which I call "auri" based on "aur-install", too. It also builds packages.
    If anyone likes it you can improve
    #!/bin/bash
    #/usr/local/sbin/auri
    # Author: Luis Useche <[email protected]>
    # Modified by: aris002 (no warranty and no reponsabilty for the damages to your system)
    # Date: 10/20/2006
    # License: GPL
    # aur-install is a tool to install any AUR package in one command. It is needed
    # to pass the url of the tarball package. It allows to see the code of both
    # PKGBUILD and install file beforme performing the installation.
    ABS_LOCAL_DIR="/var/abs/local"
    WGET="/usr/bin/wget"
    UNTAR="/bin/tar xzf"
    MAKEPKG="/usr/bin/makepkg"
    PACMAN_INSTALL="/usr/bin/pacman -U"
    REMOVE="/bin/rm -rf"
    READER="/bin/less"
    ADD_TO_MY_REPO="/usr/bin/repo-add"
    HOME_REPO_DIR="/home/myrepo"
    HOME_REPO_NAME="myrepo"
    AUR_URLPKGS="http://aur.archlinux.org/packages"
    # Function that make a yes or no question a return true in case of
    # yes otherwise false
    ask_question() {
    echo -n "$1(y/n)[y]: "; read ANSWER
    while [ -n "$ANSWER" ] && [ "$ANSWER" != "y" ] && [ "$ANSWER" != "n" ]; do
    echo -n "\"y\" or \"n\": "; read ANSWER
    done
    return `[ "$ANSWER" = "y" ] || [ -z "$ANSWER" ]`
    # Verifying root permisions
    if [ `id -u` != "0" ]; then
    echo "You need root to execute this script"
    exit 1
    fi
    # Veryfing parameters
    if [ -z "$1" ]; then
    echo "You need to pass an aur package URL or aur package name as an argument"
    echo "Usage: aur-install <pkgname>|<package tarball URL>"
    exit 1
    fi
    # Verifying if the argument is a URL or a pkg name
    if echo $1 | grep -q "http://"; then
    URL_PKGTAR=$1
    TAR_FILE=`basename $1`
    PKGNAME=`basename $1 .tar.gz`
    else
    URL_PKGTAR="$AUR_URLPKGS/$1/$1.tar.gz"
    TAR_FILE="$1.tar.gz"
    PKGNAME="$1"
    fi
    # Changing directory
    pushd $ABS_LOCAL_DIR > /dev/null
    # Download the file and place it in abs dir
    #aris002 TODO check if exists!!!
    $WGET $URL_PKGTAR
    # Untaring tar file
    $UNTAR $TAR_FILE
    # Removing the file
    #aris002 KEEP???
    $REMOVE $TAR_FILE
    # Go inside package directory
    pushd $PKGNAME > /dev/null
    # Verifying the packages
    if ask_question "Do you want to look the PKGBUILD file in case of malicious code?"; then
    $READER PKGBUILD
    # Continue?
    if ! ask_question "Do you want to continue?"; then
    exit 1
    fi
    fi
    # Including PKGBUILD
    source PKGBUILD
    if [ -n "$install" ] && ask_question "Do you want to look the $install file in case of malicious code?"; then
    $READER $install
    # Continue?
    if ! ask_question "Do you want to continue?"; then
    exit 1
    fi
    fi
    #repair (insert) arch=('i686') in PKGBUILD
    sed -i.BAK -e '/^arch/d' -e '/^pkgdesc/a \arch=('\''i686'\'')' $ABS_LOCAL_DIR/$PKGNAME/PKGBUILD
    echo "Making and installing the package..."
    # Making Package
    $MAKEPKG
    #aris002 repo-add
    $ADD_TO_MY_REPO "$HOME_REPO_DIR/$HOME_REPO_NAME.db.tar.gz" "$HOME_REPO_DIR/$pkgname-$pkgver-$pkgrel-i686.pkg.tar.gz"
    # Installing with pacman
    $PACMAN_INSTALL "$HOME_REPO_DIR/$pkgname-$pkgver-$pkgrel-i686.pkg.tar.gz"
    # Returning to the original directory
    popd > /dev/null
    popd > /dev/null

  • Various questions about System Restore Point

    How can I delete old System Restore Points?
    Is it possible to move the folder that holds them to a different drive then C:?
    Can I limit the amount of data System Restore is allowed to have?
    I have downloaded the TreeSize program to see what is using up so much space on my SSD and a folder named "System Volume Information" has 17GB of storage. Now I have found out that this is the folder that keeps System Restore Points and I checked
    on my restore points. There are too many of them and I was wondering if I could delete some of the old ones? I read on another post that someone said that you could limit the amount of data System Restore is allowed to use. Is this possible?
    Best Regards.

    Hello HurricaneHojax,
    Here I list the requirement, and please correct me if I have misunderstanding:
    1. Delete some System restore point
    2. Move the folder that hold system restore data to a different drive then C:.
    3. Limit the amount of system restore data.
    1, We can delete some system restore point.
    For more information, please take a look at the following article.
    http://windows.microsoft.com/en-hk/windows/delete-restore-point#1TC=windows-7
    2,We are not able to move the system restore folder to other Drive.
    3, We can limit the amount of system restore data.
    For more information, please take a look at the following article about managing the disk space that is used by System Restore.
    http://windows.microsoft.com/en-hk/windows7/how-much-disk-space-does-system-restore-require
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Question about System Properties?

    Can anyone shed some light apon this, if i have my midlet running in the background
    i.e. display set to null.... can j2me read the state of the phone system?
    Can j2me read any 'system property' like active/idle/keylocked??
    ..../fg

    Well generically the answer is NO.
    There is always a chance that some device manufacturer have supplied (if at all) some API to do this. But I am yet to heard about any device in the market to have this. Only what I heard that Nokia is in its way to supply some API like this with there Series 40 3'rd edition phones (ref. http://developers.sun.com/learning/javaoneonline/sessions/2006/TS-4447/index.html?). But they haven't yet announced anything on the release of it.

  • Questions about System Requirements for Adobe Air programs

         Earlier today I asked someone who runs Tweetdeck if they knew what the system requirements were for running Tweetdeck on my desktop (Windows)
    they gave me a link here: http://www.adobe.com/products/air/systemreqs/
    and I found this:
    Windows
    2.33GHz Intel® Pentium® 4, AMD Athlon® 64 2800+, or faster processor
    Microsoft® Windows® XP Home, Professional, or Tablet PC Edition with  Service Pack 3; Windows Server® 2003 or 2008; Windows Vista® Home  Premium, Business, Ultimate, or Enterprise (including 64-bit editions)  with Service Pack 2; or Windows 7
    512MB of RAM (1GB recommended)
    Here are my computer statistics:
    Operating System: Windows Vista™ Home Basic (6.0, Build 6001) Service Pack 1 (6001.vistasp1_ldr.101014-0432)
               Language: English (Regional Setting: English)
    System Manufacturer: Hewlett-Packard
           System Model: Compaq Presario CQ60 Notebook PC
                   BIOS: PhoenixBIOS 4.0 Release 6.1    
              Processor: AMD Athlon Dual-Core QL-65 (2 CPUs), ~2.1GHz
                 Memory: 2814MB RAM
              Page File: 1858MB used, 3993MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 10
    DX Setup Parameters: Not found
         DxDiag Version: 6.00.6001.18000 32bit Unicode
    Will me only having a 2.1GHz processor really affect how my performance is with Adobe Air products/apps in general?

    Yes- I've had some lower price pc's using an Adobe AIR app and can tell the difference.
    Computers where performance was a huge issue was Compaq CQ56 & Toshiba Satellite C655D
    These computers are under 2.0 GHz and the app seems to freeze up on occassion or run slower.

  • Question about system catalog tables in oracle 11g database

    We have a customer issue and in order to trobleshoot that we need following information. We would really appreciate any input. I opened SR with support and they asked me to open a discussion here. Please see following.
    what is the meaning of the part# column of the sys.tabpart table and what are the possible values that can be entered into this system catalog table. Our findings are that Oracle may have varied the meaning of this column as the data that we are seeing returned is now > 2gig which does not make sense for a partition number.
    Our stored procedures use this information to retrieve information from the Oracle system tables to process a partitioned Oracle table. Our research has found that the limited description for this table (and columns) can be found in the following Oracle member at the following location:
    dpart.bsq --> ...... oracle database path... \RDMS\ADMIN folder
    The comment within this file notes the following:
    " this value is "partition number (see discussion below)"
    However, there is no additional discussion to describe what the value means and the possible variations. We need this information to move forward with our problem diagnosis and
    to see what kind of updates we need to make for our stored procedures....
    Thanks a lot in advance.
    Avni

    I ran the following....
    list expired archivelog all; - This showed all of the archivelogs that we were not able to validate...
    delete expired archivelog all; This deleted the expired archivelogs that were reported from the previous command...
    I then crosschecked the archivelogs by running the following:
    crosscheck archivelog all;
    Thank you for your help!

  • Short question about networking, Threads and  web services..

    Lets say I got 2 classes, Midlet A and Thread B.
    I created Thread B because web services (jsr-172) uses networking and It has to be done in a separate thread other then the Midlet A.
    So, in Thread B, I have the run(), where I do all my stuff, and some getSomething() methods.
    I need to have run() complete before calling getSomething(), so I used something like this in Midlet A:
    while(true){
        if(b.isAlive())
            getSomething();
    }Problem is, Thread B only runs to completion when I don't call b.isAlive(). (I know from System.out.println I placed in it) When I do use any methods like wait() or join() or isAlive(), Thread B stops at the web service call.
    I really don't understand what's the problem. I've tried various ways to only call getSomething() when the thread finishes running, but all of them made my WTK emulator hang at the part where it asks for permission to access the network.
    If I don't use getSomething(), which is the purpose of starting the thread in the first place, it runs fine in the emulator and doesn't hang anywhere. Oh the irony.

    Bump!
    Anyone got even half a clue what's wrong? =O
    Hmm. I think that having the midlet wait for the thread causes the midlet to hang because the thread will then wait for the midlet for permission to access the network, but the midlet is waiting for the thread to finish it's code. Damn.
    Message was edited by:
    lonereaction

  • Questions about system connections

    Would someone help me clarify something?
    When the ECC QAS system has been copied from the PRD system, the connection between the ECC QAS and the BID system is broken. I was told by Basis that after the copy, the connection has to be restored, and for some reason restoring the connection between the QAS and the BID system, the InfoSources and their transfer rules are completely wipe out from the system.
    We are using the business contents and have not yet did the migration.
    I am not sure why restoring the connection between the ECC and BID system would cause the InfoSources to de deleted. Has anyone come across this problem? Is it something that Basis can prevent from happening? I have not seen this from BW 3.5.

    Hi,
    We tried your suggestions but it is still wiping out the InfoSources. We are aware that the broken connection between the ECC and the BI systems will allways occur when we do a copy. Restoing the connection between the ECC and BI systems is causing the wipe out of the InfoSources.
    We're asking if anyone has come across this problem and was able to fix it,
    Quote of the day:
    "Arrogant idiots go to hell..."

  • Short question about upgrading

    I have CS2 today and im about to upgrade to CS4. I have my original media left but ive lost my serial number. Am I still able to upgrade?

    Usuallly, an upgrading installer does not requre the previous version's serial number.
    If you upgrade the previous version installed on your computer, upgrading installer will automatically validate the previous version and complete the installation without requring previous version's serial number.
    If you install the upgrade version on the computer where previous version has not been installed, upgrading installer will prompt you to insert the previous version's installation media for validation and complete the installation without requiring previous version's serial number.
    But recent Adobe application's upgrading installer will prompts you to enter the serial number of your previous version, so you need to find out your previous application's serial number.

  • Question about system requirements with upgrade

    I want to upgrade to Leopard which has iLife '08 but as I was reading about iMovie '08, it says that the minimum processor spec is a g5. You can see in my signature, my Powerbook is a g4, will iMovie not run at all (or very well even) or will the installer give me an option not to install the entire iLife'08 suite over what I have right now? Thanks!

    As the Prime Minister has pointed out Leopard doesn't include iLife 08. It is a separate $79 purchase.
    Your G4 (and mine) can't even install iMovie 7 so a purchase would do you no good.
    But, if you bought a new Mac it would come installed with Leopard ($129) and a free version of iLife 08.
    Over $200 in savings right off the bat!

Maybe you are looking for