Hi Justice Doku...
Why you have liked the OACT any reason behind it?
--- SP for Row Level Project
IF
@transaction_type = N'A' AND @Object_type = N'30'
BEGIN
IF exists (SELECT T1.Project
FROM JDT1 T1
INNER JOIN OJDT T0 ON T1.TransID = T0.TransID
WHERE T0.TransID = @list_of_cols_val_tab_del and Isnull(t1.Project,'') = '' )
Begin
select @Error = 1, @error_message = 'project code missing in Row Level'
End
END
--------------------------------------------------------
--- SP for Header Level Project
IF
@transaction_type = N'A' AND @Object_type = N'30'
BEGIN
IF exists (SELECT T0.Project
FROM JDT1 T1
INNER JOIN OJDT T0 ON T1.TransID = T0.TransID
WHERE T0.TransID = @list_of_cols_val_tab_del and Isnull(To.Project,'') = '' )
Begin
select @Error = 1, @error_message = 'project code missing in Row Level'
End
END
Hope Helpful
Regards
Kennedy