SBO SP TransactionNotification Problem
SBO SP TransactionNotification Problem
The SBO_SP_TransactionNotification
Problem
This document explains the problems you can experience due to misconfigurations of the SAP provided
Stored Procedure SBO_SP_TransactionNotification
Table of Content
The problem ...................................................................................................................................................... 2
Problem 1: Main window configuration problem ........................................................................................ 2
Problem 2: Configuration add problem......................................................................................................... 3
Problem 3: You get the following error during startup ................................................................................. 3
The solution ....................................................................................................................................................... 4
How to get to the problem ............................................................................................................................ 4
How to determine what the problem is and fix it ......................................................................................... 7
1. Incorrect use of the SBO_SP_TransactionNotification by other add-ons/consultants ......................... 7
2. Incorrect object_type (Normally only an issue if the database have been created prior to SBO2005)
................................................................................................................................................................. 12
New in 8.8: SBO_SP_PostTransactionNotice ................................................................................................... 12
More information ............................................................................................................................................ 13
The problem
I receive one of the following 3 errors:
Or you are able to show the B1UP main configuration, but unable to check any of the checkboxes
(The table mentioned in the error might be different, and it can also refer to an issue adding a UDF, KEY or
UDO, but since tables are created first in add-ons it is most likely to see the issue with a table)
The solution
How to get to the problem
On your SAP server go to the SQL Server Management Studio
Find the database in question and navigate to the Programmability > Stored Procedures Folder
Find the stored procedure called dbo.SBO_SP_TRansactionNotification; right click it and choose modify.
This will open up the code to the stored procedure that holds the problem. The following screenshot show
the code without any modifications .
NB: AS THIS IS A LEGAL STORED PROCEDURE TO MODIFY THERE MIGHT BE SOMETHING IN THE ADD YOUR CODE HERE
SECTION DEPENDING ON THE OTHER ADD-ONS YOU ARE RUNNING.
NB: BOYUM IT A/S CANNOT TAKE ANY RESPONSIBILITY IN THE CHANGES YOU MAKE IN THE
SBO_SP_TRANSACTIONNOTIFICATION SINCE EACH CASE IS UNIQUE, AND YOU SHOULD ALWAYS MAKE A BACKUP OF THE
ORIGINAL BEFORE PROCEEDING.
IF YOU KNOW WHO ARE RESPONSIBLE FOR THE CUSTOM CODE, YOU SHOULD CONTACT THEM AND CONFRONT THEM WITH THE
ISSUE. ELSE YOU CAN SAVE AND SEND A COPY OF YOUR CODE OR TAKE A SCREENSHOT TO BOYUM IT SUPPOT AT
[email protected] AND WE WILL TAKE A LOOK AT IT AND ADVICE YOU ON THE MISCONFIGURATION.
Issue
Issue
As you can see, there have been added a few SQL-IF’s that check if the @object_type is of type A/R Invoice
('13') or if the object_type is a sales order ('17'), but the consultant expected that all values of
@object_type was numeric (a number), but it is not for Userdefined Objects and User-defiend tables
(Indicated by the fact that object_type is of type nvarchar(20) and not INT.
The fix how-ever is quite easy. All you need to do is assure that all checks are done on an alphanumeric
level.
Correct Incorrect
If you find it hard to find all instances in a very long modification you can alternative do the following
Correct Incorrect
The issue
As you can see, there have been added an extra INSERT SQL statement and that is the issue since it is not
able to accept the data given to it.
Correct Incorrect
Here there are code that refer to a table that does not exist (Perhaps it existed at some point but was later
removed but this modification referring to it was left there). In such a case no objects can be added at all in
the SAP database and this code should be removed in 99% of the cases.
In very rare case this have been added as an add-on is about to make the tables but due to a change in
SBO8.81 this modification can also affect the creation of the tables as the action of creating a table now
also is sent through the SBO_SP_TransactionNotification and you end you with Problem 3 failing to create
the user table/field/key/udo.
2. Incorrect object_type (Normally only an issue if the database have been created prior to
SBO2005)
Please find the following line of code
And make sure that the type is “nvarchar(20)”... if there instead of “nvarchar(20)” shows “int” you have
found the problem.
Correct Incorrect
@object_type nvarchar(20), @object_type int,
@transaction_type nchar(1), @transaction_type nchar(1),
@num_of_cols_in_key int, @num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255), @list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255) @list_of_cols_val_tab_del nvarchar(255)
To fix the problem simply replace the “int” with “nvarchar(20)” and
New in 8.8
This stored procedure run after the normal "SBO_SP_TransactionNotification", but other than that they
both have the same structure and can both hold the issue. If you have the issues mentioned in this
document and that trying the above fixes you still have issue, you should check the
"SBO_SP_PostTransactionNotice" for the same flaws using the same methods.
More information
If you like to know more, please check out the following SAP notes describing the problem on
http://service.sap.com/notes: