cancel
Showing results for 
Search instead for 
Did you mean: 

Qurery on Add Button of Sales A/R Invoice form

CRVMANISH
Contributor
0 Kudos

Hello sir

I want to do the Update query on add button of Sales A/R From, to update the satus of my user form

plz suggest

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

you can do this by catching the item press event of ok button in add mode and on action success true value you can update your user form values...

Thanks

CRVMANISH
Contributor
0 Kudos

Hello sir,

Thanks for reply

Can u plz send me sample Code for Add Button On System Form , Ex Sales A/R Invoice Form

I know how to do it at user form level

but i wanna do it at Sales A/R Invoice form , Add Button

Former Member
0 Kudos

Hi

you can do this using the form type....like

if formtype=133 and itemuid=1 and actionsuccess=true then

Update your user form

End if

thanks

Former Member
0 Kudos

If pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE And pVal.BeforeAction = False Then

Dim oForm As SAPbouiCOM.Form

oForm = SBO_Application.Forms.Item(FormUID)

If oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then

If pVal.ActionSuccess = True Then

Try

' setVisibilityForControlPQ()

SetInitialDataPQ()

Catch ex As Exception

ShowErrMsg("Event Error et_ITEM_PRESSED: " & ex.Message)

Finally

End Try

End If ' action close

End If 'mode close

End If 'else if

Answers (0)