cancel
Showing results for 
Search instead for 
Did you mean: 

SBO hangs with FORM_DATA_ADD

Former Member
0 Kudos

Hi!

I listen to the event FORM_DATA_ADD with before_action = false on Form 65.

Then I think that all the transactions is finished from SBO side. But when I try to update a row in ordr(when the event is triggered) the whole system hangs. I can´t query the db for the record either.

I use PL18

Have tested it with PL10 and there it works.....

Message was edited by:

Toni Hopperstad

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member189387
Active Contributor
0 Kudos

Hi Toni Hopperstad ,

If you want to know whether the Add event succesfully completed or not you have to catch the FormDataEvent.

Which pings you whether the event has successfully happened or not .

'/************** This is the Event Declaration in VB.Net

Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent

'/// Here u have to add the Following code

end sub

'///*******************************************

Within this you have to catch Your form that is 65 as ,

''/*************************************************

If (BusinessObjectInfo.FormTypeEx.Equals("65")) And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) And (BusinessObjectInfo.ActionSuccess) Then

'SBO_Application.MessageBox("Data Added")

'// If you want to update any thing do here

End If

''//*************************************************

Here ( BusinessObjectInfo.ActionSuccess ) plays keyrole

Hope it helps

Best Regards .,

V.Rangarajan

Former Member
0 Kudos

Thanks for the answer!

Have you tried this and tried to update the spesific salesorder row you are creating an purchaseorder on in the form_data_add event?

Seems like the salesorder has a transaction going on until the purchase form with id 65 is closed.

It works for me to in 2005 PL10 but not in PL18. Why?

Former Member
0 Kudos

Hi!

Removed the line: purchaseOrders.Browser.MoveFirst()

and everything works fine.. Don´t understand why this should be a problem but now it works.