Friday, March 11, 2011

Viewing the solution manager documents on ESS or on web by deploying the same as a link

SAP Solution manager is used for the documentation and maintaining blueprint documents and user manuals. This tutorial explains how to show the user manuals stored on SAP Solution manager to the SAP ESS users on portal or on any web page.

How to upload documents on SAP Solution Manager:

Log on to SAP solution manager system and open transaction SOLAR01.

Choose the Proj. Documentation tab.

In order to add a document, click on the Insert Document Button.

Choose the option upload file and click on the green tick mark.

Choose the file to upload from the system and click on the open button.

Notice that the file is added.



Generating the hyperlink and working with the same:

In order to generate the hyperlink of the file, click on the file and choose it. After that, click on the attributes button.

On the popup which appears on the screen, click on the Generate button to copy the link in the system buffer.

It gives a message ‘URL buffered’.

Now the URL is copied to the system buffer. In order to view the document through the link, open your web browser and paste the buffered link there.

It asks for the solution manager ID and password. Give the same to view the document.

Click on the logon button to view the document.

But viewing the link this way would always prompt us to provide solution manager user name and password on the IE browser. We can even hard code the username and password in the hyperlink itself.

Paste the hyperlink which we copied from the attributes of the document into the buffer, on the notepad:

Now, suppose the user name is ‘ribhu’ and the password is ‘abcxyz’. Just add the following to the link we pasted on the notepad:

&sap-user=ribhu&sap-password=abcxyz

So our link, which was previously:

http://SAPSOLMAN.RAB.UK:08001/sap/bc/solman/SolmanDocuments/100?_CLASS=SOLARGE
N&_LOIO=320ADHEJKR43CFE12E10000000A170132&LANGUAGE=EN&RELEASE=620&IWB
_INDUSTRY=/KWCUST/&TMP_IWB_TRY_OTHER_IND=X&TMP_IWB_TASK=PREVIEW2

becomes:

http://SAPSOLMAN.RAB.UK:08001/sap/bc/solman/SolmanDocuments/100?_CLASS=SOLARGE
N&_LOIO=320ADHEJKR43CFE12E10000000A170132&LANGUAGE=EN&RELEASE=620&IWB
_INDUSTRY=/KWCUST/&TMP_IWB_TRY_OTHER_IND=X&TMP_IWB_TASK=PREVIEW2&sap
-user=ribhu&sap-password=abcxyz

We can deploy this link on any html or ESS page as shown below:

This SAP Solution Manager Document has a hyperlink to:

http://SAPSOLMAN.RAB.UK:08001/sap/bc/solman/SolmanDocuments/100?_CLASS=SOLARGE
N&_LOIO=320ADHEJKR43CFE12E10000000A170132&LANGUAGE=EN&RELEASE=620&IWB
_INDUSTRY=/KWCUST/&TMP_IWB_TRY_OTHER_IND=X&TMP_IWB_TASK=PREVIEW2&sap
-user=ribhu&sap-password=abcxyz

So when the user clicks on this link, it opens the respective document on the web browser directly:



Now another important thing of consideration is that the ESS or HTML page user can ‘SEE’ the user name and password in the hyperlink properties and it is unsafe:

Now, we have to hide the user name and password from the link. We can easily achieve this by converting the username and password part of the link into hex codes. On google or any web search engine, search for ascii to hex converter. One link, which I found, was:

http://www.dolcevie.com/js/converter.html

In the ASCII box I put my user name and password part of the link and press the ASCII to Hex button:

Hence I get the HEX code of the username and password portion of the link separated by colons:

I take this hexcode and put % sign in place of colon at every place and put a % before the first character. Hence my hex code, which was:

26:73:61:70:2d:75:73:65:72:3d:72:69:62:68:75:26:73:61:70:2d:70:61:73:73:77:6f:72:64:3d:61:62:63:78:79:7a

Now becomes:

%26%73%61%70%2d%75%73%65%72%3d%72%69%62%68%75%26%73%61%70%2d%70%61
%73%73%77%6f%72%64%3d%61%62%63%78%79%7a

Now I add this generated hex code to my link which I generated from the attributes of the document in solution manager. My generated link was:

http://SAPSOLMAN.RAB.UK:08001/sap/bc/solman/SolmanDocuments/100?_CLASS=SOLARGE
N&_LOIO=320ADHEJKR43CFE12E10000000A170132&LANGUAGE=EN&RELEASE=620&IWB
_INDUSTRY=/KWCUST/&TMP_IWB_TRY_OTHER_IND=X&TMP_IWB_TASK=PREVIEW2

Now it becomes:

http://SAPSOLMAN.RAB.UK:08001/sap/bc/solman/SolmanDocuments/100?_CLASS=SOLARGE
N&_LOIO=320ADHEJKR43CFE12E10000000A170132&LANGUAGE=EN&RELEASE=620&IWB
_INDUSTRY=/KWCUST/&TMP_IWB_TRY_OTHER_IND=X&TMP_IWB_TASK=PREVIEW2%26
%73%61%70%2d%75%73%65%72%3d%72%69%62%68%75%26%73%61%70%2d%70%61%
73%73%77%6f%72%64%3d%61%62%63%78%79%7a

When I click on this hex converted link, it works correctly and opens my document stored in Solution manager in web browser:

Hence this way, we can hide the user name and password from the hyperlink and deploy the link of any solution manager document on to an ESS page or html page.

So, all set and done!!

No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

goodsites