Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

new submenu + screen painter

I created new sub menu 'PR' under AP, and also used screen painter to draw the form layout.

However, I tried to link them up, but is fails....

How to solve it? Is the following code suitable?

private void LoadFromXML(ref string FileName)

{

System.Xml.XmlDocument oXmlDoc = null;

oXmlDoc = new System.Xml.XmlDocument();

// load the content of the XML File

string sPath = null;

sPath = System.IO.Directory.GetParent(Application.StartupPath).ToString();

sPath = System.IO.Directory.GetParent(sPath).ToString();

oXmlDoc.Load("D:
Program
SAP
SAPPR
" + FileName);

// load the form to the SBO application in one batch

string sXML = oXmlDoc.InnerXml.ToString();

System.Windows.Forms.MessageBox.Show("ckpt 0400");

SBO_Application.LoadBatchActions(ref sXML);

System.Windows.Forms.MessageBox.Show("ckpt 0500");

}

Former Member
Not what you were looking for? View more on this topic or Ask a question