Getting current portal url and port no

Dear all,
Please let me know how to get the current portal hostname and port no .  We are  accessing the port thru <b>virtual hostname</b> and not by physical server name. We are using EP 7.0 SP10 . I need this  virtual hostname and port no to build the url to access the images stored in server from Web Dynpro. I have created http alias for the images folder in the server. I need to build the url like  <http>://<hostname>:<port>/<image alias name>/***.jpg  to access the images from server.
Pls also share any other suggestions to access the images from the sever thru web dynpro
Thanks in Advance.
Regards
Vasudevan

Hi friends.
I have used the last post, but it is not working.
Mat be the API had changed.
What class or interface could give me this data in web dynpro component?
Too, I'm using the SAP NetWeaver Developer Studio
Version: 2.0.16
Build id: 200602130353
Thank you.
Manuel Loayza
Living La Vida JAVA
Edited by: Manuel  Loayza Gahona on Jul 23, 2008 6:54 PM

Similar Messages

  • Change portal URL and port number

    Hello experts,
    We are on  EP 7.0 which is running on Solaris 5.10 and Oracle 10g.
    Portal url is "http://hostname:50200/irj".
    But we want to users to logon portal using "http://intranet" link.
    How can we forwards portal default url to  a different URL and port such as "http://intranet".
    Steps should be followed in Visual Admin& Config Tool or  in the Solaris system , in the network part?

    The link pointed to how to change the default page of the Java engine to launch the portal. The example redirects to /irj/portal/anonymous - you just want to make it /irj/portal...
    Setting up SAP Web Dispatcher is covered in SDN quite well - search for SAP Web Dispatcher in the search aree on the right. Basically it takes about 5 minutes to setup.
    Cheers

  • Getting WLS host url and port number

    Hello Experts,
    I need to forward an authenticated request to JAAS LoginModule. How can I get wls host name and port numbe in the LoginModule?
    Thank you in advance,
    Thanks for reading my post

    Hi friends.
    I have used the last post, but it is not working.
    Mat be the API had changed.
    What class or interface could give me this data in web dynpro component?
    Too, I'm using the SAP NetWeaver Developer Studio
    Version: 2.0.16
    Build id: 200602130353
    Thank you.
    Manuel Loayza
    Living La Vida JAVA
    Edited by: Manuel  Loayza Gahona on Jul 23, 2008 6:54 PM

  • SDK : how to get the server adress and port ?

    Almost everything is in the title, I'm look for code to get the server URL and port where the ME is running ;o)
    There should be some standard API I guess.
    Thanks
    Regards

    Hi,
    In the code that I write I usually have access to the HTTP Request Object.
    String serverName = request.getServerName();
    String serverPort = request.getServerPort();
    Then I just do a compare on the returned value to see if I am on our Test or Production server.
    if(request.getServerName().indexOf("prodservername") >= 0)
      // PRODUCTION CODE HERE
    else
      // TEST CODE HERE
    Hope this helps,
    Mike

  • Get current HTML URL into flash with LoadVars and ColdFusion

    I need to get the current page url and pass it into flash.
    I'm also using ColdFusion. Is there an easy solution?

    I gave up on bringing in the URL and parse it into a string,
    there is too much I don't understand. I put in two commands in the
    HTML where the Flash movie is sitting:
    1. <param name="FlashVars" value="airport=sbn"/>
    2. and in <embed src I put in, Flashvars="airport=sbn"
    "airport" is the variable in Flash (it is called as
    "_level0.airport" in the Flash file) and "sbn" is the variable
    definition for 12 of the files. I will just find "sbn" and replace
    it with the new airport name in the next set. It's not very slick,
    but it's better than having to create a new navigation for every
    airport. Thanks for the help.

  • Getting the Portal URL in the code

    Hi All,
    Is it possible to get the URL of the Enterprise Portal (http://<host>:<port>/irj/portal) in the web dynpro code?
    Actaully i am sending mails from my application to various users and need to include the URL of the Enterprise Portal in the mail.
    How to go with this? Any ideas?
    Thanks,
    Venkat

    Hi,
    If you build the mail message from your dynpro application than you can use this code to get the server name and port:
    String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
    int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
    String url = "http://" + hostName + ":" + port + "/irj/portal";
    Hope it helps,
    Roy

  • How to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input

    Hi all,
    I need your help how to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input.
    in my query info object is 0CALQUARTER and variable is ZFIS_QTR.
    in 0CALQUARTER fiscal quarter stored in 201301,201302,201303,201304 and 201401 format, for current fiscal quarter 201401 and (current fiscal quarter - 1 ) would be 201304.
    please replay ASAP to deliver the report to client.
    thanks in advance.
    -- Rakesh Nagpure

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • Getting the portal URL?

    If I want to redirect the browser to the portal URL, how do I do it? Is there an API to get the Portal URL?
    Thanks
    Mani

    You can use PostbackURL object.
    Regards
    Tarun

  • How to get the Host name and port number

    Hi all,
    I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
    Regards,
    Vinoth

    Hi Kanagaraja,
    My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
    Thanks for your reply.
    -Vinoth

  • How to get running application host and port?

    How can I get the host name and the port number of the currently running application?
    http://<host>:port/<context root>/faces/<page>
    Thanks,
    Mitesh.

    FacesContext.getCurrentInstance().getExternalContext().getRequest().getRemoteHost()
    FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath()
    FacesContext fctx = FacesContext.getCurrentInstance();
    HttpServletRequest rq = (HttpServletRequest)fctx.getExternalContext().getRequest();
    rq.getServerPort()

  • URL and PORT for SOAP SENDER request

    Hi
    according to SAP doc the URL to SOAP SENDER request is:
    http://IP:PORT/XISOAPAdapter/MessageServlet?channel=:SERVICE:SOAPCOMMCHANNEL
    Where do I find the IP and the PORT to use?
    br

    Hi,
    The IP is of your XI System.
    PORT number depends on the instance number. Usually it is 00 for default instance (then port no will be 8000). click on propose URL and you will get it.
    Also you can go to SMICM transaction in your XI system and choose Goto-> HTTPS Server->Display data to get the port no.
    Regards,
    Jitender

  • Get current portal user password?

    Is it possible to get the current portal user's password? If so, I need the pl/sql api to accomplish this.

    Hi there,
    I was looking for the same thing but as I understood it is saved in a HASH format and their is NO way to decrypt it.
    The thing I do now is storing the password in a selfmade table besides the SSO tables for administrative use.
    Greets
    cumQuat
    Dave Ruzius

  • How to get a portal URL from backend system?

    hi guys,
    I'm facing an issue regarding portal-ECC integration I can't proceed with, pls help
    we have an ECC linked to ERP portal and have to send email to users from ECC workflow with a link (URL) to portal .. is it somehow possible to get this link or shall I maintain the link in each system manually?
    thanks
    Juraj

    Hi Juraj,
    I think this link may be what you are looking for:
    URL Navigation - Portal - SAP Library
    The main part:
    The regular URL for launching the portal is http://portalserver/irj/portal . To implement URL navigation:
    From the Portal Catalog, select the page as it appears within the roles hierarchy with which you want to launch the portal.
    From the Quick Info pane below the Portal Catalog, copy the name of the page (PCD URL value) and save it in a text editor, replacing the string PCD: with ROLES:// .
    Open your browser and add the following string to the default portal URL:?NavigationTarget =<value saved in text editor >
    Save the new URL, which you can then use to launch your portal.
    BR,
    Etay

  • Question about "Get Web Drawing URL and Page Name From" for Visio Web Access

    I am trying to get both the web drawing URL and the page name from a list through Share Point Designer 2013, but it doesn´t work.
    It looks fine when a do the web part connection wizard. I select from which columns to get the URL and the page name. But on the final web part page nothing happens. It just shows the URL that is selected in the Visio Web Access Web part. I had hoped that
    that value should be overrided by the SPD-settings.
    I have googled for hours..

    Hello,
    I have now saved the Visio-file in .vdw-format, but it says Visio 2010 Web Drawing (*.vdw). Is there a .vdw-format for 2013? Isn´t that the .vsdx-format?
    Still doesn´t work with the .vdw-format, but maybe I am doing something wrong.
    Any ideas?

  • How does BR get current date, user, and associate member with Attribute Dim

    I need use Business rules or Calc script to implement following functions:
    1. Get current date and the name of user who is running the BR and save the information to cube.
    I don't find any functions to get current date and users.
    Also, since text and date is store in relational database and essbase cube only stores the index, it looks that the value can't be changed or stored by using "==" directly, is there any function to change value of members with Text or Date types in BR/Calc script?
    2. End users select attribute value (via smart list) of products or projects(Sparse dimensions) in data form, run BR to update the association of these members with attribute dimension.
    I don't find any functions to change the attribute association in BR/Calc, is there any CDF (Custom Defined Function) that can do it?
    Thanks!

    Hi,
    For the date functionality, check out the post below.
    Re: Days behaviour between two dates
    As for the username, there is a little tricky way that requires an unused or a new dimension along with a smart list of user names. It's also possible to capture the user name from the cookies and pass it on to the form. The latter is possible through validatedata.js however requires hefty coding here and there.
    As for the attributes, it's not possible to update metadata through business rule. So no luck in there.
    Cheers,
    Alp

Maybe you are looking for

  • Toggle Full Keyboard Access is Not Working after Shutdown/Reboot

    Hi, I'm yet another keyboard maniac and somehow as above subject was keep re-occured every time after enabled it, I've turn it on full keyboard access in system preferences > Keyboard > Keyboard Shortcuts. All seemed to be good before I shutdown or r

  • Is it possible to upgrade the ram and hard drive on the new retina after purchase ?

    hi i was wondering if it was possible to upgrade my macbook pro retina display to a bigger ram and hard drive or will i be stuck with 8 gb of ram and 256 gb hard drive?

  • How to use external Microphone in Logic pro 8?

    I am trying to use a condenser mic with interface (blue iclcle USB) and all I am getting is the internal mic. Does anyone know how to change this? Thanks L

  • Loss of support due to addition of views?

    I'm working with a contractor who is hosting CM 13 and I need a view created for several reports. Their admin refuses to do anything because he's afraid they will lose support. Does anyone know which database modifications/additions will cause you to

  • Another User with HND Problems

    I've just installed my WRT610N router today and used LELA for setup.  When I went to set up HND I installed Network Magic as I found in instructions on the Linksys web site.  I was able to do the initial setup of HND, however, when I went in latter t