Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

How to set Qualifier in a SAP annotation

$
0
0

Hello:

 

I'm using annotations to create an Smart Filter Bar. I have created my annotation project on SEGW and I have added few annotations to my model, but I want to use multiple Search Helps on one field.

 

For example in the KUNNR field I want to add to Standard Search Helps, one more generic (SH_DEBIA) and the other one for search using de BKURS (SH_DEBID).

 

I have solved the issue using local annotations in my Fiori APP:

 

<Annotations xmlns="http://docs.oasis-open.org/odata/ns/edm" Target="ZUI5_SRV.Pos/Kunde">

                <Annotation Term="com.sap.vocabularies.Common.v1.ValueList">

                    <Record>

                        <PropertyValue Property="Label" String="Deudores general"/>

                        <PropertyValue Property="CollectionPath" String="SH_DEBIASet"/>

                        <PropertyValue Property="SearchSupported" Bool="true"/>

                        <PropertyValue Property="Parameters">

                            <Collection>

 

...

 

<Annotations xmlns="http://docs.oasis-open.org/odata/ns/edm" Target="ZUI5_SRV.Pos/Kunde" Qualifier="DEBID2">

                <Annotation Term="com.sap.vocabularies.Common.v1.ValueList">

                    <Record>

                        <PropertyValue Property="Label" String="Deudores por sociedad"/>

                        <PropertyValue Property="CollectionPath" String="SH_DEBIDSet"/>

...

 

When I create two or more annotations I have to use the Qualifier field on local XML Annotation File, but if I want to use SEGW I don't have this option, and I can't define same type annotations for a same field.

 

Any idea???

 

Best regards,

Didier


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>