Hi ,
You can use SBO Transaction Notification SP for restrict the creating and updating item master.
Please use below mentioned SQL query.
Please replace 'XXXXXXXXXXX' with correct Item Group name and the 'Error Msg' as well,
The SP_TransactionNotification Stored Procedure
-----------------------------------------------------------------------------------------
if @object_type = '4' and @transaction_type in ('A', 'U')
Begin
if Exists( select 1 from OITM inner Join OITB on OITM.ItmsGrpCod = OITB.ItmsGrpCod where OITB.ItmsGrpNam = 'XXXXXXXXXXX' and OITM.ItemCode= @list_of_cols_val_tab_del)
begin
set @error =999
set @error_message = 'Error Msg'
End
End
--------------------------------------------------------------------------------------------
Thank You,
Iran