cancel
Showing results for 
Search instead for 
Did you mean: 

How to block a doc posting through SBO Transaction Notification Stored Pro?

Former Member
0 Kudos

My client is a pharma company and due to regulatory reasons, they have to assign a batch no whenever they create a production order. For that, I mapped the production order no as their batch no. But they dont want to craete a batch if raw material for specific production order is not available. So they want the production order to be posted in the system if the planned qty at production ordder equal to or lesser than available qty otherwise system should block its postings. Is it possible through SBO Transaction Notification Stored Procedures?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member204969
Active Contributor
0 Kudos

You can insert a code into the procedure like this ((if you see into it, you see where):

if @object_type=202 and @transaction_type=’A’

BEGIN

/* The doc entry value of the production order is in the @list_of_cols_val_tab_del variable, starting from it you can check the available component quantities here. */

If /* there is not enough component */

begin

set @error = 11 /* or other non zero number */

set @error_message =’There is not enough component ’

end

END