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

Similar Messages

  • 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

  • Trying to test the Collaboration portal url using the below option in SICF but it is only pulling a blank screen

    Hi All,
    Am trying to test the Collaboration portal url using the below option in SICF but it is only pulling a blank screen.
    The path in SICF is  : /sap/bc/ui5_ui5/tmui/coll_portal
    The webpage does not reflect any error except a blank screen.
    Is there any basis side or TM side configuration that needs to be done to have data displayed on that webpage?
    Appreciate quick reply.
    Thanks.
    Sat

    Hi Jan,
    Now am getting this error :
    Gateway service /SCMTMS/USER not active
    From the security guide I found a handful of services to be activated :
    The following services are required if you intend to use the SAP TM Collaboration Portal:

    /sap/public/bc/ur/

    /sap/public/bc/icf/logoff

    /sap/public/bc/UI2/

    /sap/bc/ui2/startup

    /sap/opu/odata/SCMTMS/TENDERING/

    /sap/opu/odata/SCMTMS/USER/

    /sap/opu/odata/SCMTMS/GENERAL/

    /sap/opu/odata/SCMTMS/EVENT_NOT/

    /sap/opu/odata/SCMTMS/INVOICE_SUBMISSION

    /sap/opu/odata/SCMTMS/FRT_PROCUREMENT

    /sap/opu/odata/SCMTMS/INVOICING

    /sap/bc/ui5_ui5/tmui/coll_portal/
    But in my system, in SICF only this path is present /sap/opu/odata.
    /SCMTMS onwards is missing, so am not able to activate these bunch of services which ideally should be present in the system. Hence am thinking to open a ticket with SAP for the same.
    What you suggest?
    Regards,
    Sat

  • The portal url appears in external links in XML Forms

    Hi,
    I have created an XML Forms application that should contain a link to an external webpage.
    In the Edit view I have created 2 text fields.
    1 for the url and 1 urlname for the name of the link.
    In the Show view I have created a link (Lable)  with:
    Hyperlink property:        /DataSchema/DataModel/url
    Schema Reference:          /DataSchema/DataModel/urlName     
    Style :              Function Link
    When I run the application It renders the link as a link with the urlname as the name of the link.
    Great !! ;0)
    <b>...but</b> when clicking on the link it open up a new window with the <b><b><b>portal URL</b> + the specified url:</b></b>
    E.g.
    Test data:
    Name:     Google
    URL:     http://www.google.com
    Result:
    <b>http://<portalurl>:58000/irj/portal/http://www.google.com</b>
    Why does this happen? And what can I do in order to open up the new window with just the url that I have provided (http://www.google.com)
    Thanks for any help !
    Best regards
    Rasmus

    Hi All and thanks for all help
    But..
    The thing is that it has nothing to do with the application.
    E.g. I have tested the <b>SAP_APP_FAQs</b> forms application delivered by SAP.
    This forms application has an external link called <b>Read more… </b>When I test this forms application everything is OK. It opens up the target URL in a new window e.g. <b>http://www.google.com</b>
    This is exactly what I want so I make a copy (save as) of the project. I run the application and believe it or not I got the wrong result: <b>http://<portalurl>:58000/irj/portal/http://www.google.com</b>
    I have not made any changes of the application!!
    Can any tell me what’s wrong?
    Thanks in advance
    Best regards
    Rasmus

  • How to pass username and password with the portal url

    i want to access portal from my web site. i have created username and password fields in my web page. when submited , my portal page should open. so how to pass username and password with the portal url.

    This is not straightforward; but it is doable.
    First tell us about your portal version; portal 10.1.4 has a slightly different method of doing it and the pre-10g portals were completely different animals.
    And if you are in AS Rel 2, then the most important document for you would probably be the following:
    [Creating Deployment Specific Pages| http://download-west.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/custom.htm#i1015535]
    You might want to use it in conjunction with some metalink notes about your portal version and such a login page.
    hope that helps!
    AMN

  • I am not getting the Portal Content inside the System Landscape

    Hi,
    I am not getting the Portal Content inside the System Administrations-> System Configuration->System Landscape. This is not visible. I am SAP NetWeaver 7.0.
    What could be the possible reasons?
    Regards
    Kaushik Banerjee

    Kaushik,
    do you have the full tree in Contentadmin? do you have no entry in the systemadmin? or is it just empty in the lower nodes? this would be normal, you don't see the content in systemadmin, just the defined systems.
    kr, achim

  • 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

  • I want the phone version of my site to use the same url as the desktop version. How can I do this without the "phone" extension in the url?

    How do I get the phone version of my site to use the same url as the desktop version -- without the "phone" extension.  when someone posted a link to my site, they posted it from their phone and it included /phone. Now when people click on it - - it goes straight to the phone version of the site.

    Please refer to similar post here :
    https://forums.adobe.com/thread/1577934?sr=inbox
    Thanks,
    Sanjit

  • HT1677 In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Configuring the Destination URL for the Adobe Document Services

    hi all,
    I am going through the documentation for "Configuring the Destination URL for the Adobe Document Services " at :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/560f41ca73d349e10000000a1550b0/frameset.htm
    I am not able to understand 7th step
    <b>7.      Define the user name and password. To find out how to create the user name and password for the Adobe document services, see Creating a User for Basic Authentication in the document Adobe Document Services – Configuration Guide. You can find this guide in the SAP Service Marketplace under Quick Link /InstguidesNW04.</b>
    In our scenario
    <i>We are running NW04s SP11 on 2 machines
    1) <u>32-bit machine with ADS and credentials properly configured on Web AS for Java installation</u>
    <b>com.adobe  AdobeDocumentServices  null (710.20061024154505.342190)
    com.adobe  AdobeDocumentServicesEjbClientLibrary  null (705.20060407121920.289077)
    sap.com  SAP-JEE  7.00 SP11 (1000.7.00.11.0.20070201154700) 
    sap.com  SAP-JEECOR  7.00 SP11 (1000.7.00.11.0.20070201154700)
    com.adobe  DocumentServicesBinaries2  null (710.20060629085312.115621) 
    com.adobe  DocumentServicesConfiguration  null (710.20061024154505.342190) 
    com.adobe  DocumentServicesDestProtoService  null (710.20060821084105.325745) 
    com.adobe  DocumentServicesLibrary  null (710.20060629090137.115621) 
    com.adobe  DocumentServicesLicenseDatabase  null (705.20051005114147.242570) 
    com.adobe  DocumentServicesLicenseManager  null (710.20060929113452.336248) 
    com.adobe  DocumentServicesLicenseService  null (710.20060929113452.336248) 
    com.adobe  DocumentServicesLicenseSupportService  null (710.20060929113641.336248)
    </b>
    2) <u>64-bit machine with portal installation on Web AS for Java, with ESS and MSS</u>
    <b>sap.com/SAP-JEECOR  7.00 SP11 (1000.7.00.11.0.20070201154700)  20070308153304 
    sap.com/SAP-JEE  7.00 SP11 (1000.7.00.11.0.20070201154700)  20070308153213 
    sap.com  SAP_ESS  600 SP7 (1000.600.0.7.12.20070314050106)
    sap.com  SAP_MSS  600 SP7 (1000.600.0.7.4.20070321052655)
    sap.com  tc/wd/webdynpro  null (7.0009.20060804145649.0000) </b>
    </i>
    Why do we have to create a new user for the server which is consuming the web service? We already have an user "ADSUser" defined for the Web AS server which has ADS services deployed.
    I have opened this thread to solve the previous unanswered question I posted on SDN Empty area in place of Interactive form. .
    One more thing the adobe print forms of ESS [Total Compensation Statement and Salary Statement] are rendering properly, only the ones with Interactive ability or not.
    thanks,
    Sanketh

    Hello Sanketh,
    1. To access the NW04s configuration guide,
        - Go to https://service.sap.com/adobe
        - On the left frame (tree), under Adobe > Media Library > Documentation
        - On the right had pane you will find the link to the NW04s Configuration guide
    2. The link that you have mentioned below details the steps required to be carried out on the client machine that consumes the Adobe Document Services. In our case that is the j2ee engine on which your Web Dynpro application is running. It could be the same physical machine with two different j2ee instances hosting Web Dynpro and ADS or it could be two different physical machine or a single machine having a single instance of j2ee engine hosting both the Web Dynpro and the ADS.
    You do not have to create a separate username and a password on the consuming machine but you need to configure the Web Service client proxy to point to the ADS (maybe hosted on a different machine) with the username and the password created on the ADS server. As you have mentioned, you have already created such an user on the ADS (ADSUser). This user authentication on the client machine (consuming server - Web Dynpro) would be required at the runtime by the j2ee engine to authenticate itself with the ADS.
    Best Regards,
    Krish

  • How to make the new tabs to open the same URL as the startup page?

    Hello!
    I was wondering if it's possible to configure the Firefox in such a way that the new tabs open exactly the same URL that is typed in the Options. I tried to set browser.newtab.url to about:home but it gives me Firefox Google custom page instead of the startup page that I've set in the Options. Another way I tried is to set the browser.newtab.url value in about:config to the same URL as the startup page URL, but then if I change the URL in the options the new tab URL is not changed. So the question is whether it's possible to make the Firefox read the URL that is used for the startup page and go there when opening a new tab.

    You can use a addon or about:config
    <h2>Addon</h2>
    * https://addons.mozilla.org/en-us/firefox/addon/new-tab-homepage/‎
    <h2>About:config</h2>
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    # Enter '''browser.newtab.url''', double click the result.
    # A new window should now show, enter your homepage url in the box, then hit ok.
    # Open a new tab, does it work.
    If prefs arent saved you need to read the [[How to fix preferences that won't save]] article.

  • How do I open a duplicate tab or window that points to the same URL as the current tab?

    In earlier versions of browsers, not necessarily Firefox, it used to be possible to launch a new tab or window with the same URL as the current window. I can't find a way to do this in Firefox. It always opens new windows with no URL specified.

    Hold down the control key, then drag the tab that you want to duplicate onto the tab bar.

  • After the login, the portal displays again the login page

    Hi,
    After Portal Installation the login doesn´t work. The following occurs:
    After the login, the portal displays again the login page with its input fields empty.
    Thus, I can´t to login on the Portal!
    Thanks

    Ricardo: are you accessing Portal using a IP address ? or a domain ?
    When I tried access by IP adress had a similar problem.
    perhaps....
    saludos.
    Leandro

  • Identifying the Portals based on the URL's

    HI All,
    We are planning to integrate Enterprise Portal with Site minder.
    There are two kinds of Portal users 1.Citizens 2. Doctors
    Idea is when citizen logs in siteminder direacts a URL based on this URL he'will be abel to see Citizen desktop.
    similerly when Doctor Logs in to siteminder he will be directed to another URL and Doctor Desktop.
    Question is:
    is it possible to point out different portal desktops based on the different URL's in siteminder. if so how can we acchive this?
    Regards,
    Manohar

    Hi Haydn,
    Thanks for your quick replay,
    can we implement this practically if so how can we do that.
    where can i map a URL and a Master display rule.
    so i need two display rules for each one i have to set a URL alias, can we do this if so how can we do this.
    Regards,
    Manohar

  • Domain mapping for the portal URL | URGENT

    Hi ,
      The project is expected to go live in 10 days .The user would be accessing the portal with the URL http://domain.company.com and <b>NOT</b> by http://domain:50000/irj/portal . I need to figure out how can we do that .
    We have a WAN network and a public ip has been assigned to the portal production server .We have a company domain reserved to be used for portal server .
    What will be required to be done on the portal side or anywhere else for the URL http://domain.company.com to translate to http://domain:50000/irj/portal
    Regards
    Deepak Singh

    Hi Deepak,
    You can achieve this by setting up Reverse Proxy in your DMZ such that all internet request hit the reverse proxy server and that re-routes request to your Portal server.
    If you want to avoid all these, you can use Html Redirection or Java Script redirection features.
    a. Point your request https://abc.comp.com to this html file which would inturn redirect to abc.comp.com:50001/irj/portal.
    Also refer my links in this thread
    Opening EP6.0 access from the Internet
    Hope this helps
    Regards,
    venkat.
    [Pls reward points if useful]

Maybe you are looking for

  • I only ever activated one license for cs5 mac. Stuck using PC now. Help please.

    Now I'm using a Wacom companion, and forced to operate windows on it. Isn't there something I can do or someone I can talk to in order to gain access on both operating systems?

  • Getting AIM on my Touch

    Is there currently anyway that I can send and recieve instant messages from my iTouch using AIM?

  • Can I have a slider impact a timeline just at one point?

    I am using AE CS6, on an HP 820z, Win 7. I would like to have a series of layer objects follow different paths to an end point where they line up horizontally curving back in space on the sides. Here is a small example: But at the end point, I'd like

  • Javascript : Object Expected error.

    Hi, I have used a javascript in my sharepoint portal. Whenever I open the page in IE, it shows me "Object Expected" error at Line:1 Char:1. Here is the code snippet that I have used: $(document).ready(function() {  // Create an array of unique user i

  • Windows Vista - Macbook is not compatible?

    I am interested in running Windows Vista via Boot Camp for the core fact that I want to run EverQuest on it. I have a 700 MHZ Computer with 512 MB and a 128 MB Video Card running it just fine, so I dont think it will be a problem. But on this website