Java Function which finds the server details

Hi folks,
  The requirement is
"we need to use JavaScript variable to capture the server name on which my report is running. So that we can construct dynamic URL"
Can you please help?
Thanks in advance
Varun

http://www.google.com/search?q=javascript+hostname

Similar Messages

  • JCO.SERVER could not find the server function

    Hi,
    I am calling "BAPI_COMPANY_GETDETAIL".thuough the zprogram"ZBAPI_COMPANY_GETDETAIL"
    REPORT ZBAPI_COMPANY_GETDETAIL.
    DATA:BEGIN OF ITAB,
    RCOMP LIKE T880-RCOMP,
    END OF ITAB.
    ITAB-RCOMP = 99999.
    CALL FUNCTION 'BAPI_COMPANY_GETDETAIL'
    EXPORTING
    COMPANYID = ITAB.
    IMPORTING
    COMPANY_DETAIL =
    RETURN =
    The Details I Gave......
    In SM59 of R/3:
    PROGRAMID:LCRSAPRFC_PIT
    GATEWAYHOST:PITEST
    GATEWAYSERVICE:sapgw01
    Tested the connection and it is running
    ID:
    In Communication Channel.
    Application server (Gateway):PITEST
    Application server Service (Gateway):
    PROGRAMID:LCRSAPRFC_PIT
    RFC Metadata Repository parameter.
    ip of XI Server
    System No Xi System NO
    username
    pwd
    In SM58 I find the Following error.
    "JCO.SERVER could not find the server function BAPI_COMPANY_GETDETAIL.
    I Tested RFC ADAPTOR in  RWG and it is ok.
    I do not Understand where the problem is.
    Please clarify.
    Thanks,
    Srinivasa

    Thanks for the reply,
    Yes RFC is in the Sender  side.
    I am calling "BAPI_COMPANY_GETDETAIL".thuough the zprogram"ZBAPI_COMPANY_GETDETAIL"
    REPORT ZBAPI_COMPANY_GETDETAIL.
    DATA:BEGIN OF ITAB,
    RCOMP LIKE T880-RCOMP,
    END OF ITAB.
    ITAB-RCOMP = 99999.
    CALL FUNCTION 'BAPI_COMPANY_GETDETAIL'
    EXPORTING
    COMPANYID = ITAB.
    IMPORTING
    COMPANY_DETAIL =
    RETURN =
    The Details I Gave......
    In SM59 of R/3:
    PROGRAMID:LCRSAPRFC_PIT
    GATEWAYHOST:PITEST(XI system name)
    GATEWAYSERVICE:sapgw01
    Tested the connection and it is running
    ID:
    In Communication Channel.
    Application server (Gateway):PITEST(XI system name)
    Application server Service (Gateway):
    PROGRAMID:LCRSAPRFC_PIT
    RFC Metadata Repository parameter.
    ip of XI Server
    System No Xi System NO
    username
    pwd
    In SM58 I find the Following error.
    "JCO.SERVER could not find the server function BAPI_COMPANY_GETDETAIL.
    I Tested RFC ADAPTOR in RWG and it is ok.
    I do not Understand where the problem is.
    These is what I gave,

  • Getting the Server Details.

    Hi All,
    I am required to develop a Composite Application Service which will give the server details like HOSTNAME and PORT NO of the deployment server.Is there any way of fetching these details ?
    Could someone please help me out with this issue ?
    Regards,
    Gaurav.

    HI,
    Are you talking about SAP server??
    If it is ABAP stack, you can get by system-->status
    If java stack, then you can get by URL http://<fully qualified hostname>:5<nn>00
    where nn is the instance number.
    Regards,
    Kunal.

  • "Firefox can't find the server at ..." error message

    I frequently get the "Firefox can't find the server at ..." message but in most cases clicking "refresh" gets to the relevant website. Based on limited usage of IE, IE doesn't give the same problems. In attempting to resolve the issue I've deleted and reallowed Firefox through the firewall, tried starting in safe mode, cleared the cache, made suggested additional entries though About:config, etc. all to no avail. Judging from discussion threads this problem appears to be very common but none of the solutions I've tried work. Any suggestions for possible solutions would be greatly appreciated.
    Thanks

    This problem has occurred frequently since upgrading to 3.6 and upwards, all the way to 6.0. It is so persistent a problem that I am seriously considering bidding farewell to Firefox for a while.
    I have IE, Chrome, Opera, Netscape and ArmorSurf as alternatives. Even the old Netscape Navigator (version 9+) gives me less problems than Firefox.
    Another major annoyance with Firefox: Upgrades too often cause the loss of previously functioning add-ons (some of which had cost money for the premium versions).
    Firefox has lost its razzle-dazzle for me. Too bad.

  • Error!! Can not find the delivery details for the delivery Id :

    hi all,
    I have a report which i need to burst in seven different reports wherein my delivery key is column "emp_id". Now when i schedule the report to burst then the report completes with a warning. I see that there are various delivery cycles for the report and for one of the cycles i get the following message
    Error!! Can not find the delivery details for the delivery Id :
    hence, what happens due to this is, even there are successful deliveries for other delivery ids but then i get only two rows of data in each of the seven bursted ouput xls files. wheareas the data runs in thousands of rows for each cycle.
    Hence whats happening is, that due to error /warning in one of the delivery cycles other reports are also not showing data.
    I am not sure whats causing the issue and why i am not getting complete bursted files out.
    Please suggest
    Thanks
    Ronny

    I guess, you are in 10.1.3.3.2 :),
    in the latest release 10.1.3.4.1, there are more enhancement wrto bursting and performance i believe.
    check th release notes
    can you send me the xml and bursting query you have, i can try simulating in my local.

  • Safari can't find the server.

    I updated to Ilife08....I went to iweb and added some pages to the site....i published the pages...I got the announce your site message...I did that....I then went to visit site and I got Safari can’t find the server.Safari can’t open the page “http://www.michaelcarlucci.com/Mickeyt” because it can’t find the server “www.michaelcarlucci.com”. I have tried everything and I cant publish anything...I tried adding a site and copying the old pages to it...that did not work...I tried changing the site name ...that didn't work....when I open Iweb...everthing is there...but when i go to publish...it will do everthing and send me the announce and visit...but when i go to visit...i still get the same message...+*ok...I give up....*+and to top it all off the pictures look aweful...they are super saturated in reds....so what i want to do is throw it all out and start over...and hopefully it will get me back to where I began...I copied everything in the site folder and put it in a file on my desk top....but this was after I had all the trouble...everythingseems to be there though...but I am not sure if I would know if anything is missing....the domain was changed from domain to domain 2...so I guess the up grade worked....
    How do I throw the site away....delete everything and then start from scratch? I must have done something but I couldn't tell you what I did...I've read everything on these forums and have spent two days and a night trying to fix it...

    well i bet that is a good guess....I did go there and change the name....and it has not been 48 hours yet...the only problem is that I have now published to file on my desktop.....and it worked from there....Then I published all to .mac.....i got the anounce and visit pop up...when i went to visit....it doesn't work....but when I went to the site from my file I copied the address on the web page....which is http://web.mac.com/micluc/MichaelTrower_Carlucci/Welcome1.html.....I bookmarked it and just for the heck of it I went to the last page on digital painting and changed to photos with push pins....I then published....I still get the message from the visit....but when I drop in http://web.mac.com/micluc/MichaelTrower_Carlucci/Welcome1.html... the changes where there and everything is working...have I fixed it...or have I just made it possible for me to get there....and it is actually not the right way as I can't visit the site from Iweb itself....so when the 48 hours is up and new DNS settings show up...will i be in the same mess? thank you for helping me with this...

  • "Safari can't open the page because it can't find the server"

    I just bought my iPhone. The first time I attempted to log onto my home wireless network (US Robotics Wireless Router) the iPhone performed perfectly. However, the next time I attempted to logon and surf it gave me the "Safari can't open the page because it can't find the server" error message. I tried a variety of things which didn't work. I called the Apple Tech Support. Turning off the router and rebooting it was the only thing that worked. I thought my problem was resolved because after cycling the router the iPhone worked great once again. But . . . later the same day I attempted to connect to the router and the same thing happened and I got the error message. I attempted to power cycle the router just like before but this time it did not work! Help! Bad router? Wrong settings on router or iPhone?

    Do you have other wireless devices connected to this same router? Do they work?
    I really can't help you much but to say that when my router exhibited this issue it was accross the board (all notebooks would connect immediately following a router restart, but would loss connectivity until I rebooted the router again). In my case the only solution that was permanent was to replace the router.
    You may also try restarting the phone and the router, setup security - WEP - (or disable security) on the router and phone, and/or try a different wi-fi channel (may actually help).

  • Firefox periodically drops my Verizon/Yahoo email site indicating it cannot find the server. Verizon alledges there are no server problems.

    My email page will crash and the message received is:Firefox can't find the server at us.mc844.mail.yahoo.com. Repeated reloading does not help. After a period of time from 5 minutes to an hour the site can be accessed and is Ok for several days. The the problem reoccurs several times in the same day. When my email provider is contacted they indicate no server problems.

    Report your error messages so your peers, like me, can make suggestions..
    Official recommendations are on http://help.yahoo.com/l/us/verizon/mail/ymail/basics/mail-12859445.html NOTE THE URL's Stick with them if using YAHOO.  I have not found a newer recommendation for pop.yahoo.verizon.net that you mention, and the help page was updated this month.
    Note some have had trouble with missing intermediate certificates so get encryption errors.  Shouldn't happen (except if you are missing the root certificate, which is your responsibility),  but can be fixed by installing manually.
    Some have reported needing to specify [email protected] rather than just userid, I believe on the SMTP side.  Normally you specify only userid and password without the @verizon.net.

  • Why do I keep getting a "Safari can't find the server" message? Why does the connection keep dropping out?

    When I open Safari and browse, I often get this message: "Safari can't find the server". I will then wait for at least 5 minutes, try the site again, and it will open, but then it just keeps happening on just about all websites now. These are very stable sites. I have had two technicians from my ISP try and fix the problem but with no success. I went to the Apple store, they told me to reset Safari - which I did - but that didn't work either. I am at my wit's end with this.Can someone please help?

    Check to see if the firewall is turned on.
    Open System Preferences > Security & Privacy > Firewall
    If the firewall was turned off, try this DNS server.
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click OK.
    Quit and relaunch Safari to test.

  • Write two functions to find the the number of elements in a linked list?

    I am trying to Write two functions to find the the number of elements in a linked list. One method using recursion and One method using a loop...
    //The linked List class is Represented here.
    public class lp {
    public int first;
    public lp rest;
    public lp(int first1, lp rest1)
    first = first1;
    rest = rest1;
    The program i wrote so far is
    import java.util.*;
    import linklist.lp;
    public class listCount{
    //loop function
    public static void show_list(lp list)
    int counter = 0;
    while(list != null)
    list = list.rest;
    counter++;
    System.out.println ("length computed with a loop:" + counter);
    //recursive function
    public static int recursive_count(lp list)
    if (list.first == null)
    return 0;
    else
    return recursive_count(list.rest) + 1;
    //main method
    public static void main (String args[])
    lp list1 = new lp(1, new lp(2, new lp(3, null)));
    show_list(list1);
    System.out.println("length computed with a recursion:" +
    recursive_count(list1));
    at the if (list.first == null) line i get the error " incomparable types:
    int and <nulltype>" I know this is a beginners error but please
    help...What should I do?

    byte, char, short, int, long, float, double, and boolean are primitives, not objects. They have no members, you cannot call methods on them, and they cannot be set to or compared with null.

  • I need a timer function to ping the server every 5 secs??using threads.

    I need a timer function to ping the server every 5 secs??
    using threads...i have to use a thread coz i cant use Timer and Timer Task coz clients r on the JDK1.2 version.I have created a thread which keeps checking th ping msg & any server msg is pings 4 the1st time properly but then it just waits to read the response from server but it doesnt but the server shows that it has send the msgs to client???PLEASE HELP URGENT

    Few things are not clear from your post, like, are you using sockets and if you are, how are u reading writing to them (ur sample code would help)...
    Anyways if you are, are you doing accept on your socket in a while(true) loop or just once... If you do it only once you will get the first ping message but none afterwards if the other side closes and opens new sockets for every send... What I am suggesting is something like the following:
    ss = new ServerSocket(port);
    while(true)
         s = ss.accept();
         is = s.getInputStream();
         os = s.getOutputStream();
         reader = new BufferedReader(new InputStreamReader(is));
         writer = new BufferedWriter(new OutputStreamWriter(os));
         String in = reader.readLine();
            // do something with this string
            s.close();
            // put some check here to break out of this infinite loop
    }// end of While

  • How is the dsame client find the server ?

    Hi,
    manager = SSOTokenManager.getInstance();
    token = Manager.createSSOToken(new AuthPrincipal("uid=amAdmin,ou=administrators,ou=topologymanagement,o=netscaperoot"), "abcdefg123");
    amConn = new AMStoreConnection(Token);
    I have above code fragment in a standalone Java application. The Java client could not find the server. I could not use Httprequest to get the server infomation. I tried token.setproperty("hostname",dsame. wad.com.au);
    tolen.setproperty("port",58080);
    But this doesn't help.
    Thanks in advance!!
    Ravi

    Please ignore the syntex errors in above code.
    Thanks,
    Ravi

  • Not Finding the Server

    The new Safari 5 presents me first with "Unable to find the Server" or "You are not connected to the Internet", then I have to stop loading the page and reload. After that - but not always on the first try - it is fast. I suspect that a quick update is needed.

    HI,
    Empty the Safari cache (Safari/Empty Cache from the Menu Bar) and see if that helps... if not, try Resetting Safari. Select the top 5 boxes, click Reset.
    Relaunch Safari.
    If that doesn't help, try moving the com.apple.Safari.plist file from: ~/Library/Preferences to the
    Desktop. Relaunch Safari... see if the problem continues. If it does, just move that .plist file back to the ~/Library/Preferences folder.
    Also, login to another user account and see if Safari functions as it should there. If it doesn't, then the glitch is in your Home Folder, not a system wide problem.
    Also, try disabling plugins: Safari/Preferences / Security - Web content.

  • I purchased premiere elements 13. I followed the instructions. Loged into my account. Located my order number, but can not find the order detail page to download my product

    I purchased premiere elements 13. I followed the instructions. Logged in to my account. Located mu order number but could not find the order detail page to click the download your product button. I was also asked to download the Akamai download manager which i don't understand why. Also It said that once the manager was installed the download would appear in the browser which it never did. So, I have no idea if it did download or not. Not sure what else I can try. Would love some help.

    The Akamai download manager is used to download the software you purchased.  Try the download resources below.  The second one does not use the download manager.
    PE 10, 11, 12,13 - http://helpx.adobe.com/premiere-elements/kb/premiere-elements-10-11-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • Safari can't open certain pages, can't find the server

    Hi
    On both my iMac and iOS devices (all connected to same Airport TimeCapsule Wi-Fi network), certain web pages won't open in Safari (specific example www.amazon.co.uk).
    Safari returns the message "Safari can't open the page "www.amazon.co.uk" because Safari can't find the server "www.amazon.co.uk"".
    Opening other pages works fine.
    Have tried Safari option "Clear History and Website data" (all history) without success. Have also tried rebooting the TimeCapsule (disconnecting power cord), also without improvement.
    When trying to connect to the same website over 4G on iOS device, no problem occurs.
    Can anyone help me?
    All software on all devices are updated to latest versions.

    Back up all data.
    Unlock the Network preference pane, if necessary, by clicking the lock icon in the lower left corner and entering your password. Cllck Advanced, open the DNS tab, and change the server addresses to the following:
              8.8.8.8
              8.8.4.4
    That's Google DNS. Click OK, then Apply.
    In Safari, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. If you’re using another browser, empty the cache. Test. Any difference?
    Notes:
    1. If you lose Internet access after making the above change to your network settings, delete the Google servers in the  Network preference pane, then select the TCP/IP tab and click Renew DHCP Lease. That should restore the original DNS settings; otherwise restore them yourself. Remember that you must click Apply in order for any changes to take effect.
    2. I don't use Google DNS myself, though I have tested it, and I'm not recommending it or any other DNS provider; the server addresses are offered merely for testing purposes. There may be privacy and technical issues involved in using that service, which you should investigate personally before you decide whether to keep the settings. Other public DNS services exist.

Maybe you are looking for