Skip to Content

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

Pop up new form(Purchase Order) with current data

Dear All,

i have created a COPY TO button in my addon form. Now my quiry is that when ever i press the COPY TO button the purchase order form will open with my addon form data. Kindly suggest me the code.


Sanjoy Paul



use this code...



oForm = SBO_Application.Forms.ActiveForm

OItem = oForm.Items.Item("4")

Oedit = OItem.Specific

Oedit.Value = vendor.ToString()

rs1 = Nothing

rs1 = OCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)

'rs1.DoQuery(" Select Ur Table")

'OItem = OPOForm.Items.Item("aaa")

'Oedit = OItem.Specific

'Oedit.Value = rs1.Fields.Item("Ur - Field").Value & ""

OItem = OPOForm.Items.Item("bbb")

Oedit = OItem.Specific

Oedit.Value = rs1.Fields.Item("Ur - Field").Value & ""

Catch ex As Exception


End Try

REM Matrix

OItem = oForm.Items.Item("38")

oMatrix = OItem.Specific

oCols = oPoMat.Columns REM Columns

Oedit = oCols.Item("1").Cells.Item(1).Specific 'item no

Oedit.Value = itmcd.ToString()

It Will Work...


Billa 2007

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question