Transfer PO info from PO to vendor invoice


I would like to transfer a field value from PO to vendor invoice when user is creating vendor invoice from PO. for example i wish to transfer requester value from PO to vend invoice. I went to the code and it looks very tricky. Can anybody please help me with this?

Thank you

From which table to which table? PurchTable to VendInvoiceInfoTable?

yes kranthiā€¦from purchtable to vendinvoiceinfotable

Start looking from \Classes\VendDocumentTableType\initFromPurchTable