Friday 28 June 2019

Fiori Elements-Value help on a selection field within a value help dialog

This is about featuring the capability of Value help on a selection field within a value help dialog in Fiori Elements based List Report.

Business Scenario


Let’s consider Business scenario where Fiori Elements based List Report displays Purchase Order with Vendor as one of the selection field.

“Vendor can be further filtered based on selected countries.”

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

Technical Explanation


1. Develop main consumption CDS For List Report and add relevant UI annotations for Line Items, Selection Fields.

2. Add Value help specific annotation for the selection field, provide reference of Value help CDS  using annotation “@Consumption.valueHelpDefinition:

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

3. To bring “Value help within a value help dialog”, Add further value help CDS reference inside      the value help CDS used in step 3.

4. Data Model can be understood as below:

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

5. CDS can be exposed as ODATA or SEGW reference data source and generate the Fiori elements-based application.

Detailed Explanation


Let’s create the supplier Value help CDS(ZI_SUPPLIER_VH), Inside this give the reference of Standard CDS I Country for the countries list.

Now, Lets create the main consumption CDS for the List Report (ZC_PurchaseOrder). Add UI annotation for Line Items and selection fields. Give the reference of ZI_SUPPLIER_VH.

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

Code snippet FOR the Consumption CDS

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

Value Help CDS

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

Demo (Output)


Fiori Elements with Vendor as selection parameter

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

Select Country for further value help

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

Selected country become available for searching the supplier further

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

And Finally, selected Supplier available in the List Report selections parameter

SAP ABAP Certifications, SAP ABAP Guides, SAP ABAP Study Materials, SAP ABAP Tutorials and Materials

2 comments:

  1. Point kartu paling tinggi dalam permainan domino qiu qiu (karena dalam 28 kartu domino hanya memiliki 4 kartu yang bulatkannya 6), karena 4 kartu yang di dapat bulatannya semasing sejumlah 6.
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    bandar ceme terpercaya
    hobiqq
    paito warna oregon
    syair hk
    datahk

    ReplyDelete
  2. If I have Country field in Purchase order and it present in filter toolbar of PurchaseOrder and user enter value to Country field (or select it from Countrie's value help) - how to pass Country value to Supplier value help?

    ReplyDelete