Skip to Content

Automatic Insert in User Defined form of Type Transaction

Hello Experts,

I want to insert data from 1 User defined form to Another User Defined form .

For Example We use this for inserting or adding Sales Order Automatically

If objMain.objCompany.InTransaction = False Then

objMain.objCompany.StartTransaction()

End If

Dim oSalesOrder As SAPbobsCOM.Documents

oSalesOrder = objMain.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)

What should i use for adding User defined form automatically of Type Document.

Please Suggest quick reply will be helpful

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 09, 2010 at 01:32 PM

    If I understood it right, you want to insert data from a UDF (User Defined Form) into the database.

    Well if you have a UDO (User defined object) for that form you can use the General Services.

    They will enable you to insert data using the UDO. There are some examples of usage in the SDK Samples.

    An example is here too: [GetGeneralService - No Matching Records Found|GetGeneralService - No Matching Records Found]

    Add a comment
    10|10000 characters needed characters exceeded

    • For the full documentation: please reinstall the "SDK" component.

      • The new version of the "SDK" is part of patch 46 package (2007A)

      After reinstalling the SDK a new version of the "Help Center' will be installed on your station,

      Look for the "General Service" under DI API objects.

      Edited by: Miki Zilbershtein on Feb 4, 2009 7:20 AM

      It seems the sample is only available from the PL 46. Please reinstall the SDK has stated above.

      There is also another good example [here|Register UDO as Business Object;

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.