on 11-21-2014 4:45 AM
Hi,
Please post your stored procedure here to check.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagarajan,
i can share my SP.
USE [DatabaseName]
GO
/****** Object: StoredProcedure [dbo].[SBO_SP_TransactionNotification] Script Date: 11/21/2014 10:07:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
--------------------------------------------------------------------------------------------------------------------------------
-- ADD YOUR CODE HERE
if @object_type = '17' and @transaction_type = 'A'
begin
if (select ORDR.NumAtCard from ORDR
where ORDR.DocEntry = @list_of_cols_val_tab_del) is null
begin
--------------------------------------------------------------------------------------------------------------------------------
-- Select the return values
set @error = -5001
set @error_message = N'Please Enter Value'
end
end
end
Hi Dillibabu,
I got solution as per your scenario that whenever i click on add button it will generate error.
But my actual scenario is that :
I have created Four UDF in SO.
1) After i add new SO by click on add button then it will added and when i re-open it then it give me some value in UDF but it cannot store it db, after i make minor changes to re-open SO then it store it's value.
2) so for that every time i click Shift + F2 and it give me value.
can i use for that transaction notification for UDF.?
Regards,
Nikunj
Hi Nikunj,
I think you have deleted this query in your transaction notification page. Kindly paste this at last of your transaction notification page.
select @error, @error_message
end
With regards,
BHARATHIRAJA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.