cancel
Showing results for 
Search instead for 
Did you mean: 

SAP FIORI UI Extension

0 Kudos

Hi Expert

Please assist with the bellow issue:

I am trying to add a custom field on Fiori Purchase Requisition(PR) app using extension point but I keep getting the bellow error

i have created a new launchpad with the following additional info:SAPUI5.Component=ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component and bellow is my Component.js file

Lanchpad

Please note I have not implemented any views extension as I  am still troubleshooting   - the error occurs even when an extension is created

Please Assist

Ted

Accepted Solutions (0)

Answers (1)

Answers (1)

SandipAgarwalla
Active Contributor
0 Kudos

change the mechanism to load the parent object,instead of using registermodule path, simply use absolute url of the parent application

sap.ui.component.load({

     component: ui2.sp.....

     url: "/sap/bc/ui5_ui5/sap/mm_pr_apv

})

0 Kudos

Hi Sandip

Thanks for the quick feedback. I have updated my code as per your suggestion but I am still getting the same error - see code bellow

jQuery.sap.declare("ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component");

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

sap.ui.component.load({

  name : "ui.s2p.mm.requisition.approve",

  url : "/sap/bc/ui5_ui5/sap/mm_pr_apv"

// provide parent project url

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

// extension app is deployed with customer namespace

});

ui.s2p.mm.requisition.approve.Component

  .extend(

  "ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component",

  {

  metadata : {

  version : "1.0",

  config : {

  "sap.ca.i18Nconfigs" : {

  "bundleName" : "ui.s2p.mm.requisition.approve.mm_pr_apvExt.i18n.i18n"

  },

  },

  customizing : {}

  }

  });

Thanks

Ted

SandipAgarwalla
Active Contributor
0 Kudos

Ted

Is the standard app working correctly?

in the LPD_CUST, for the extended app - what is the value for SAPUI5.Component

0 Kudos

Hi Sandip

here with the SAPUI5 value: ui.s2p.mm.requisition.approve.mm_pr_apvExt.Component

RGDS

Tes

SandipAgarwalla
Active Contributor
0 Kudos

Ted

the value should be without the component

SAPUI5.Component=ui.s2p.mm.requisition.approve.mm_pr_apvExt

0 Kudos

HI Sandip

Thanks for the feedback, will try that and let you know.

Thanks Again

Ted

0 Kudos

Hi Sandip

I am new getting a new error message which I think it's good news

0 Kudos

Had to clear my cache to get it to display the app. however, I now have Componet-preload which most people experiencing

SandipAgarwalla
Active Contributor
0 Kudos

you can ignore the preload warning at this moment.

0 Kudos

Thanks Sandip

But my additional fields that I've added are not visible - it seems like the standard Purchase requisition view is displayed instead.

here with the view I am trying to add fields to - PR item details (item level release)

Extension

Component

The only thing I can think of is that I could be enhancing an incorrect view - I then went and change the view name but still getting the standard view without mt additional fields

Please assist

Rgds

Ted

Please note that I have enhanced (Not modify) the odata model by adding purchase requisition group.

Former Member
0 Kudos

did u resolved the problem?