Skip to Content
author's profile photo Former Member
Former Member

Copy system forms ?

Is their any way to copy system forms (only UI) and customise to create new forms ?

For ex, I would like a form similar to the look and feel of the sales order. Therefore, I would like to copy the UI and change it to my need and code its funtionality.

Please advice.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 08:46 AM

    Dear Gautam Ganguly:

    suppose that you have opened the Sales Orders Form

    Solution 1:

    -


    Private WithEvents SBO_Application As SAPbouiCOM.Application

    Dim oFormParams As SAPbouiCOM.IFormCreationParams

    Dim oForm As SAPbouiCOM.IForm

    Dim oTestForm As SAPbouiCOM.IForm

    Dim oXmlDoc As Xml.XmlDocument

    oForm = SBO_Application.Forms.GetForm("139", 1)

    oString = oForm.GetAsXML()

    oFormParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)

    oFormParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed

    oFormParams.FormType = "testForm"

    oFormParams.UniqueID = "testForm"

    oFormParams.XmlData = oString

    oTestForm = SBO_Application.Forms.AddEx(oFormParams)

    -


    Solution 2:

    -


    oForm = SBO_Application.Forms.GetForm("20700", 1)

    oString = oForm.GetAsXML()

    ' here you have to close Sale Order Form, or you can change your oString with another different

    ' form UID, otherwise, when load batch action, form existing error will display

    oXmlDoc = New Xml.XmlDocument

    oXmlDoc.LoadXml(oString)

    SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)

    -


    Thanks

    Warren

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.