cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Uncaught Error: The segment {SAP__Origin} is required.

former_member568822
Active Participant
0 Kudos

Hi,

We are trying to extend the Purchase Contract Approval by adding custom field in item detail view. We are able to view the header detail view but when try to access item detail view error below occur in IE. Thanks

Uncaught Error: The segment {SAP__Origin} is required.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey Gan,

Did you ever figure out your problem?

Cheers,

Kevin

Former Member
0 Kudos

Hi Gan,

I figured it out.  All the fields didn't transfer when I made a custom copy of my application.  I looked at the original and found that I was missing a line of code and some other code...  This is before and after:

Before:

     name: "ZGBAPP_PRAPPROVAL_SRV",

     serviceUrl: "/sap/opu/odata/SAP/ZGBAPP_PRAPPROVAL_SRV",

     isDefault: true,

     mockedDataSource: "./model/metadata.xml"

After:

     name: "ZGBAPP_PRAPPROVAL_SRV",

     masterCollection: "WorkflowTaskCollection",

     serviceUrl: "/sap/opu/odata/SAP/ZGBAPP_PRAPPROVAL_SRV;mo/",

     isDefault: true,

     mockedDataSource: "./model/metadata.xml"


This is in the Component.js file of your application.

Cheers,

Kevin