To create a value help CDS view, follow these steps.
-
In the Project Explorer, right-click the ZPRA_PSE_SALES_ORDER package and choose New > Other ABAP Repository Object.
-
Search for Data Definition, select it, and choose Next.
-
Enter the following data:
-
Name:
ZPRA_PSE_PS_ID_VH -
Description:
Poetry Slam ID Value Help
-
-
Choose Next.
-
Select a transport request and choose Finish.
-
On the Templates screen, choose Define View Entity and then choose Finish.
-
Replace the generated code with the following ABAP code:
@EndUserText.label: 'Value Help for Poetry Slam' @ObjectModel.dataCategory: #VALUE_HELP @Search.searchable: false @ObjectModel.query.implementedBy: 'ABAP:ZCL_PRA_PSE_VH' define custom entity ZPRA_PSE_PS_ID_VH { @UI.hidden:true key id : abap.char(255); @EndUserText.label: 'Number' zzpra_pse_ps_id_sdh : zpra_pse_ps_id; @EndUserText.label: 'Title' zzpra_pse_ps_title_sdh : zpra_pse_ps_title; @EndUserText.label: 'Status' zzpra_pse_ps_status_sdh : zpra_pse_ps_status; }
-
Save and activate your changes.
