Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2756

Re: Item Master Data Restrictions

$
0
0

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


Viewing all articles
Browse latest Browse all 2756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>