cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop to delete an item if it is used in transaction

Former Member
0 Kudos

Hi experts

Anyone can tell me how can I stop to delete an item. I have created BinCode which are used inGRPO and Delivery. If a Bincode is used in transaction It should not delete. Which event I use and what logic I use to do this

'

Thanks

Regards

Jitender

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This could be done through SP_Transaction_Notification easily. Check the whole SAP Business One forum to find some examples.

Thanks,

Gordon

Answers (2)

Answers (2)

edy_simon
Active Contributor
0 Kudos

Hi Jitender,

How would you delete the sbin ?

pressing a button ? from menu ?

General Idea would be to catch the item pressed /menu event in beforeaction = true,

And then you query your grpo/delivery table looking if this specific bin is being used.

If it is being used, then you just set the bubbleevent property to false.

Regards

Edy

Former Member
0 Kudos

Hi,

Can u explain a bit more regarding ur problem?

Vasu Natari.