cancel
Showing results for 
Search instead for 
Did you mean: 

Lock activities in SAP Business One

Former Member
0 Kudos
92

The system allows Sap B1 delete activities. I am using the following command to stop it. I'm not successful.


SAP Business One 9 PL 16


Command in procedure SBO_SP_TransactionNotification


IF @object_type='33' AND (@transaction_type in ('D','C'))

BEGIN

  IF(

  Select

  count(*)

  from OCLG T0

  WHERE T0.parentId='28' AND T0.ClgCode=@list_of_cols_val_tab_del ) >0

  BEGIN

  select @error = '33'

  select @error_message = N'atividade amarrada a chamado de serviço!'

  END

END

Help Me?

View Entire Topic
Former Member
0 Kudos

My problem was solved with the following code:

The Sap Business One did not allow me return messages however blocked the removal of the activity.

I could not apply a condition to lock. The system caught all processes to delete the document.

I solved my problem this process. Thank you all for your support.

IF @transaction_type='D' and @object_type='33'

Begin

  select @error ='33'

  select @error_message = N''

End