cancel
Showing results for 
Search instead for 
Did you mean: 

Extend Fiori App Track Sales Order

cmetz
Participant
0 Kudos

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-ebb96b57c...

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

Accepted Solutions (0)

Answers (1)

Answers (1)

cmetz
Participant
0 Kudos

I don't even know how to debug and find the error. I have no approach for this.... Can anyone help out?

I found a hint, but I assume it has nothing to do with my error. If I execute the original app, this error message is shown:

Another thing I found out. The Component.js of the customized app is not loading (at least I cant see it in the tree).... its loading the component.js from the original app. Is it assumed to be like that?

Former Member
0 Kudos

Hi Christoph

I had the same problem.

I had the same problem.

The solution for me was add parameter "&newVersion=false" in the url.

For example :

The url in my test environment is:

And the result is: