RAP - Action Popup: Dynamic Field Control Using Abstract Entity & Annotations
Hello Everyone! 👋 RAP Action Popup: Dynamic Field Control Using Abstract Entity & Annotations ⚠️ Note: Applicable only to SAP Fiori elements for OData V4. The behavior may vary depending on the SAP UI5 version. Observed working in SAP S/4HANA 2023+ (SAP UI5 1.120+). Step 1: Define the Action in Metadata Extension / Projection View annotate view ZC_RootEntity with { @UI: { lineItem: [ { position: 10, type: #FOR_ACTION, dataAction: 'ActionWithPopup', label: 'Action With Popup' } ] } FieldName; } Step 2: Create an Abstract Entity (Popup) @EndUserText.label: 'Action with Popup' define abstract entity ZD_ActionWithPopup { @Consumption.valueHelpDefinition: [ { entity: { name: 'ZI_ActionPropBehvValue', element: 'Behaviour' } } ] @EndUserText.label: 'Behaviour' Behaviour : abap.char( 1 ); @EndUserText.label: ...