Hi Ray,
I typed this as you suggest
SELECT * FROM TM_GET_RELATED_DOCUMENTS ( DOCUMENT IN FULLTEXT INDEX WHERE "id"=1 as DOCUMENT 'some text here' IN FULLTEXT INDEX WHERE "id"=1 SEARCH "text" FROM "SYSTEM"."inancTrialTrain" RETURN TOP 16 "id", "text" ) AS T;
Again it gave me this error
Could not execute 'SELECT * FROM TM_GET_RELATED_DOCUMENTS ( DOCUMENT IN FULLTEXT INDEX WHERE "id"=1 as DOCUMENT 'some ...'
SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near "IN": line 3 col 10 (at pos 51)