Skip to Content
0
Jun 26, 2015 at 01:44 PM

How catch event of SAP B1 9.1 Period Discount Items- Selections Criteria ?

41 Views

Hi Expert ,

I am trying to catch event of "Period Discount Items- Selections Criteria" form .But not able to catch the event below is my code :

SAPbouiCOM.EventFilters oFilters;

SAPbouiCOM.EventFilter oFilter;

oFilters = new SAPbouiCOM.EventFilters();

oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_ALL_EVENTS);

oFilter.AddEx("1470000159");//Period Discount Items- Selections CriteriaSpecial Price

oFilter.AddEx("640");//Special Price

SBO.SBO_Application.SetFilter(oFilters);

SBO.SBO_Application.AppEvent += new SAPbouiCOM._IApplicationEvents_AppEventEventHandler(SBO_Application_AppEvent);

SBO.SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(SBO_Application_DataEvent);

In above code for Special price event is working fine .Please give me suggestion why "Period Discount Items- Selections CriteriaSpecial Price" event is not working.

Thanks

Surajit