cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Code List based on CDS View with Business Context "WBS Element" block?

0 Kudos

Hi Team,

I'm trying to Extend Standard Table PRPS using "Custom Fields" Fiori app part In-App Extensibility in SAP S/4HANA 2022 SPS01 version.

1. created a Custom Business Object using Custom Business Object Fiori app.

2. created a Custom CDS View on top of table created in above step in ADT tool with annotations as below.

@AccessControl.authorizationCheck: #NOT_REQUIRED

@EndUserText.label: 'View for CDS Value Help Code List'

@ObjectModel.supportedCapabilities: [#CDS_MODELING_DATA_SOURCE]

@Search.searchable: false

@Metadata.allowExtensions: true

@AbapCatalog.dataMaintenance: #DISPLAY_ONLY

@DataAging.noAgingRestriction: true

@ObjectModel.representativeKey: 'BusinessPartner'

define view entity <CDS ViewName>

as select from <Table Name created via CBO in Custom Business Object Fiori App>

{

key SubType,

SAP_UUID,

SubTypeDescription,

Type,

SAP_Description

}

3. Now trying to create custom field using "Custom Fields" fiori app as below

Here I'm not able to see the Value Help View in F4 list in Value Help View column.

Can anyone help me to solve the above issue.

Thanks in advance.

Regards,

Ramana.

Accepted Solutions (0)

Answers (1)

Answers (1)

Tayane
Advisor
Advisor
0 Kudos

Dear Ramana,

When publishing the Custom CDS View, have you received any error message?

Can you please change the restrictions in the Custom CDS View to "Write: Unrestricted"?

From the annotations it seems to be read only.

Kind regards,

Tayane.