Skip to Content
Former Member
May 14, 2011 at 07:33 AM

Update Database Field According to the Addition of OutGoing Payment



I make an userField Refund in Incoming & Outgoing Payments.

The valid values for Refund field is 'Y' & "N' and the default value of this field is 'N'.

I want to update it to 'Y' when I add an OutGoing Payment.

I use the Follwing Code to do this.

If ((pVal.FormType = 426 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = False)) Then

If pVal.FormMode = 3 And pVal.ItemUID = "1" And pVal.ActionSuccess = False Then

call Update_Refund() 'Function

End If

End If

But the Field is updated before addition of OutGong Payment.

Because One can add OutGoing Payment after clicking the Add Button of the messagebox

"You cannot change this document after You have added it.Continue?" .

The formid of the above messagebox is 0.

So which event & which formid should I use?



Edited by: ghosh.nabanita on May 14, 2011 1:03 PM