Hi,
I know SBO 2004 is no longer supported, but one customer is still running 2004. Before upgrading to the next version its required to cancel some (10.000+) journal entries. For this reason I developed a little tool which does the required mouseclicks via UI-API.
My problem is to catch the messagebox form load event from the "Create Reversal from transaction" popup. In 2005 everything works... but in 2004 I am not able to handle the event.
I am using following code:
The m_MsgBoxEvent is true if the event should be triggered. In my case the bool is set to true.
private void UI_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent) { if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD && pVal.FormType == 0 && pVal.BeforeAction) { if (m_MsgBoxEvent) { this.OnMessageBoxShow(FormUID, ref pVal, out BubbleEvent); } } else { this.OnAnyItem(FormUID, ref pVal, out BubbleEvent); } BubbleEvent = true; }