cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem when opening add-on form in SAPB1.

Edmundo
Discoverer
0 Kudos
223

When initializing the add-on, it creates new options in the modules menu, when clicking on them to deploy the form it does not appear, this has been happening to me repeatedly in SAP 10 FP2111 with HANA version.

The code I use is the following:

Public Sub LoadFormXML(ByVal FileName As String, ByRef SBO_Application As SAPbouiCOM.Application)

Dim oXmlDoc As Xml.XmlDocument
oXmlDoc = New Xml.XmlDocument
Dim sPath As String
sPath = IO.Directory.GetParent(System.Windows.Forms.Application.StartupPath).ToString
sPath = System.Environment.CurrentDirectory
oXmlDoc.Load(sPath & "\" & FileName)
SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)

End Sub


It does not seem to give me problems in other SAP environments.
The error is solved automatically when opening any SAP window. Even if you leave the system log messages active, just by being active the error does not happen, but the correct thing is that no extra action is needed by SAP and the .xml forms are displayed without problem.

Has this happened to anyone and does anyone have a workaround for this?

Accepted Solutions (0)

Answers (0)