cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member209771
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Surajit,

Feeling strange by reading your question. First, the Form.TypeEx for Special Price in my test DB (French localization) is 668 and not 640.

Second, since you're replacing the whole default global filter... The best bet to explain the fact that the addon is catching nothing regarding the "1470000159" FormTypeEx is... That this is not the correct value.

May you double check both of these?

Regards,

Eric

former_member209771
Active Participant
0 Kudos

Hi Eric,

   Thanks for the reply .I am not sure "1470000159" formtypeex.  Can You help me how to catch the Event for "Period Discount Items- Selections Criteria" ?

Thanks

Surajit