CA Service Management

 View Only
  • 1.  Customizing the html code in Notification Template (extern URL)

    Posted Nov 25, 2016 08:00 AM

    Hi,

     

    I want to send an email (from Notification) with an url to another server (sap).

    The url is: "http:sap.server.de:8884/sap/bc/gui/sap/its/zmeldungcall?sap-client=010&ZQMNUM="
    and ends (like in SD) with the SAP ticket number.
    The sap ticketnumber is in @{call_req_id.z_ebene_sap}

    Can anybody help for syntax.

    I want such a statement insert in my template as link:

     

    <a href="http://sap.server.de:8884/sap/bc/gui/sap/its/zmeldungcall?sap-client=010&ZQMNUM=@{call_req_id.z_ebene_sap}" target="_blank">@{call_req_id.z_ebene_sap} </a>

     

    How is the way to concatenate the url with the variable???
    Thank you for help



  • 2.  Re: Customizing the html code in Notification Template (extern URL)

    Posted Nov 27, 2016 02:51 PM

    Hi,

     

    I had the same kind of question. Do you know what this programing language is called please ?

    Anyway, what does @{ } do ?

    If you want to use the value stored in your variable, you have to use it with {{ }} like :

    {{call_req_id.z_ebene_sap}}
    and actually you also have to replace the . by _

    For instance if you want foo.bar value (attribute bar of object foo) you put it like that : {{=foo_bar}}

    Same goes for the request parameters : {{=request_URLPARAMETER0}}

     

    Lambert Rosique.



  • 3.  Re: Customizing the html code in Notification Template (extern URL)
    Best Answer

    Posted Dec 02, 2016 04:27 PM

    Hey boho,

     

    Have you tried adding the same line but using single quotes around the SDM variable? 

     

    like this:

    <a href="http://sap.server.de:8884/sap/bc/gui/sap/its/zmeldungcall?sap-client=010&ZQMNUM='@{call_req_id.z_ebene_sap}'" target="_blank">@{call_req_id.z_ebene_sap} </a>

     

    Let me know if that works.



  • 4.  Re: Customizing the html code in Notification Template (extern URL)

    Posted Dec 03, 2016 04:18 AM

    Hi RichFTB,

    Sorry about the late reply, I had no access to the server.
    I had for an operator like ' + ', or'.' searched, but your proposal and some experiments have solved the problem:
    connect without operator or simple inverted commas -
    that runs.
    <a href="http://sap.sapserver.de:8884/sap/bc/gui/sap/its/zmeldungcall?sap-client=010&ZQMNUM=@{call_req_id.z_ebene_sap}" target="_blank">@{call_req_id.z_ebene_sap}</a>

    Thank you for your help

    boho