cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Personas 3.0 - HTML Viewer does not display content

former_member216668
Participant
0 Kudos

Hi All,

I am trying to place a Clock in my SAP home page designed in Personas 3.0 and i did the following

1. Created a URL whitelist

2. Created a HTML viewer and assigned the URL

But when i exit Personas and the page does not display any clock?

Any idea where i am going wrong??

All suggestion is really helpful.

Rgds, K

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

I just tried what you described and it works for me:

So the first thing to check would be whether your system is fully up-to-date. You should have SP01 installed, in that case check note 2175479. If you are still on SP00, then see note 2050325.

former_member216668
Participant
0 Kudos

Hi Tamas,

Sorry for the late reply.

I did found out why it is not displaying.

I was trying to display a HTTP content over a HTTPS  and this was blocked

Is there any work around for this??

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

This appears to be a local network- or security-related issue.

I suppose you cannot access this same URL in a separate browser window either, i.e. it is blocked by your proxy, so this is not a Personas issue. You'll need to talk to your network administrator to find out what you can do.

Former Member
0 Kudos

Hi Tamas,

I am making an RFC call to ECC and getting a return table and i am formatting the content of that return table as HTML table and passing that html table to HTML Viewer.

Below is my code. It used to work in Persona 3.0 SP1, now we have migrated to Persona 3.0 SP2.

Now it is displaying blank results. Any suggestions or thoughts why it is not working?

var site = session.findById("wnd[0]/usr/txtPersonas_1446021686665").text;

var sku = session.findById("wnd[0]/usr/txtPersonas_1446021696588").text;

var sloc = session.findById("wnd[0]/usr/txtPersonas_1446021706955").text;

session.utils.changeFlavor("56219E88722354DBE10000000A9003E1");

var rfc = session.createRFC("ZINV_LKP");

rfc.setParameter("WERKS", site);

rfc.setParameter("MATNR", sku);

rfc.setParameter("LGORT", sloc);

session.utils.log("Reached before RFC Call");

rfc.requestResults('["ET_INV_ITEM",  "ES_INV_HDR"]');

rfc.send();

session.utils.log("Reached after RFC Call");

var poj = rfc.getResult("ET_INV_ITEM");

var inv_hdr = JSON.parse(rfc.getResult("ES_INV_HDR"));

var po = JSON.parse(poj);

session.utils.log("Table count "+po.length);

var htmlTable;

htmlTable = "<table border=2>";

htmlTable += "<tr>";

htmlTable += "<th width=\"90%\">";

  htmlTable += "Grade";

  htmlTable += "</th>";

  htmlTable += "<th  width=\"10%\">";

  htmlTable += "On Hand";

  htmlTable += "</th>";

htmlTable += "</tr>";

data = "Grade";

data += "\t";

data += "\t";

data += "\t";

data +=  "On Hand";

data +=  "\n";

data +=  "\n";

for(var i=0; i < po.length; i++){

htmlTable += "<tr>";

    session.utils.log(po[i].CHARG+" : "+po[i].CLABS);

  htmlTable += "<td>";

  htmlTable += po[i].CHARG;

  htmlTable += "</td>";

  htmlTable += "<td>";

  htmlTable += po[i].CLABS;

  htmlTable += "</td>";

htmlTable += "</tr>";

}

htmlTable += "</table>";

session.utils.log( htmlTable);

// Finally, send the table to the HTML viewer

session.findById("wnd[0]/usr/htmlViewerPersonas_1445597836699").content = htmlTable;

I have followed the below blogs for RFC call & HTML table rendering.

How to call Remote Enabled ABAP Function Modules in Personas 3.0 - SAP Imagineering - SCN Wiki

Thanks in advance.

Thanks & Regards,

Divakar Mamidi

Former Member
0 Kudos

Hi Tamas,

Could you please provide an update.

Thanks in advance.

Thanks & Regrads,

Divakar Mamidi