Portal URL in mail template

Hello,
We are using SAP Enterprise Portal for doing a Single sign on to E-Sourcing 5.1.
When users receive email notifications from the standard mail message templates - the host and port name are from the cluster.
But in our scenario - we want the same document url to be the portal url which then redirects users to the actual E-Sourcing page after signing into portal.
To me it seems to be a very common requirement when using SAP EP to SSO with E-Sourcing.
Can someone guide us on how this can be accomplished?
Regards,
Srivatsan

Thanks Vikram for your comments.
You asked us to raise an OSS message  - Do you think SAP has a solution to this in 5.1? We are currently on SP10.
In the meantime - we developed a small application in portal which redirects the user from portal to the specific mail token %document_url% or document_header_url.
So, basically in the mail message template- we tried adding the path
http://<portalhostname>:<portalport>/irj/servlet/prt/portal/prtroot/RedirectApp.redirectApp?redirectURL=%DOCUMENT_URL%
Now - when the user gets the mail and clicks the link - he is made to login first to portal and then it attempts to redirect to the document. But it somehow ends up taking the user to workbench. In the workbench, when we hit a back button - it takes us to the document (MA or Contract as the case may be).
We are trying to troubleshoot this. But looks like during SSO - irrespective of the URL  (%DOCUMENT_URL%) - portal only takes us first to workbench.
We want to avoid taking user to workbench and want to directly take the user to the document, since we would lose a key functionality just because we switched to having SSO with portal.
Regards,
Srivatsan

