cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Screen After the Add Button is pressed and the document is saved

Former Member
0 Kudos

Hi All,

I am trying to the Display the Landed Cost screen after the Goods Receipt PO has been added and Saved.

My code below: <b>If pVal.ItemUID = "1" And pVal.FormTypeEx = "143" And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE And pVal.BeforeAction = False Then

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then

Dim oMenuItem As SAPbouiCOM.MenuItem

oMenuItem = SBO_Application.Menus.Item("2310") 'modules 2310 is the Landed cost screen'

oMenuItem.Activate()

End If

End If</b>

It displays the landed cost screen when i Click the add button, But I need to display it after the the document has saved, ANy inputs on the same!

Your help is appreciated!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vinayak,

Change the code

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then

to

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then

And it will work.

Best Regards,

Nick He

FOA
Advisor
Advisor
0 Kudos

Hi Vinayak,

Check this thread out, you will find useful code. The property "ActionSuccess" can be used in your case. Check how it was used in this example:

Specifically i refer to this line:

If pVal.ItemUID = "1" And pVal.ActionSuccess = True And pVal.BeforeAction = False

Regards,

Felipe

Answers (0)