UDF to get the systemdetails in message mapping

Hi,
Written a UDF to get a system details, iam getting the systemid with "System.getProperty"
Bases on the system id returned, i must pass the values.
By using the below UDF, iam getting error.
public String Get(Container container){
//write your code here
String sysName = (String) System.getProperty("SAPSYSTEMNAME");
if ( 'DEV' .equals(sysName) )
sysName  =  "DEVCLNT120";
elseif ( 'QA' .equals(sysName) )
sysName  =  "QACLNT120";
return sysName;
Please anyone can help me incorrecting the above UDF.
Thanks
Srinivas

You have not mentioned what error, but i think the error ur getting is because of the single quotes on 'DEV'- i tried a simple udf in my XI system and it worked.
String sysName = (String) System.getProperty("SAPSYSTEMNAME");
if ("XID".equals(sysName))
return "XIDCLNT100";
else
return sysName;

Similar Messages

  • How can I get the address from a map struct?

    Hello,
    Who knows how to get the address from a map struct, and what's the meaning of the eighth argument (addr) of ufs_getpage() ?
    I developed a modular to encrypt certain files. The approach is: I�fll change the vnode's v_op pointer when opening a file which should be decoded. I make the vnode->v_op point to my own ops struct. I made a new ufs_getpage function like below:
    static int newufs_getpage(struct vnode* vp, offset_t off, size_t len,
    uint_t* protp, page_t* plarr[], size_t plsz,
    struct seg* seg, caddr_t addr, enum seg_rw rw,
    struct cred* cr)
    call old ufs_getpage(vp, off, len, protp, plarr, plsz, seg, addr, rw, cr);
    decode the page.
    After reading some source code about kernel, I know the plarr is the page which is read from the disk. But I don't know how to get the address of the page. I tried like below, but failed.
    caddr_t baseaddr;
    page_t *pp;
    pp = plarr[0];
    �c�c
    baseaddr = hat_kpm_page2va(pp, 0);
    �c�c
    I logged the baseaddr:
    cmn_err(CE_NOTE, �gbaseaddr %s�h, baseaddr);
    or
    char _buff[8];
    int _len;
    copyinstr(baseaddr, buff, 8, &len);
    cmn_err(CE_NOTE, �gbaseaddr %s�h, _buff);
    But I found the baseaddr is not what I want. Is there something wrong with my approach? What's the meaning of the eighth argument (addr) of ufs_getpage()
    By the way, is there any documents concerning to the functions such as segvn_fault�Appmapin/ppmapout except the source code?

    Hiya,
    I think the address is the faulting address in segmap.
    But why not have a look at the file event management framework in NFSv4:
    http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/fs/fem.c
    To support NFSv4 delegation, FEM provides hooks to intercept filesystem operations.
    Maybe you could use that to implement what you want? Probably safer than doing what you are doing now. Go see fem_install().
    Cheers,
    R.
    Message was edited by:
    ralphyt

  • I am using a 2003 eMac and am running on Mac OSX  vs 10.4.11. iTunes is not recognizing music I have purchased and when I try to connect when it request me to I get the following error message:  Cannot complete i Tunes Store request. A required iTunes com

    I am using a 2003 eMac and am running on Mac OSX  vs 10.4.11. I amrunning iTunes 8.2.1 (6) and not able to upgrade iTunes on this computer. iTunes is not recognizing music I have purchased and when I try to connect when it request me to I get the following error message:
    Cannot complete  iTunes Store request. A required iTunes component is not installed (-42404)
    Please help.

    Is this music purchased back in DRM days? I don't actually have any iTunes music so I can't test with my iTunes 7.5, but I know that without iTunes 10 you cannot even connect to the store anymore.  I wouldn't think that would require an active connection to the store all the time, otherwise how could you play music on a computer in the middle of nowhere?  Did you do something to trigger iTunes suddenly wanting to connect and check on machine authorization?

  • I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the inst

    I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the installation package 'iTunes.msi' in a folder from which you can install iTunes.  I can't find this folder. I have tried to completely unistall iTunes through the Control Panel, but it wouldn't let me: I tried going directly to the files themselves, but cannot uninstall. Any help would be greatly appreciated. System OS: Win XP SP 3.

    Set the permissions for Everyone in the folder in which CCPackager created, to "Read/Write" enabled. This is strange since there is only an administrator account on the Mac (and that account already has read/write), but it seems to resolve the issue.

  • I recently thought I lost my iPhone and I erased it but now that I found it. I cannot get the this iPhone message is lost please call ********* I am out of the country my laptop is at home. I cannot access I tune. How do I fix this. I have an iPhone 4s

    I recently thought I lost my iPhone and I erased it but now that I found it. I cannot get the this iPhone message is lost please call ********* I am out of the country my laptop is at home. I cannot access I tune. How do I fix this. I need to get it back on so I can face time with my family. The phone says 3G but it keeps saying on list mode. I signed on icloud and removed it from the account and nothing. Please help!

    If you removed the device from your iCloud account rather than using the "Stop Lost Mode" option, then you will most certainly need to restore the iPhone, and that will require a computer running iTunes.
    http://support.apple.com/kb/HT1414
    Regards.

  • Why do I get the "iwork discontinued" message when I click on the share feature in pages?

    Why do I get the "iwork discontinued" message when I click on the share feature in pages?

    If you are using an older version of iWorks, the sharing was, I understand discontinued in July 2012.
    New versions of the iWorks suite, Pages etc now have the sharing option, introduced earlier this year.

  • I keep getting the following error message when I try to update my itunes, "There is a problem with this windows installer package. Aprogram run as part of the set up did not finish as expected.  Contact your support personnel or package vendor."

    I keep getting the following error message when I try to update my itunes, "There is a problem with this windows installer package. Aprogram run as part of the set up did not finish as expected.  Contact your support personnel or package vendor."

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

  • I installed the latest itunes 10.6.1. I get the error -42404 message saying a component was not installed anf I cannot sync my itouch. The last version worked fine...........any suggestions?

    I installed the latest version of itunes 10.6.1............I get the (-42404) error message and I cannot sync my itouch....any suggestions? Is Apple aware of this problem?

    In the course of your troubleshooting to date, have you tried a complete uninstall/reinstall as per the following documents?
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same eror message

    Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same error message.  Says Lightroom will attempt to fix the problem the next time it launches but that is not happening.  How do it fix this?

    Delete the preview cache using your operating system. It is a folder whose name ends with Previews.LRDATA. Do not delete the Lightroom catalog, which ends with .LRCAT

  • When downloading itunes onto my windows 7 pc I get the following error message "this installation package could not be opened verify that the package exists and that you can access it"

    I am having trouble downloading Itune, icloud etc onto my Windows 7 PC and keep getting the following error message "this installation pack could not be opened, verify that the package exists and that you can access it"

    tried downloading the quicktime installer, I get the same message with it too

  • While my friend was setting up his iphone, i used my icloud. So now, when i send him a message i get the exact same message from myself. How do i fix this?

    While my friend was setting up his iphone because i had recently updated it for him he needed a itunes account to use for "bump" so i could transfer his contacts back. So i used my itunes and icloud account to sign in so he could download that because he didnt have any of those accounts. So when i logged in he was basically me, my name was his phones name aswell. Well i used "bump" his name was the same as mine. I got the contacts to work but now every time i send him a text message, (imessage) i get the exact same message from myself. How to i unverify him off of my icloud so i can be the only one using it?

    The fact that the problem only occurs when iphones are texting you leads me to think that iMessage may be the culprit. The fact that it is only iphones using SPRINT however is weird. Try turning imessage off on both yours and your sons phones to see if the problem persists. If it does, it may be a carrier problem.

  • I have OSX 10.7 Lion I set up a separate email account for my wife.  Now when she tries to enter a website we get the following error message:  Java Script: Not Null validator already loaded.  The website never opens and it is difficult to get out of:

    I have OSX 10.7 Lion.  I set up a separate email account for my wife.  All of a sudden when she tries to enter and website from email we get the following error message.  JavaScript;  The notnull validator has already been loaded.  From there we can't seem to go any where.  When you hit OK it just keeps appearing and the only way to get out of it is to quit Safai.  If you try and got directly to Safari you get the same error message and can't go any further.  Please help.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Can I get the same text messages on both my iPhone and my iMac

    can I get the same text messages on both my iPhone and my iMac
    It seems that my Mac is getting them and they dont show up on my iphone.

    Hi julian KAYE!
    You will want to make sure that both your computer and phone have all options checked in the “Start new conversations from” section in your Messages settings:
    iOS: Using Messages
    http://support.apple.com/kb/ht3529
    You can change the address that new iMessage conversations are started with in Settings > Messages > Send & Receive > Start new conversations from. Note that this setting applies only to new conversations. If you would like to change the address from which messages are sent, first change this setting, and then delete the existing conversation and start a new one.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How do I get the number of messages shown in the current MessageArea

    Hi there,
    I try to display the messages at the top of the screen in a MessageArea inside a scrollable Container which shows only one message to save space.
    In case that there are more than one message I would like to show a hint, that there are more than the displayed message.
    Is there an possiblity to get the count of messages shown in the current MessageArea? I already tried to get the MessageArea and had a look at the properties of the object: No Luck
    Afterwards I got the MessageManager but there was no apropriate method

    Hi ,
    Looks like there is no such an API !!! How about implementing on our own
    Take a int variable or valueAttribute "count" and increment the count after calling reportwarning or reportsuccess methods on the MessageManager.
    This will give count of the exceptions that you are handling in your code.
    @All, Correct me if there is such an API exists
    Regards, Anilkumar
    Message was edited by:
            Anilkumar Vippagunta

  • HT201328 after unlocking from ATT and resetting iphone 3gs I keep getting the same error message "could not activate phone" neither Apple Store Tech or ATT were able to fix this . Any ideas?? TKS Sandro

    after unlocking over the phone from ATT and resetting iphone 3gs I keep getting the same error message "could not activate phone" neither Apple Store Tech or ATT were able to fix this .
    Itunes displays a message saying "there is no SIM installed in the phone you're trying to activate" even if there is the same SIM that was working minutes before.
    The SIM works on a different phone I tested it.
    Any ideas?? TKS Sandro

    “Could Not Activate EDGE” error message Update ...
    Well it’s going on day 6 and still sporadic to no EDGE on my iPhone. At one time, it was thought to be a defective iPhone – since my partner’s iPhone works just fine.
    After over three hours on the land line with AT&T and Apple, I was sent to the local Apple store for a replacement. Of course, as soon as I walked into the Apple store my iPhone worked just fine. ;-( The local store replaced my iPhone and suggested I go home and activate the phone as a NEW iPhone, that way if there was a bug in my data it would not carry over to the new phone. Did that and well… still sporadic to no EDGE. By the way, I have the Big White “E” to the right of the 5 bars and AT&T .
    AT&T said last week they has “Software” issues in my area, but the CSR I talked to did not know what the issues were or if they were the cause of my problems. He did say they would call me back today to see how my iPhone was doing, but alas, no call back.
    When I’m next to my partner, trying to access the same feature, his iPhone is just so fast. Mine hangs up, draws out and finally I get the error message, “Could Not Activate EDGE”. I am updated to version “1.1.4(4A102)”. New (refurbished) iPhone direct from Apple.
    I remember reading a while back about some problems others had when they upgraded to from 1.1.3 to 1.1.4. I never had those problems, but it sure looks like they may have started. Does anyone remember what the problems with 1.1.4 were, what was done if anything to correct them, and best of all any suggestions?
    By the way, this is Seattle, not some small – out of the way place where connection and signal strength is expected to be second rate. Also, I had full function of my iPhone from the day I bought it in June 2007, all the way up to Thursday March 20, at 2120.
    Thanks
    Joe

Maybe you are looking for