cancel
Showing results for 
Search instead for 
Did you mean: 

Item Could not commit action because it is currently in focus error.

Former Member
0 Kudos

Hi experts,

we developed addons for our client in 2007 B version.

Recently we upgraded our client server from SAP 2007B to 8.8.

The addons worked fine in 2007B.when we upgraded to 8.8 the error is occuring like

"Item-could not commit action because item is currently in focus [66000-23]"

when i disable a textbox(already it is focus) in my form the above error is occuring.

But this error was not happened with 2007B.

Please tell me is there any solution with out changing the code(i am unable to change the code).

Thanks in advance.

Edited by: vivek.Y on Jun 11, 2011 5:15 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Please close your thread if your issue has been resolved.

Former Member
0 Kudos

Hi vivek.Y,

Did you resolved the problem?,

If you did please write how to set an item unfocus, please...

Jonathan Cuesto.

Former Member
0 Kudos

Hi,

Yes i resolved this issue by changing the code only.

when this error occurs i changed the focus in to other control.

Former Member
0 Kudos

Hi Jonathan,

Besides setting the focus and trying to disable the control, it was still throwing exception. So I tried a following:

Work around for this issue.

Try

oForm.Items.Item("ControlWithFocus").Enabled = False

Catch ex As Exception

Dim oItem As Item = oForm.Items.Item("AnyOtherItem")

oItem.Click(BoCellClickType.ct_Regular)

oForm.Items.Item("ControlWithFocus").Enabled = False

End Try

This is a trick where you can set focus to another control and set enable to false.

Hope this helps.

Regards,

Kashif Ali

Edited by: Kashif Ali on Sep 21, 2011 11:43 AM

Former Member
0 Kudos

Hi,

I am afraid you must change the code. At least do a recompile. Who developed the add-on?

Thanks,

Gordon

Former Member
0 Kudos

Thank you Gordon,

But why this change i dont know.Why 2007B supported?

and why 8.8 is not supporting?

Please tell me.

Former Member
0 Kudos

The new version has new functionality so that with new data structure. Unless your add-on do not involve in any updated object, the add-on has to be recompiled to adapt new.