Skip to Content
0
Former Member
Jan 11, 2011 at 08:04 AM

SBO_SP_TransactionNotification object_type

209 Views

8.8 PL16

SBO Demo Database

No Add Ons

I have added code to SBO_SP_TransactionNotification for Goods Receipt PO, but noticed it was not running.

IF @object_type = '20'

BEGIN

....

END

I have also tried @object_type = N'20'

The code within my IF was not getting executed. So I simply removed everything that I added and assigned the error_message to object_type and assigned the error to -1.

declare @error int -- Result (0 for no error)

declare @error_message nvarchar (200) -- Error string to be displayed

select @error = -1

select @error_message = N'Ok'

-


set @error_message = @object_type

-


-- Select the return values

select @error, @error_message

When I add a Goods Receipt PO, I the error message is 10000062.

If I add a Purchase Order the error message is 10000013.

Invoice -> 10000062

What am I missing?

Edited by: Jeff Campbell on Jan 11, 2011 1:05 AM