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

copying one udo object data to another


My scenario which I would like to achieve is this:

I have two udo objects. I created them with B1 DE.

From withing one form I (which is based on udo1) I would like to programmaticaly open another form (which is based on udo2).

This newly created form should be in add mode. Then I would like to copy some of the data from udo1 data table (in database)

to udo2 data sources (like data tables, dbdatasources).

This is important - data that is already in database in udo1 should be copied first to udo2 data sources and then eventually to database.

How to achieve this?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2009 at 08:21 AM


    copy using data sources

    strQuery5 = "SELECT * FROM [yourfitstudo]

    objRec = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)


    If objRec.RecordCount > 0 Then

    objSecondUDO= bForm.DataSources.DBDataSources.Item("@SecondUDO_TABLE")

    objSecondUDO.SetValue("U_EnvItmCd", objSecondUDO.Offset, objRecSet.Fields.Item("U_EnvItmCd").Value)

    end if



    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.