Dear All,
I have written one transaction notification for stopping the user to enter the same itemname and Mfr Catalogue No. again.
If @object_type = '4' and @transaction_type in ( 'A','U')
BEGIN
declare @ItmG int
declare @name char(100)
declare @catl char(100)
Select @name=I.ItemName,
@ItmG=I.ItmsGrpCod,@catl=I.SuppCatNum
From OITM I
Where I.ItemCode=@list_of_cols_val_tab_del
If exists (Select I.ItemName From OITM I
Where I.ItemCode!=@list_of_cols_val_tab_del
and I.ItmsGrpCod=@ItmG
and I.ItemName=@name )
Select @error =12,
@error_message = 'Duplicate Item Name!'
If exists (Select I.ItemName From OITM I
Where I.ItemCode!=@list_of_cols_val_tab_del
and I.ItmsGrpCod=@ItmG
and I.SuppCatNum=@catl )
Select @error =12,
@error_message = 'Duplicate Catlog!'
END
I am looking same code in HANA. I am new in HANA. Kindly Help me to get the solution.
Thanks
A Ali