on 09-10-2009 4:29 AM
I have performed certain calculations when a record is added in A/R invoice.I have called the function on the et_FORM_DATA_ADD event as,
If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD And (BusinessObjectInfo.FormTypeEx = "133") And BusinessObjectInfo.ActionSuccess = True Then
SaveStockTrans()
End If
Usually the event fires once but sometimes it fires twice.I can not predict when it fires twice.
Hi Dilip,
Since you have the problem with this Form Data Add event and not able to monitor the bizarre occurrence, I suggest you use the Item_Pressed event, Item UID = "1" and Before_Action = False. That is more reliable and will ease out the pain area you are facing.
Hope this helps.
Regards,
Satish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Dilip Kumbhar,
Do you add the code
BusinessObjectInfo.BeforeAction = false
to filter the event?
Is there any approval defined for the document?
I found if the document is need to be approval then it may trigger twice FORM_DATA_ADD event.
Best Regards
Jane Jing
SAP Business One Forums team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.