Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

Unable to deploy Purchase order approval extension application

$
0
0

I have created extension project for PO approval standard app by extending S2 view which created new view as extListItemInfoCustom.fragment.xml

I have to add Purchase order label in left panel so added below code in as extListItemInfoCustom.fragment.xml file which now looks like below:

 

<core:FragmentDefinitionxmlns="sap.m"xmlns:core="sap.ui.core">

       <ObjectAttributetext="{i18n>view.PurchaseOrder.purchaseOrderLabel}: {PoNumber}"/>

</core:FragmentDefinition>

 

 

My Component.js looks like below

  1. jQuery.sap.declare("ui.s2p.mm.purchorder.approve.po_upgradeExtension1.Component");

 

// use the load function for getting the optimized preload file if present

  1. sap.ui.component.load({

       name: "ui.s2p.mm.purchorder.approve"

       url: jQuery.sap.getModulePath("ui.s2p.mm.purchorder.approve.po_upgradeExtension1") + "/../PO_upgrade"// provide parent project url

       // we use a URL relative to our own component; might be different if

       // extension app is deployed with customer namespace

});

 

 

  1. ui.s2p.mm.purchorder.approve.Component.extend("ui.s2p.mm.purchorder.approve.po_upgradeExtension1.Component", {

       metadata: {

              version : "1.0",

              config : {

                     "sap.ca.i18Nconfigs": {

                           "bundleName":"ui.s2p.mm.purchorder.approve.po_upgradeExtension1.i18n.i18n"

                     },

                   

              },

            

              customizing: {

              "sap.ui.viewExtensions": {

                     "ui.s2p.mm.purchorder.approve.view.S2": {

                           "extListItemInfo": {

                                  className: "sap.ui.core.Fragment",

                                  fragmentName: "ui.s2p.mm.purchorder.approve.po_upgradeExtension1.view.extListItemInfoCustom",

                                  type: "XML",

                           },

                     },

              },

 

              }                   

       }

});

 

I have properly submitted project from eclipse and deployed it on launchpad but I am getting below error and on clicking app only blue screen appears. Resolving this issue has become quite urgent. Can someone please help in removing component.js error?



Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>