Skip to Content

SAP portal - snippet code

Hi

i have requirement to add JavaScript code to the top head tag in sap portal , the script should display in all pages for specific roles , It's possible?? and What's the best scenario to implements?

<html><head><script>) ... </script>

thank you

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 03, 2019 at 01:46 PM

    Hi Yasser,

    You could create a Document Hook for this purpose:

    https://blogs.sap.com/2014/11/03/adding-html-to-all-portal-iviews-responses-portal-document-hooks/

    Please also review the associated notice:

    *Important note – Hooks affect every request to the portal, and are designed for special situations. Because hooks can have wide-ranging and dangerous side-effects that could harm performance or entire portal functionality, it is not recommended for wide usage and only for special conditions that suits.

    Best regards,

    Nick

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.