Hi,
Please try this,
IF @object_type = '4'
AND @transaction_type IN ( 'A','U')
BEGIN
if EXISTS (Select t0.SWW from OITM T0
where T0.SWW IS NULL and T0.ItemCode=@list_of_cols_val_tab_del)
begin
SElect @error = -1
SElect @error_message= 'Additional Identifier field mandatory'
end
end
Thanks