Folder Already Exists [66000 – 11]

Hi, currently i’m working on a Add-On for SAP Business One. But Whenever i open the SRF that i used in Visual Studio to open the form in SAP Business One, i encounter a problem. Where the SAP Said i already open the form, and then it detected the form is already exists. But in fact the form is not opened, can anyone help me to fix this ? i already tried to make another SRF but couldn’t work either. It’s a pleasure to be helped.

this is my code for MenuEvent_Handler

public void HandleMenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
{
BubbleEvent = true;

try
{
if (pVal.MenuUID == “SOL_AUTO_JRNL”)
{
MenuEvent_Handler(ref pVal, out BubbleEvent);
}

}
catch (Exception ex)
{
oSBOApplication.MessageBox(ex.Message);
}
finally
{
BubbleEvent = false;
}
}

 

 

public void MenuEvent_Handler(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
{
BubbleEvent = true;

try
{
SAPbouiCOM.Form oForm = oSBOApplication.Forms.Item(“form_Utama”);

if (pVal.BeforeAction == true)
{
XMLLoader oXMLLoader = new XMLLoader();
XmlDocument oXMLDoc = new XmlDocument();
SAPbouiCOM.Matrix oMtx;

DateTime current = DateTime.Today;

//Start Load Form Function
oXMLDoc.Load(“MenuUtama.srf”);
oSBOApplication.LoadBatchActions(oXMLDoc.InnerXml);
}
}
catch (Exception ex)
{
oSBOApplication.MessageBox(ex.Message);
}

}

Scroll to Top