Thank you very much!
I tried replace before and got an activation error so I thought I could not use it. I tried it again and this time it worked.
Here is my new code and the result.
p_r56_errors = CE_PROJECTION (:a_r56_prod_marc_cl30n,
["BSTRF","PACKAGE_WEIGHT",
CE_CALC('"PACKAGE_WEIGHT" + '' ==> ''',NVARCHAR(255)) AS"CC_ERROR_SUB_TEXT1",
CE_CALC('"CC_ERROR_SUB_TEXT1" +
TRIM(REPLACE(REPLACE(REPLACE("PACKAGE_WEIGHT",'','',''''),''lb'',''''),''kg'',''''))',
NVARCHAR(255)) AS"CC_ERROR_TEXT"],
'"PACKAGE_WEIGHT" != ''''');
var_out = CE_PROJECTION (:p_r56_errors,
["CC_ERROR_TEXT",
CE_CALC('1',INTEGER) AS"CM_ONE"]);
