cancel
Showing results for 
Search instead for 
Did you mean: 

ActionSuccess property doesnu00B4t seem to be fired.

Former Member
0 Kudos

Hi all,

I´m trying to catch the click event on button 3 (Create) in the purchase order confirmation form (65). I can catch the event before the purchase order is created. But not after. The problem is that ActionSuccess is never true.

Next code never gets into the if:

If pVal.FormType = 65 Then
   If pVal.ItemUID = "3" 
      And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK 
      And Not pVal.BeforeAction And pVal.ActionSuccess Then
         'Never executes this
         Dim oForm As SAPbouiCOM.Form
         oForm = con.Forms.Item(FormUID)
         GetPrices(oForm)

   End If

End If

Could someone clear me why?

Thanks in advance,

Ibai Peñ

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

EventFilter turned off?

Ibai, I tryed your code and get the same result.

If I use et_ITEM_PRESSED instead of et_CLICK it works for me.

I could imagine et_CLICK is meant more technically wheter et_ITEM_PRESSED indicates that an action will pass / has passed.

However, does et_ITEM_PRESSED work for you, too?

Flo

Message was edited by: Florian Zeller

Former Member
0 Kudos

Hi Florian,

Using et_ITEM_PRESSED doesn´t work for me, becouse the ActionSuccess property is never true. Could you post the code that worked for you?

And not, the EventFilter is not turned off.

Thanks,

Ibai Peñ

Former Member
0 Kudos

Using et_ITEM_PRESSED doesn´t work for me, becouse

the ActionSuccess property is never true. Could you

post the code that worked for you?

Okay, I'm sorry not to know how to perform a purchase order confirmation (how to open form 65), I tested with form 142 - maybe this is the difference between our tests. How do I open form 65?

The ActionSuccess property is true for me if BeforeAction is false, see:

http://www.chuebueb.ch/lib/images/sbo/actionsuccess.gif

    
    If pVal.FormType = 142 Then
        If pVal.ItemUID = "1" Then
            If pVal.EventType = et_ITEM_PRESSED Then
                If Not pVal.BeforeAction And pVal.ActionSuccess Then
                        SBO_Application.MessageBox "Yep"
                    End If
                End If
        End If
    End If

And not, the EventFilter is not turned off.

I meant, are you shure you do not filter any event you want to catch...?

Former Member
0 Kudos

Hi Florian,

thanks for your fast answer.

I´m sure that ActionSuccess property is not filtered becouse I havent set any EventFilter, and ActionSuccess works for other buttons.

By the way, form 65 is opened when you check the "Purchase Orders" option in the logistics pane in a sales order. Or when the items in the sales order are in a dropship warehouse.

I have tryed without the BeforeAction property, but still ActionSuccess doesn´t seem ever to be true.

Could you confirm it? If if yes, please could someone from SAP tell us why is this happening?

Thanks for your help,

Ibai Peñ

Former Member
0 Kudos

Hi Ibai,

sorry for the delay, I just did some testing and want to confirm your issue from my side: I think I get the same result as you describe.

If I catch ANY event for item "3" on form 65, I get the following sequence:

1. et_CLICK, BeforeAction=true, ActionSuccess=false

2. et_CLICK, BeforeAction=false, ActionSuccess=false

I don't even GET an et_ITEM_PRESSED...

Bye

Flo

Former Member
0 Kudos

Thanks Florian for your time.

Seen that both of us have reached the same conclusion,

could someone from SAP tell us why isn´t the ActionSuccess event raised?

Regards,

Ibai Peñ

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I have tested and arrived to the same conclusion.

For the specific case of the Form "65" you don't receive an et_ITEM_PRESSED event.

<b>Have you already created a message into CSN?

If you haven't please do it and let as now.</b>

Usually when we want to verify an action was successfully done we want to control it after button OK is pressed for example and then we use the et_ITEM_PRESSED.

The et_CLICK occurs on every item, it does not always have an associated action.

The et_ITEM_PRESSED is only thrown for some items like Buttons, TabFolders and some more; and it means an action is done in consequence like add, find, change current folder tab,..

Regards

Trinidad.

Answers (0)