<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Unable to use string fields in cds value help in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14054944#M4907969</link>
    <description>I have another value help, which is also not exposed in the service definition which works. I followed this tutorial for creating VH: &lt;A href="https://learning.sap.com/courses/developing-and-extending-sap-fiori-elements-apps/creating-an-object-page_LE_5aa3bad4-7bd3-4028-99f4-3f479889ece0" target="_blank"&gt;https://learning.sap.com/courses/developing-and-extending-sap-fiori-elements-apps/creating-an-object-page_LE_5aa3bad4-7bd3-4028-99f4-3f479889ece0&lt;/A&gt;</description>
    <pubDate>Mon, 24 Mar 2025 15:28:36 GMT</pubDate>
    <dc:creator>saahil1</dc:creator>
    <dc:date>2025-03-24T15:28:36Z</dc:date>
    <item>
      <title>Unable to use string fields in cds value help</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaq-p/14048250</link>
      <description>&lt;P&gt;I have a CDS entity as value help:&lt;BR /&gt;&lt;BR /&gt;define view entity ZI_CREATEDBY_VH as select from ZI_ORDER&lt;BR /&gt;{&lt;BR /&gt;key CreatedBy&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;which is used as value help in a projection entity:&lt;BR /&gt;&lt;BR /&gt;define root view entity ZC_ORDER&lt;BR /&gt;provider contract transactional_query&lt;BR /&gt;as projection on ZI_ORDER&lt;BR /&gt;{&lt;BR /&gt;key OrderGuid,&lt;BR /&gt;@Consumption.valueHelpDefinition: [ {&lt;BR /&gt;entity: {&lt;BR /&gt;name: 'ZI_ORDER_NAME_VH',&lt;BR /&gt;element : 'Name'&lt;BR /&gt;}&lt;BR /&gt;} ]&lt;BR /&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1692417"&gt;@search&lt;/a&gt;.fuzzinessThreshold: 0.7&lt;BR /&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1692417"&gt;@search&lt;/a&gt;.defaultSearchElement: true&lt;BR /&gt;OrderName,&lt;BR /&gt;...&lt;BR /&gt;@Consumption.valueHelpDefinition: [ {&lt;BR /&gt;entity: {&lt;BR /&gt;name: 'ZC_CREATEDBY_VH',&lt;BR /&gt;element : 'CreatedBy'&lt;BR /&gt;}&lt;BR /&gt;} ]&lt;BR /&gt;CreatedBy,&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CreatedBy type is a data element whose type is string:&lt;BR /&gt;Component Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Type&lt;BR /&gt;zcreated_by&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Problem Description:&lt;BR /&gt;&lt;BR /&gt;1. I cannot see Search and Select Tab under the Created By. Only see Define Conditions Tab.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-18 at 11.00.03.png" style="width: 999px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/238969iD501B4A990F2C810/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-03-18 at 11.00.03.png" alt="Screenshot 2025-03-18 at 11.00.03.png" /&gt;&lt;/span&gt;&lt;BR /&gt;2. If I attempt to cast String to abap.char(len), I get the following error:&lt;BR /&gt;&lt;SPAN&gt;Function CAST: Type STRING of Parameter 1 not supported ( ACCP CHAR CLNT CUKY LANG RAW UNIT NUMC DEC INT1 IN )&lt;/SPAN&gt;&lt;BR /&gt;Since casting of string to char is not allowed.&lt;BR /&gt;&lt;BR /&gt;Does this mean there is no way to have a value help for string fields?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 10:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaq-p/14048250</guid>
      <dc:creator>saahil1</dc:creator>
      <dc:date>2025-03-18T10:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use string fields in cds value help</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14053860#M4907850</link>
      <description>&lt;P&gt;There are approximately thousands of value-helps in CDS views delivered by SAP. Find similar ones and get some inspiration…&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2025 09:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14053860#M4907850</guid>
      <dc:creator>filipn</dc:creator>
      <dc:date>2025-03-23T09:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use string fields in cds value help</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14053943#M4907862</link>
      <description>&lt;P&gt;check if you have exposed the vh cds in your service definition&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2025 12:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14053943#M4907862</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-03-23T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use string fields in cds value help</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14054944#M4907969</link>
      <description>I have another value help, which is also not exposed in the service definition which works. I followed this tutorial for creating VH: &lt;A href="https://learning.sap.com/courses/developing-and-extending-sap-fiori-elements-apps/creating-an-object-page_LE_5aa3bad4-7bd3-4028-99f4-3f479889ece0" target="_blank"&gt;https://learning.sap.com/courses/developing-and-extending-sap-fiori-elements-apps/creating-an-object-page_LE_5aa3bad4-7bd3-4028-99f4-3f479889ece0&lt;/A&gt;</description>
      <pubDate>Mon, 24 Mar 2025 15:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14054944#M4907969</guid>
      <dc:creator>saahil1</dc:creator>
      <dc:date>2025-03-24T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use string fields in cds value help</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14055020#M4907977</link>
      <description>there is no magic, when you check metadata, are sure that valuehelp(you said not exposed) is not presented?</description>
      <pubDate>Mon, 24 Mar 2025 16:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-string-fields-in-cds-value-help/qaa-p/14055020#M4907977</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-03-24T16:49:30Z</dc:date>
    </item>
  </channel>
</rss>