Similar Messages

  • Sourcing 7.0: Email Link in Mail templates when implementing Single Sign on

    Hello,
    We are implementing Sourcing 7.0 SP02 On premise.
    We are in the processing of setting up the single sign on with Enterprise Portal.
    In E-Sourcing 5.1 - when we implement single sign on with portal - the mail links in the mail templates have to be replaced with the portal URL and also - in order to redirect the user from portal login to the correct object in E-Sourcing (contract/MA/RFX) - we had implemented a custom portal solution (par file) to redirect the user.
    So when the user clicks on the link in the mail - it will take the user to Enterprise portal login. Once the login is done - user will be redirected to the E-Sourcing object like RFX/MA which the token %DOCUMENT_URL% contains.
    I wanted to check if there is any standard solution to this issue in Sourcing 7.0 on p

    Hi Vikram, Thanks a lot for your reply. I got a release note 1485253 that explains that this is resolved. Please find the text below
    2011/0000612672
    In user emails, %DOCUMENT_URL% token is used to generate the document
    specific URL. This URL takes the user directly to the document. However,
    when Sourcing is integrated with SAP Portal, using only this token will not
    take the user to the document. In order to fix this, ENCODE function has
    been introduced. Wrapping this around the URL, the URL can be encoded and
    used as a "forcedURL" in the portal link.
    Would you be able to explain to me how this can be achieved through configuration? I tried now with a portal user of Sourcing and the link was still showing up as the old link. Is this forcedURL generated using a system property?
    Regards,
    Srivatsan

  • Link in GP e-mail template

    Hi,
    I want to add the current task link in e-mail template. I am able to retrieve the link by sy.workitemurl, but the link is coming as plain text and not a link/url. On using href- it does not seem to convert the sy.workitemurl into its value. Can anybody point me out the correct syntax for writing the same?
    Thanks

    Hi Swaralipi!
    From my understading you could try specifying something like the following in the template:
    <a href="`{ write(sy.workitemurl); `} ">My Link</a>
    I tested this here and the the resulting email which was sent to me presented me a link which pointed to:
    http://<host>:<port>/irj/portal?NavigationTarget=ROLES://portal_content/com.sap.pct/platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance&DynamicParameter=processId=13a39&taskId=%7d
    So I think that specifying this way, you'll reach your goal without facing the issue as you stated.
    Hope this helps!
    Best regards,
    Armando Zaro

  • How to create an External Alias for a Portal URL ?

    Hi Gurus,
    Can anybody tell me how to create an external alias for a portal link(URL). Actually, my problem is i want to send this Portal URL(link) thru' a SendMail step to the user so that when he clicks on it, it will take him to his UWL(Ofcourse after signing-in). As this URL length is > 80 char(101 char), i am not getting the full lenght URL in my Outlook mail. THough we are on ECC 6.0,Basis Rel 7.0, as per the OSS note 559234, we should have this length extended to 132 bytes. But, for some reason, its not happening. And,in the same OSS note, it was mentioned that we can use external aliases to achieve this(shortening the URL length).
    Can anybody tell me how to achieve this, either thru' increasing the URL length or thru' ext. aliases.
    Please reply asap.
    Thanks in advance
    venu

    Not an issue as of now. I'll open up again if needed

  • 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 create link to a particular URL in mail

    Hi All,
    I am trying to create link in mail body that should point to particular url,
    I tried below code:
    link("View Document","%Document_URL%")
    but its not working.
    Please suggest.
    Thanks,
    Saloni

    Hi
    What I understand of your requirement is that you want to send an e mail to the supplier when a contract doc is moved to supplier draft phase. The content of the mail should contain Click Here: ContractDoc_URL statement wherein ContractDoc_URL is URL to contract document in supplier draft phase.
    As rightly pointed out by Vikram there is already a mail template Version Shared With Supplier defined for it. There is a token %CONTRACTDOC_URL% which returns the contract link. You can duplicate and modify the content of the e mail as per your requirement. Follow the following steps after that
    1. go to Set Up->System Set Up-> Configuration-> Mail Configuration
    2. Search for mail type Contract Document Share With Supplier
    3.Select the modified mail template.
    4. GO to go to Set Up->Document Set Up-> Contract Document-> Contract Document Type
    5. Open the contract document type used
    6. In contract document notifications, set Version Shared with Supplier to Alerts and Notifications
    Regards
    Mudit Saini
    Edited by: Mudit_UCB on Oct 19, 2011 9:04 AM

  • Text Format in Mail Templates

    Hi Experts,
    I have a requirement , wherein I need to make certain word in my custom mail template( palin text) as bold or underline( or both) , I tried Mail template Macros FORMAT for this but it didnt work , If anyone knows how can we achieve this please share.
    regards,
    VIshal Goel

    Hi Vishal,
    Please try below format, so that it may work.
    FORMAT("b", "Title:") %TOKEN1%
    FORMAT("b", "Posted By:") %TOKEN2%
    LINK("View Full Message", "%LINK123%")
    The above mentioned will work only when HTML Mail option is selected on the user account level under Account properties.
    Please let me know if the issue still exists.
    Also Please go through the below link, it will be useful for you.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001d645f-008f-3010-7b8f-e7935e46733a?overridelayout=true
    Thanks,
    Raj.

  • How to Hide user & pass in PORTAL URL

    Hi Experts,
    I need a help on portal URL. We are using SSA (Spend Analytics) in Portal. One of the option in portal is that you can generate an E-mail Link of a report which goes to users.
    Link looks like this for end user (They receive it via E-Mail)
    http://Host:Port/irj/servlet/prt/portal/prtrootxapps.analytics.ds_par.inbounds?guid=CC1E61FF_7B3F_45CB_A3BE_B00F6BD487B7&objType=REPO&objId=0DA4575B_3C28_E6D8_66C5_04008115C625
    Users should be able to view this link as soon as they click on it. If a user is already logged into portal and copy and paste the link, it works fine. However, if a user is not logged in and copy and past this link to IE, It automatically changes URL to something else and shows user & password
    This is how it looks like. URL changes to the following link..
    http://HOST:PORT/irj/portal?j_user=XYZ_USER&j_password=XYZ_PASS&submit_logon=true
    So I'm not sure what is making portal to redirecting the link to (http://HOST:PORT/irj/portal?j_user=XYZ_USER&j_password=XYZ_PASS&submit_logon=true) when they enter generated link (http://Host:Port/irj/servlet/prt/portal/prtrootxapps.analytics.ds_par.inbounds?guid=CC1E61FF_7B3F_45CB_A3BE_B00F6BD487B7&objType=REPO&objId=0DA4575B_3C28_E6D8_66C5_04008115C625) and why is it showing user/pass and from where is it picking user & password.
    I kindly request all experts to please help me in this. I want to hide users/pass and make sure the link works fine without getting redirected it.
    Your help is much appreciated
    Thanks in Advance!!
    Afi

    i don't understand!
    i need to create a userid parameter on this configuration file frmweb.cfg
    [myconfig]
    userid=
    host=
    port=
    por example
    {myconfig]
    # System parameter: default base HTML file
    baseHTML=base.htm
    # System parameter: base HTML file for use with JInitiator client
    baseHTMLjinitiator=basejpi.htm
    # System parameter: base HTML file for use with Sun's Java Plug-In
    baseHTMLjpi=basejpi.htm
    # System parameter: delimiter for parameters in the base HTML files
    HTMLdelimiter=%
    userid= what can i write here?
    host = ??????????
    on this sistem too many user acces theses report
    and how can i call report to use this parameter?
    sorry because my english is not good
    saludos desde panama

  • URL in Mail not opening

    Hi All,
    We have a workflow that sends notification mails in which portal URL is included. We used Container Operation to pass the URL link into a workflow container element and giving that as below in mail body:
    <A HREF="&URL&">Link</A>
    When we are clicking on that Link from mail, Error Report is coming with message: 404   Not Found.
    The problem is the last characters of the URL are being converted as capitals. Can somebody tell me why it is happenng so? Please suggest.
    Edited by: Srinivas Kalluri on Feb 24, 2011 2:42 PM

    Hello Srinivas !
              Are you using CFX_HYPERLINK as ABAP data dictionary data type ?
             Let's assume that the created workflow and task container name is URL.
            Then coding should be as follows :
            <A HREF="HTTP://&URL&">
            &URL&
            </A>
              Please check whether the import and export parameters checked at containers and bindings.
    Regards,
    S.Suresh

  • Retrieve portal url dynamically.

    Hi,
    Could anybody pls let us know how to identify the portal Url dynamically using a function module or SAP Table?
    We want to put this URL in the notification e-mail so it is dynamic when the object is moved to Quality and production systems.
    Thanks in advance.

    One way to make Portal URL dynamic is to create a ztable with fields ABAP system id and portal URL.
    Select Portal URL from this table based on the sy-sysid.
    By this way you dont have to change your code. Just change table entry on each server.
    Hope this helps!
    Monalisa

  • Is there any way, to create with Adobe Muse HTML-Mail Templates?

    Is there any way, to create with Adobe Muse HTML-Mail Templates? or to convert the createt page to only html content? any other tool like an website copyer?
    tanks for help!

    Off the top of my head, you should be able to create mail templates in muse BUT it will require  very basic html/css knowledge on your part. I am assuming you want to do just the signature?
    Create the design you would like on one page, dont do any kind of styling in a master page. Then export the site into a folder. Open the html file with notepad/ textedit and then copy just the code for JUST the template. Throw it in you mail app of choice and it should work.
    This seems like something that would be done alot quicker in dreamweaver in design view.
    PLEASE NOTE: ^i could be completely wrong - but in theory this may work.

  • How to catch URL parameter from Portal URL in Web Dynpro iView

    Hi All,
    I have a web dynpro application running as a portal iView successfully. Now the client wants to make it internationalized with 7 languages. Currently they access the portal - and via role assignment they get to the portal tab with the wd iView. Now they want to send a parameter for the language key with the portal URL. So when they are typing in http://myportal.mydomain.com now they want to type in http://myportal.mydomain.com?sap-locale=de or so. My question is how can I catch this parameter in the WD application when it is running inside a portal iView? Is it at all possible?
    I have written a very small application which is trying to catch a URL parameter named PARAM. The code I have written is the default one as below:
    String paramValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PARAM");
    When I run the application standalone and add the PARAM=something in last of the URL I can catch it. But when I create an iView and while previewing it I add the same PARAM value it is coming as null all the time. Same when I add this iView to a role and show it via role assignment in protal. Please help to let me know how to achieve this. I think if I can read the parameter value from Portal URL in the WD iView - then I can set it as the default locale of the application and then show language specific file to achieve internationalization.
    Your urgent help will be highly appreciated.
    Warm Regards,
    Shubho

    Hi Shubhadip
    Even if you get the parameters, how do you internationalize your application? Are you not following the standard way as described in the following link. In this case you never need to capture any such parameter. This is done by the WD runtime automatically .
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm">Internationalization of WD projects</a>
    You can retrieve application parameters specified at the creation of iview by "adding parameters(with the same name as in iview application parameters) to the default plug of the Component Interface View of the WD application". "onDefaultPlug" method of the interface view controller you get these values as parameters, which you can save in the context node of component controller for later use.This is guaranteed to work.
    But again this is not what you want exactly. You want the user to specify the value at runtime. If you have just 7 languages, you can create 7 set of iviews with different application parameter value indicating language key, and assign to 7 different set of roles, each representing one set of users with common language.
    I hope you find a solution.
    Regards
    kk

  • SSO is not working for an Alias URL but is working for original portal URL

    Hello,
    We have a BSP running inside the portal and expects authentication.
    When I run this BSP using the portal regular address everything is working OK and SSO is working after logging into the portal.
    At next step, we have configured an alias for the portal URL at the DNS Server.
    When activating the BSP from the alias URL it asks for 2nd authentication. Meaning, SSO is not working after logging into the portal.
    I have activated an HTTP trace in order to see why and it seems like when running it from the alias name it recognizes it as a different domain and I assume this is why the authentication is coming up.
    I would like to suppress this for the alias URL but don't know how.
    I found this UME property on the server:ume.logon.security.relax_domain.level
    This UME property controls the amount of sub domains to remove from the server name to obtain the domain for which the logon ticket is valid.
    I have changed this property from its default value 1 to 3 (and restarted the server of course) which, in our case, leaves only ourCompany.com for the ticket in the original server URL. Yet, the authentication pop up is still not supressed when browsing through the alias URL.
    Any idea what can I do next?
    Thanks,
    Roy

    Hi Dezso,
    I found the 401 let me know if I look on it right:
    I have an entry node with two subnodes: request and response.
    The response has:
    <responseStatus>HTTP/1.1 401 Unauthorized</responseStatus>
    And the request before that doesn't have any MYSAPSSO2 in it, all it has which is related to cookies is this:
    <header name="Cookie">UserUniqueIdentifier=1174345919524; alreadyLogged=1179560552416</header>
    <cookies>
    <cookie name="alreadyLogged">1179560552416</cookie>
    <cookie name="UserUniqueIdentifier">1174345919524</cookie>
    </cookies>
    Can you advice what to do next?

  • Mail Templates in multiple Languages

    Hello,
    We are in Sourcing 7.0 SP02.
    We have a language pack for languages like German, Spanish installed in our system.
    But the mail messages for the users logging in those languages are still sent in English. Only some content like the footer/header are in local language since they are localized resources and they have language specific content. But the main mail message is in English. To give you an example: The workflow approval request message thats sent to a Spanish user looks like below:
    Subject: Solicitud: Approval: Category Project: 123
    Estimado test,
    This message is to inform you of an approval request for the following: Category Project, 123
    Approval Request: Submitted
    Start Date: 31/01/2012 16:20
    Document Owner: test user 1
    Instruction:
    To view this document and complete the requested approval task, please click on the link:  http://hostname:port/fsbuyer/projects/projects_header,-2147483148:1100?rqaction=load&allow_redirect=true&hook=projectUIRQHook
    No responda este mensaje. Si tiene alguna consulta o dificultad al utilizar esta aplicación, póngase en contacto con el servicio al cliente llamando al %TECH_SUPPORT_PHONE% o por correo electrónico a %TECH_SUPPORT_EMAIL%.
    if you notice - the header, footer and some part of the subject is in Spanish - but the remaining content is in English.
    Are mail templates in multiple langguages not delivered when we install the language pack.
    When I copied a standard mail template and checked it - the content was empty for the other languages that we have installed.
    Are we expected to create our own mail content for the other lanuages that are installed in the system?
    Regards,
    Srivatsan

    Hi,
    you need to reinstall the language packs after the tenant configuration. That should to it.
    Seems to be a bug (feature) in SAP Sourcing.
    /Anita

  • External portal capturing internal portal URL in Log and trace file

    Hi,
    We are facing one issue in portal like we have two portals for internal (Intranet) and external (Internet) users.
    Once users logged in the application and try to get the information about mylink from the external portal link (internet) they should not get any information about the internal portal.
    But in log and trace file we can see the external portal link capturing the internal portal URL.
    We need to find, from where system capturing the internal portal URL.
    Thanks.

    The tkproffed trace file is in seconds.
    "set timing" is in hh:mi:ss.uu format. So 00:00:01.01 is 1.01 seconds.
    You have to remember that most of these measurements are rounded. While your trace file says it contains one second of trace data, you know it's more.
    One excellent resource for trace files is "Optimizing Oracle Performance" by Cary Millsap & Jeff Holt. (http://www.amazon.com/Optimizing-Oracle-Performance-Cary-Millsap/dp/059600527X ) I thought I knew trace files before, but this book brings your knowledge to a whole new level.
    There is also an excellent WP by Cary Millsap ( http://method-r.com/downloads/doc_details/10-for-developers-making-friends-with-the-oracle-database-cary-millsap ) that gives you some insight.

Maybe you are looking for

  • When fonts are packaged, do these fonts only link up to the one InDesign file that was packaged?

    I often work with InDesign client files that are different "versions" of the same file (the only change between these InDesign files maybe be a location name, but the rest of the file is the same (fonts, links, etc). So I'll have an InDesign file nam

  • Transfer to MacBook via Target Disc Mode Get red Circle

    I'm doing a transfer of HD from iBook to my MacBook and I'm seeing that all my folders within my username box all have the red circle with the white minus symbol in the middle. These red circles appear on my iBook's desktop, documents, library, movie

  • Adding a Layer (absolute position div) to a locked page

    Maybe I am just not understanding templates but I have a really simple one that has one editable region called "content". I want to add a absolute positioned div to the content area but DW tells me this would require changing code that is locked by t

  • Webservice error handling Clarification

    Hi all,     We are implementing synchronus web services(proxy to web services) to sync master data with the external systems. Java mapping is used. We get 2  types of errors 1. application and 2. system errors. Can any one suggest the best approch  f

  • Classical Music Track Listings

    Even my ancient monochrome LCD iPod could present scrolling track titles when there were too many characters to display at once. On the iPod Touch (2G), such titles are truncated with an ellipsis (...). This is particularly problematic for classical