Hi
I am using Sap b1 Hana Database . I have below code . I want to display v_DpmBal value with error message . If i try like below i am getting error Invalid Number.
error_message:= 'Please select Down Payment Entries. Down Payment Balance : ' + v_DpmBal;
SQL
IF (:v_DpmBal > 0 And :v_DpmAmnt = 0)
THEN
error:= v_DpmBal;
error_message:= 'Please select Down Payment Entries. Down Payment Balance : ' ;
END IF;Thanks

Amit MohantyRank #112 · 20K reputationPosted Jan 7, 2025, 2:36 AM EST
You can use the TO_NVARCHAR function to convert the numeric value to a string.
IF (:v_DpmBal > 0 AND :v_DpmAmnt = 0) THEN error := :v_DpmBal; error_message := 'Please select Down Payment Entries. Down Payment Balance : ' || TO_NVARCHAR(:v_DpmBal); END IF;