Skip to Content
0
Former Member
Jan 21, 2012 at 09:38 PM

How to copy Z-fields from old contract/Order to new contract/Order?

281 Views

Hello,

In our company we have a Contract Reposting Tool being used in ERP SD module to cancel an existing (source) cotnract/order document and create a new(target) document from the old document by changing either the Sales Org or the customer number. We are using a BAPI called BAPISDORDER_GETDETAILEDLIST to copy the old (source) contract document (header data field values and Item data field values) over to the corresponding fields of the new contract/order document. All the standard fields values are being copied from source document to target document. But we have some Z-fields in VBAK and VBKD that need to be copied over from source to target contract/order document. Currently, I do not have any idea how to include these new Z-fields into the BAPI for automatic copy from old to new document.

Could you please help with some inputs on the solution to automatise the copy of the Z-fields from old to new document?

Thanks very much!

Kind regards

Rama