cancel
Showing results for 
Search instead for 
Did you mean: 

Message templates, html, http:// not supported?

Former Member
0 Kudos


Hello,

we got

SAP NetWeaver Identity Management 7.2 SP9

IDENTITY CENTER DESIGNTIME 7.2 SP9 patch 7

IDENTITY CENTER RUNTIME 7.2 SP9 patch 5

VIRTUAL DIRECTORY SERVER 7.2 SP9 patch 3

In the admin UI I use register "Message Templates" I create and maintain message templates e.g. for approvals (Template Category: MX_APPROVALS).

And here I use HTML with stylesheets.

While I put following HTML code in

    <tr style="vertical-align: top;">

      <td>URL:</td>

      <td>http://support.sap.com/swdc</td>

    </tr>

the text starting with http:// including the next tag (here </td>) dissappears.

So following insufficient HTML code is left:

    <tr style="vertical-align: top;">

      <td>URL:</td>

      <td>

    </tr>

Similar if I try to add a reference to a link like

All other cases <a href="http://company.appl.net/Home?OpenPage">call COMPANY IT Service Desk</a> / open an incident at <a href="https://serviceportal.company.com/Services.aspx">COMPANY IT Service Desk Portal.</a>

all what is left after saving is:

All other cases <a href="">call COMPANY IT Service Desk</a> / open an incident at <a href="">COMPANY IT Service Desk Portal.</a>

Has anybody seen something similar?

Is there a workaround?

Isn't it supported that I put http:// or https:// to the HTML code of the message template?

with kind regards

Michael Schäfer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

At least SAP came up with a recommendation to encode specific characters that the template parser does not remove parts of the HTML code.

From my understanding it is a work around which can be applied. The slightest it should be stated in documentation ...

There is a way to insert links with http:// or https:// or mailto: in the template.

Before saving/updating template you have to encode the :// or : characters accordingly.

character(s)encoded
:&#x003A;
/&#x002F;
://&#x003A;&#x002F;&#x002F;

Examples:

not encodedencoded
mailto:my.support@mycompany.commailto&#x003A;my.support@mycompany.com
http://support.sap.com/swdchttp&#x003A;&#x002F;&#x002F;support.sap.com/swdc

kind regards

Michael Schäfer

Former Member
0 Kudos

resolved by

1984549 - SAP NetWeaver Identity Management 7.2 SP9 Patches

Designtime Components Patch 13 - Released 2015-03-23

  • SAP Note 2133641 Message templates: html, http:// and mailto: not supported
former_member38077
Participant
0 Kudos

Hi Michael,

do you know by chance whether there is SAP standard way to convert from encoded strings to not encoded strings?

I have got a different requirement. I am getting an XML back that contains lots of x003a or x0020 and so on.

I would like to get rid of these and I am looking for a standard way doing this?!

Any idea?

REgards, Thomas

former_member2987
Active Contributor
0 Kudos

Hi Michael,

If this is the correct answer, please mark it as correct so others will be able to benefit from this in the futures.

Thanks,

Matt

Answers (2)

Answers (2)

jaisuryan
Active Contributor
0 Kudos

Hi Experts,

Any help on the above? I have a similar requirement to add background image using css stylesheet and image URL is stripped off every time I save the template. I wouldn't pass parameters to css stylesheet like we can for template body. TIA

Kind regards,

Jaisuryan

jaisuryan
Active Contributor
0 Kudos

Hi Michael,

From my notes, we achieved creating links using Global or Local constants. Here it goes,

1) Create a global or local job/task constant and assign the http/https address

2) While editing your template in admin UI, use a template parameter attributes (PAR_*) in <a href> like below,

<a href = "PAR_URL">click here</a>

3) Your notification ordered task should have two tasks, 1 - to set context variables, 2 - to send email using SMTP

In "set context variable" task, assign PAR_URL = (Global or local contant)
Then in notification task, you read the context variable PAR_URL and template text, do a search for PAR_URL in text and replace it with the value of context variable.

let me know if it works. Thanks.

Kind regards,

Jaisuryan

Former Member
0 Kudos

Jai,

yes I know that I could have worked with PARAMETERs.

That is a a possible workaround, right.

But what I was after is to find out whether there is a reason to cut out a string from template source as soon as there is http:// (or the same with mailto:).

At this moment I use following code to avoid the URL is cut out:

<a href="link_without_http">text_to_appear_as_link</a>