Hi,
Are you adding solution and service call at same time? If yes, try this query to block.
IF @transaction_type in ('U') AND (@OBJECT_TYPE='191')
BEGIN
If not exists (SELECT T0.[callID] FROM OSCL T0 left JOIN SCL1 T1 ON T0.callID = T1.srvcCallID WHERE T1.[solutionID] = 0 and T0.[callID] = @list_of_cols_val_tab_del)
Begin
SET @error = 10
SET @error_message = 'Not allowed to delete solution'
End
End
Thanks & Regards,
Nagarajan