on 07-03-2015 6:23 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.