Skip to Content

Business Partner Catalog Numbers 'Update' event not triggered in first attempt.

While clicking 'Update' button first time in 'Business Partner Catalog Numbers' window, 'SBO_Application_FormDataEvent' is not triggered in the case of

BusinessObjectInfo.BeforeAction == false && BusinessObjectInfo.ActionSuccess == true.

First time only triggered the FormDataEvent , i mean 'BusinessObjectInfo.BeforeAction == true&& BusinessObjectInfo.ActionSuccess == false.'

But, i want to triggered the event BeforeAction==false and ActionSuccess==true case.

Please suggest me.

bp-catlogs.png (19.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Hi All,

    While clicking 'Update' button in Business Partner Catalog window for the first attempt, below event is not triggered.

    if (BusinessObjectInfo.FormTypeEx == "993" && BusinessObjectInfo.Type == "73" && BusinessObjectInfo.BeforeAction == false && BusinessObjectInfo.ActionSuccess == true && BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE)
    {
    //Inside logic
    }

    I'm looking for after ActionSuccess in SAP B1, i want to create a logic inside.

    Please suggest me, if I'm missing anything.

    Thanks,

    Chenna

  • Get RSS Feed

2 Answers

  • Oct 12, 2017 at 12:46 PM

    Hi,

    If you want to write your logic after the data is added successfully, just use ActionSuccess== true.

    If you want to write your logic before the data is added successfully, just use ActionSucess== false.

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2017 at 01:44 PM

    OK

    Understood, you want "ActionSuccess = True" condition and this is only possible when BeforeAction = False.

    And you can try SBO_Application_ItemEvent to achieve that condition.

    Regards

    Bhupendra

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Jadhav,

      Thank you for your quick replay,

      but, if i write the condition in SBO_Application_ItemEvent, pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE not triggered.

      if (((pVal.FormType == 993 & pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) & (pVal.Before_Action == false) & (pVal.ActionSuccess == true)))
      {
      }

      Actual issue is, while clicking update button on Business Partner Catalog Numbers window, very first attempt SBO_Application_FormDataEvent is triggered, but in the case of BusinessObjectInfo.ActionSuccess == false.

      But i want to triggered the FormDataEvent after the ActionSuccess true 'BusinessObjectInfo.ActionSuccess == true'

      Regards,

      Chenna