Skip to Content
-1
Dec 14, 2022 at 02:37 PM

SAP ABAP RAP - Adding QuickView to Object Header

86 Views Last edit Dec 15, 2022 at 06:34 AM 5 rev

Dear Experts,

I have a use case to show the Account Holder details as a Quick View on the Object Page Header of my application.

image.png

I am able to open QuickView when I provide the type of the facet as #FIELDGROUP_REFERENCE as shown below -

@UI.facet: [ {
 id: '_BP',
 purpose: #HEADER,
 type: #FIELDGROUP_REFERENCE,
 position: 10,
 targetQualifier: 'AccountHolderName'

}]

@UI.fieldGroup: [{ qualifier: 'AccountHolderName', position: 20 , label: 'Test BP', semanticObject: '_BP', value: '_BP.InternalID' }]

@Consumption.semanticObject: 'BusinessPartner'

_BP;

image.png

This is fine, but it does not show up as a DataPoint like shown in the first image. When I try to provide the same as a DATAPOINT then I get the below error -

image.png

I can see the label - 'Account Holder' but the association is not being read by the DataPoint. My annotations look like below.

@UI.facet: [ {
 id: '_BP',
 purpose: #HEADER,
 type: #DATAPOINT_REFERENCE,
 position: 10,
 targetQualifier: 'AccountHolderName'

}]

@UI.dataPoint: { qualifier: 'AccountHolderName', title: 'Account Holder', targetValueElement: '_BP.InternalID'}

@Consumption.semanticObject: 'BusinessPartner'

_BP;

Upon further analysis - I find that the system is unable to determine the referential constraint for the association '_BP'. My understanding is that using SemanticObject should provide the referential constraint but it seems that it is not happening when used along side a Data Point.

image.png

Any pointer/help will be highly appreciated.

Thanks in Advance,

Regards,

Harshit

Attachments

image.png (455.8 kB)
image.png (500.7 kB)
image.png (746.6 kB)
image.png (586.0 kB)