Hey guys,
I can't manage to see the changes in the Track Sales Order App after extendig the App. I followed this guide: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20dbf542-f3e7-3110-a6b8-ebb96b57c4e8?QuickLink=index&…
I could manage that the new App is shown in my Launchpad (so Mapping etc. worked). -> Sales order Extended
Starting is also no problem:
In this view should actually the payment terms appear (See page 5)
In this view should the header be removed (See page 6):
I followed exactly the guide. As you can see everything is working, even the OData service.... I assume there is an error with my extension and modifcation point in the Component.js. I have been searching for hours, but I couldn't find the error.
Here is the code of the Component.js
jQuery.sap.declare("zcus.sd.salesorder.monitor.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "cus.sd.salesorder.monitor",
url: jQuery.sap.getModulePath("zcus.sd.salesorder.monitor") + "/../SD_SO_MON"
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});
cus.sd.salesorder.monitor.Component.extend("zcus.sd.salesorder.monitor.Component", {
metadata: {
version : "1.0",
config : {
"sap.ca.i18Nconfigs": {
"bundleName":"zcus.sd.salesorder.monitor.i18n.i18n"
},
"sap.ca.serviceConfigs":[{
name:"SRA018_SO_TRACKING_SRV",
masterCollection : "SalesOrders",
serviceUrl : URI("/sap/opu/odata/sap/ZSRA018_SO_TRACKING_11_SRV/")
.directory(),
isDefault :true,
countSupported : true,
useBatch : true,
mockDataSource : jQuery.sap.getModulePath("zcus.sd.salesorder.monitor") + "/model/metadata.xml"
}]
},
customizing: {
"sap.ui.viewExtensions":{
"cus.sd.salesorder.monitor.view.S3":{
"extSOChangePaymentInfo" :{
className: "sap.ui.core.Fragment",
fragmentName: "zcus.sd.salesorder.monitor.view.extSOChangePaymentInfo",
type :"XML"
}
}
},
"sap.ui.viewModifications":{
"cus.sd.salesorder.monitor.view.S4":{
"SO_OH_ITEMDETAIL":{
"visible" : false
}
}
}
}
Help would be highly appreciated. Thanks
Chris