Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3347

Re: SPLT FUNCTION IN HANA SQL

$
0
0

Thanks for checking..

I tried with one Space and 2 spaces.... I guess I can still do the SPLIT in the abap layer.

 

 

ATWTB has value ->  'CLH001001000 2100C';  ONLY one SPACE between two strings.

The result should be -> 2100C    but I get the complete string in the output -> CLH001001000 2100C

 

My HANA SQL

    SELECT a.vbeln, a.posnr, SUBSTR_AFTER(a.atwtb,'  ') AS  COLUMN1

                   from : it_vc_config as a

                   where a.atinn'0000001737' );

 

I tried using   

           -> SUBSTR_AFTER(a.atwtb,'  ')

          -> SUBSTR_AFTER(a.atwtb,'   ')

           -> SUBSTR_AFTER(a.atwtb,'    ')

 

Also used the  variable approach..

 

 

declare v_space    varchar(1) :='   ';

 

 

-> SUBSTR_AFTER(a.atwtb, v_space)


Viewing all articles
Browse latest Browse all 3347

Latest Images

Trending Articles



Latest Images

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