cancel
Showing results for 
Search instead for 
Did you mean: 

COpyTo Functionality

former_member609283
Participant
0 Kudos

Hey Everyone,

  I want to know how CoyTo Functionality works??

As I have a Custom Developed form using UDO, in which there is a ComboButton,when I click on it, A/R Invoice System Form open having the info that is on custom developed form.

How can I do this??

Please provide me any example...

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi.

yesh it is possible.

Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT

                        Try

                            If pVal.BeforeAction = False Then

                                Select Case pVal.ItemUID

                                    Case "c_sname"

Suppose ur udo is having the combobox  u can use above code

then u have to open sap system form.

so u ahve to active

before opening the form here

u have to save the udo matrix detials in some location mean

if u take data table by using data table

dt u have to same the data

like

itemcode itemnaem qty price

sbo_applicaiton .Activemenutiem("formuid")

form will be open ok..

here.copy the values into matrix.

  If (oForm.TypeEx = "133") Then

                                        Dim orec1 As SAPbobsCOM.Recordset

                                        For z As Integer = 1 To orec1.RecordCount

                                            oForm = SBO_Application.Forms.GetFormByTypeAndCount("133", 1)

                                            omatrix = oForm.Items.Item("38").Specific

                                            omatrix.Columns.Item("1").Cells.Item(z).Specific.value() = orec1.Fields.Item(0).Value

                                            omatrix.Columns.Item("3").Cells.Item(z).Specific.value() = orec1.Fields.Item(1).Value

                                            omatrix.Columns.Item("11").Cells.Item(z).Specific.value() = orec1.Fields.Item(2).Value

                                            orec1.MoveNext()

                                        Next

                                    End If

-------------------------

1) firing event after select the  button comobo

2) saving udo values into dt table

3) copy the values to the systme form matrix...

Former Member