Skip to Content
0
Nov 22, 2017 at 01:34 PM

How to set condition by using Yes or No button of message box in SAP B1?

1349 Views

Hi all,

How can I set condition by using Yes or No of message box of You cannot change this document after you have added it. Continue?

Actually I can do codes of to execute instructions before and after adding Document in SAP B1 like this

If pVal.FormType = 133 AndAlso pVal.ActionSuccess = False AndAlso pVal.EventType = BoEventTypes.et_ITEM_PRESSED AndAlso pVal.ItemUID = "1" AndAlso pVal.FormMode = 3 Then
'Instructions here
End If

But Now I want if I click Yes button of message box then execute instructions before adding document in DB, if I click No then no execution of instructions will be

Please anyone can help me