Hi,
Yes possible by SPTN. Try this:
IF @transaction_type in ('A') AND (@OBJECT_TYPE='17')
BEGIN
IF exists (SELECT t0.docentry FROM ORDR T0 INNER JOIN RDR1 T1 ON
T0.DocEntry = T1.DocEntry WHERE T0.[DocCur] = T1.[Currency] and
t0.docentry = @list_of_cols_val_tab_del )
Begin
SET @error = 123
SET @error_message = 'Row currency is not same as document
currency'
End
End
Thanks & Regards,
Nagarajan