cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP RAP Action - Error -Target was not found

abdul_hakim
Active Contributor
0 Kudos
714

Hello

When i use the below annotation to enable action button in RAP Application i m getting the below error.

Target was not found.Error: adding element with duplicate id 'project1::sap.suite.ui.generic.template.ListReport.view.ListReport::Certificate--action::'

Annotation:

@UI: { lineItem: [ { position: 15, importance: #HIGH},

{ type: #FOR_ACTION, dataAction: 'newVersion', label: 'NewVersion' },

{ type: #FOR_ACTION, dataAction: 'releaseVersion', label: 'RelVersion' },

{ type: #FOR_ACTION, dataAction: 'archiveVersion',label: 'ArchiveVersion' } ],

identification: [ { position: 10 } ],

selectionField: [ { position: 10 } ] }

0 Kudos
You have assigned ACTION based annotations to your field in the Metadata extension. Remove that line if you are not handling it in Behaviour Defintion and Implementation.

Accepted Solutions (1)

Accepted Solutions (1)

abdul_hakim
Active Contributor

Resolved on my own. Action was not enabled in BDEF and this was causing issue.

jaydip_odiya
Discoverer
0 Kudos
how i can solve please help me out Target was not found. "sap.nw.core.feap.odatav2::sap.suite.ui.generic.template.ObjectPage.view.Details::Portal_Details--Portal Details::Syid::Field" is not a valid ID.

Answers (1)

Answers (1)

Mouli8985
Newcomer
0 Kudos

 

how i can solve please help me out Target was not found. "sap.nw.core.feap.odatav2::sap.suite.ui.generic.template.ObjectPage.view.Details::Portal_Details--Portal Details::Syid::Field" is not a valid ID.


To Answer your question:
Remove "@UI.facet:  Annotation's"  in your Metadata file.