Finally, here you go as seen in DemoJam TechEd Las Vegas and Munich the Eclipse tools with plug-ins to create enterprise widgets. Use them, let us know what works what doesn’t. But most of all create more widgets that display SAP data!!!
Watch the video of DemoJam to see what the tools can do: DemoJam – Munich
What you need:
- Yahoo Widget Engine – www.widgets.yahoo.com
- Eclipse Tools plus Plug-ins
- Documenation
Optional:
Authentication agains the SAP Back-end:
Instructions:
1. SYSTEM REQUIREMENTS
———————-
Windows XP
Java 1.6 or higher
Yahoo! Widget Engine 4.x
2. STARTUP INSTRUCTIONS
———————–
To start working with SAP Widget Development Tools, unzip
SAP Widget Development Tools.zip and launch eclipse.exe. Detailed instructions
how to build enterprise widgets be found in SAP Widget Development Guide
3. KNOWN ISSUES
—————
4.1 Launch and debug functions works incorrectly if focus is on Properties view JIRA SAP-4566
4. SUPPORT INFORMATION
———————-
For support e-mail: widgets@sap.com
SAPWidgetProjectTemplates.xml is not valid!
I tried several times to re-download and re-install Eclipse without success.
I create a widget with the template projekt. If I delete one Component from the header or footer the widget does not start anymore.
Does anybody know how to fix this issue?
Kind Regards
Roman
We are looking into this.. will get back to you as soon as we have an answer.
Regina
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/207e8c3a-2762-2a10-a08e-a911260abe8d
Regina
This is a nice demo. I also saw your performance in DemoJam and its fascinating. I’m starting to look at the world of widget. How can I deploy a widget on Enterprise Portal?
Cheers,
Erick
I have the problem while using BAPI BAPI_MATERIAL_GETLIST and Table MATNRSELECTION the fields SIGN and OPTION are not shown in the Eclipse RFC-View and they are not passed to SAP.
This is the code:
Controller.refresh = function(){
Controller.showMain_View({“MATNRSELECTION”:
{
“SIGN”: “I”,
“OPTION”: “CP”,
“MATNR_LOW”: “*”
},
“MAXROWS”: “50”
});
}
I debugged the RFC-Call. The parameter MATNR_LOW is filled with “*” the SIGN and OPTION is empty.
How to fix this? Any Idea?
Kind regards
Roman
Model.call_BAPI_MATERIAL_GETLIST()
….
// import tables
var table;
table = bapi.addTable(“MATNRSELECTION”);
if(utils.isArray(importParams.MATNRSELECTION)){
var tableData = importParams.MATNRSELECTION;
for (var i = 0; i < tableData.length; i++){
table.addRow({
“MATNR_HIGH” : tableData[i].MATNR_HIGH,
“MATNR_LOW” : tableData[i].MATNR_LOW,
// 2 more fields are added >>>>>>>>>>>>>>
“SIGN” : tableData[i].SIGN,
“OPTION” : tableData[i].OPTION
// <<<<<<<<<<<<< 2 more fields are added
});
}
}
…..
!!!!!!!!!!!! Very important:
tools tends to overwrite bapi functions, while saving. So, todisable such as behaviour do the folowing:
in the function BAPI_MATERIAL_GETLIST change @overwrite-allowed parameter to false (see below)
/**
* Calls bapi BAPI_MATERIAL_GETLIST function
* @param {hash} importParams object with all import parameters passed to function
* @param {function} callback callback function to call if recieved data
* @param {function} failCallback callback function to call in case if error happend
* @return None
* ——————————————
* @generated-by SAPTools
* @overwrite-allowed false
* @generated-timestamp 1196248220429
* @bapi-name BAPI_MATERIAL_GETLIST
*/
And now we are ready to test our changes:
function testBAPI_MATERIAL_GETLIST(){
Model.call_BAPI_MATERIAL_GETLIST(
{“MATNRSELECTION”: [
//first row
{“SIGN”: “I”,
“OPTION”: “CP”,
“MATNR_LOW”: “*”
}
//second row
//,
//{“SIGN”: “??”,
// “OPTION”: “CD??”,
// “MATNR_LOW”: “*”
//}
],
“MAXROWS”: “50”
}, function(data){showTestData(data);}, function(err){ alert(“failure ” + err)});
}
showTestData = function(data){
alert(“MATNRLIST.item total: ” + data.MATNRLIST.length);
for(var i = 0; i< data.MATNRLIST.length; i++){
alert(data.MATNRLIST[i].MATERIAL);
}
}
The code aboves returns 50 items to me.
I am just trying widget development using Eclipse plug-in. Tried a basic sample, its working.
I would like to know how to get user authentication for the widgets during the run-time instead of the development time. couldnt locate any material or object for doing this.
Can anyone help me on this?
Thanking in advance.
Regards,
Ram.
I went through your presentation. Thanks for the blog. Its a nice feature that we can use and I’d like to develop some widgets.
At present I’m not able to find the right version of Eclipse which can install SAP Widget Development Tools. Can you please send me a link to the right/compatible version of Eclipse and “SAP Widget Development Tools”.
Sujit.
https://www.sdn.sap.com/irj/scn/widget-foundation
regarding eclipse, here is the link to the latest eclipse version:
http://www.eclipse.org/downloads/
Regards
Rajendra