Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

Type mismatch in AMDP with Fuzzy Search

$
0
0

HI,

 

I am implementing a full text search using AMDP and I want to return also the result of the HIGHLIGHTED function.

But I always get a type-missmatch between the result of the function, and the definition of the output of my AMDP-class.

 

This is the definition of the outpup-structure:

      BEGIN OF ty_struc,

        score         TYPE za_hana_score6_5,

        text          TYPE /bobf/text_content,

        snippet      TYPE string,

        highlighted   TYPE string, " /bobf/text_content,

        host_key      TYPE /bobf/conf_key,

        text_type     TYPE za_bopf_text_type,

        text_subtype  TYPE za_bopf_text_subtype,

        language_code TYPE spras,

      END OF ty_struc,

 

And this is the SELECT-statement:

    rt_table = SELECT

         score() as score,

         content.text ,

         SNIPPETS (text) as snippet,

         highlighted (text) as highlighted,

         collect.host_key,

         hdr.text_type,

         hdr.text_subtype,

         hdr.language_code

 

This is the error I get:

 

return type mismatch: Type "79"  of attribute "HIGHLIGHTED not compatible to type "56"  of attribute "HIGHLIGHTED"

 

where "56" is the definition out of the SELECT.

The SNIPPET works perfectly ...

The original type ( /bobf/text_content ) is also a string.

 

Has anyone any idea how I should define the highlighted-field in the output structure of my class, to avoid this mismatch.

Kind Regards.

Krisz


Viewing all articles
Browse latest Browse all 831

Trending Articles



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