on 2024 Aug 16 1:11 PM
Hi Team,
I have developed a RAP Application in my project , a Table zbumamapping should be exposed as a List view with object page. Every thing is fine . But when i am clicking on any entry on the screen , the object page doesn't have any fields. It is empty. The service i used is V4. I can see only the header in the object page.
Below is the screen shot of the app i created.
When i click on an item , the next object page is empty ( except company code as header ) , also there are no edit and delete options on screen.
I have maintained the below metadata extensions.
@Metadata.layer: #CORE
@UI : { headerInfo:{
typeName: 'Mapping Table',
typeNamePlural: 'Mapping Table',
title: {
type: #STANDARD,
label: 'Mapping Table',
value: 'Companycode'
},
description.value: 'Companycode' }
}
@Search.searchable: true
annotate view ZC_BIMAMAPPING
with
{
@UI.facet: [{ id: 'Mapping Data',
purpose: #STANDARD,
type: #IDENTIFICATION_REFERENCE,
label: 'Mapping Data',
//targetQualifier: 'HeaderItems',
position: 10 } ]
@UI: { lineItem: [{ position: 10 }],
identification: [{ position: 10 }],
selectionField: [{ position: 10 }] }
//identification: [{qualifier: 'HeaderItems'}] }
@EndUserText.label: 'Company Code'
Companycode;
@UI: { lineItem: [{ position: 20 }],
identification: [{ position: 20 }],
selectionField: [{ position: 20 }]}
//identification: [{qualifier: 'HeaderItems'}] }
@EndUserText.label: 'Mapping Type'
Maptype;
@UI: { lineItem: [{ position: 30 }],
identification: [{ position: 30 }],
selectionField: [{ position: 30 }] }
// identification: [{qualifier: 'HeaderItems'}] }
@Search.defaultSearchElement: true
@EndUserText.label: 'Source Value'
Sourcevalue;
@UI: { lineItem: [{ position: 40 }],
identification: [{ position: 40 }] }
//identification: [{qualifier: 'HeaderItems'}]}
@EndUserText.label: 'Target Value'
Targetvalue;
@UI: {
identification: [{ position: 50 }] }
//identification: [{qualifier: 'HeaderItems'}] }
@EndUserText.label: 'Created By'
created_by;
@UI: {
identification: [{ position: 60 }] }
//identification: [{qualifier: 'HeaderItems'}] }
@EndUserText.label: 'Created At'
created_at;
@UI: {
identification: [{ position: 70 }] }
//identification: [{qualifier: 'HeaderItems'}] }
@EndUserText.label: 'Last Changed By'
last_changed_by;
@UI: {
identification: [{ position: 80 }] }
//identification: [{qualifier: 'HeaderItems'}] }
@EndUserText.label: 'Last Changed At'
last_changed_at;
//@UI.hidden: true
//ExcelRowNumber;
}
.
Even though i cant able to view the complete object page and edit it. Please let me know whether i need to implement any code ? Mine is a Managed scenario.
Is there something we need to do in the BAS side too to enable the object view?
@Andre_Fischer I saw you helping many in RAP Abap applications. Can you help me too.
BR,
Vamsi Krishna Busi,
8867784916.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @junwu , I used Annotation #LINEITEM_REFERENCE , still I can't see anything , Could you please help me.
Below is my Metadata extension with the above annotation added. Please correct me where the problem is.
One more thing , is the kind of PACKAGE to which we saved also effect the object page ? I have saved my changes to a Super package, means under which childs will be there.
@Metadata.layer: #CORE
@ui: { headerInfo:{
typeName: 'Mapping Table',
typeNamePlural: 'Mapping Table',
title: {
type: #STANDARD,
label: 'Mapping Table',
value: 'Companycode'
},
description.value: 'Companycode' }
}
@Search.searchable: true
annotate view ZC_BIMAMAPPING
with
{
@ui.facet: [{ id: 'Mapping Data',
purpose: #STANDARD,
type: #LINEITEM_REFERENCE,
label: 'Mapping Details',
targetQualifier: 'LineItems',
position: 10 } ]
@ui: { lineItem: [{ position: 10 }],
identification: [{ position: 10 }],
selectionField: [{ position: 10 }] ,
identification: [{qualifier: 'LineItems'}] }
@EndUserText.label: 'Company Code'
Companycode;
@ui: { lineItem: [{ position: 20 }],
identification: [{ position: 20 }],
selectionField: [{ position: 20 }],
identification: [{qualifier: 'LineItems'}] }
@EndUserText.label: 'Mapping Type'
Maptype;
@ui: { lineItem: [{ position: 30 }],
identification: [{ position: 30 }],
selectionField: [{ position: 30 }],
identification: [{qualifier: 'LineItems'}] }
@Search.defaultSearchElement: true
@EndUserText.label: 'Source Value'
Sourcevalue;
@ui: { lineItem: [{ position: 40 }],
identification: [{ position: 40 }],
identification: [{qualifier: 'LineItems'}]}
@EndUserText.label: 'Target Value'
Targetvalue;
@ui: {
identification: [{ position: 50 }] ,
identification: [{qualifier: 'LineItems'}] }
@EndUserText.label: 'Created By'
created_by;
@ui: {
identification: [{ position: 60 }] ,
identification: [{qualifier: 'LineItems'}] }
@EndUserText.label: 'Created At'
created_at;
@ui: {
identification: [{ position: 70 }] ,
identification: [{qualifier: 'LineItems'}] }
@EndUserText.label: 'Last Changed By'
last_changed_by;
@ui: {
identification: [{ position: 80 }] ,
identification: [{qualifier: 'LineItems'}] }
@EndUserText.label: 'Last Changed At'
last_changed_at;
//@UI.hidden: true
//ExcelRowNumber;
}
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.