2024 Mar 06 1:30 PM - edited 2024 Mar 06 1:33 PM
After migrating customer's servers from SAP9.3 PL12 to SAP 10 2402 (through 2208) our addon started giving back an exception when accessing any property of SelectedObjects from ChooseFromListEvent
System.Runtime.InteropServices.COMException (0xFFFFE1B3): Data Table - invalid Unique Id [66000-138]
bei SAPbouiCOM.DataTableClass.get_IsEmpty()
on line where I use cflEvent.SelectedObjects.IsEmpty, like in code sample:
public bool ProcessItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal)
{
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST && !pVal.BeforeAction && pVal.ActionSuccess && pVal.ItemUID == "edBP") {
var oForm = GetForm(FormUID);
SAPbouiCOM.ChooseFromListEvent cflEvent = pVal as SAPbouiCOM.ChooseFromListEvent;
SAPbouiCOM.Grid grid = SAPUtils.GetControl<SAPbouiCOM.Grid>(oForm, "gRLZ");
if (!cflEvent.SelectedObjects.IsEmpty)
{
SetCardName(oForm, cflEvent.SelectedObjects.GetValue("CardName", 0).ToString());
Dear experts, any ideas what should I do with this? It looks like a bug.
Request clarification before answering.
| User | Count |
|---|---|
| 33 | |
| 18 | |
| 14 | |
| 13 | |
| 9 | |
| 4 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.