Skip to Content
0
Sep 20, 2005 at 12:53 PM

Invalid Form -7000

31 Views

Hi to all.

I'm tring to load a custom form by the XML provided from the GetAsXML's standard form.

Dim fcp As SAPbouiCOM.FormCreationParams

Set fcp = SBO_Application.CreateObject(BoCreatableObjectType.cot_FormCreationParams)

Dim StdFormXML As String

If Not FileToStr("InvValReport.srf", StdFormXML) Then

MsgBox "Error"

Exit Sub

End If

With fcp

.uniqueID = "myF_37"

.FormType = "9999"

.BorderStyle = fbs_Fixed

.XmlData = StdFormXML

End With

Set oForm = SBO_Application.Forms.AddEx(fcp)

The AddEx method fails with "Invalid Form -7000".

I've already changed the fcp.uniqueID, fcp.FormType and fcp.BorderStyle as in xml file (StdFormXML variable).

Some idea?

Ciao.

Nicola