Thanks for your reply.
Current ABAP Custom Code
I am using the below ABAP code in the custom program -> This is in production system and working fine.
IF sy-subrc EQ 0 AND gx_conf_out-atwtb+0(1) EQ 'C' AND gx_conf_out-atwtb NE 'Complete'.
SPLIT gx_conf_out-atwtb AT space INTO lv_dummy gx_conf_out-atwtb .
ENDIF.
I am now trying this in HANA SQL.
I have tried SUBSTR_AFTER and it does NOT work for SPACE Delimiter. I checked the documentation and works for all other Delimiter -> e.g. ':' OR ',' .
My HANA SQL
SELECT a.vbeln, a.posnr, SUBSTR_AFTER(a.atwtb,' ') AS COLUMN1
from : it_vc_config as a
where a.atinn = '0000002975' OR a.atinn = '0000001737' );
SAP Documentation Example:
Example:
SELECT SUBSTR_AFTER ('Hello My Friend','My ') "substr after" FROM DUMMY;
substr after
Friend
My Requirement: (Below is NOT working for SPACE Delimiter )
SELECT SUBSTR_AFTER ('Hello My Friend',' ') "substr after" FROM DUMMY;
substr after
My Friend