copying a data from purchase requisition to purchase order

Hi All,

I added a new field “MyWorker” to the PurchReqTable (PurchReqTable.MyWorker) , and added the same field to the PurchTable (PurchTable.MyWorker), I want to copy the data from the new field to the PurchTable.MyWorker when I approve and complete the workflow on the purchase requisition.

Where should I add the insertion code?

Regards

Any help Please :slight_smile:

If you have built cross-references, use them to find where AX copies standard fields. I don’t have any AX on-hand to do it for you in the moment.

And if you don’t have cross-references, you know what you need to change to be able to solve such kind of issues. I use cross-references every day.

Hi Martin,
Thanks for your reply,

Actually I never used cross-references before, I’m reading about how it use them right now.

Thanks again,

Regards

I’ve checked cross-references and the main place seems to be the PurchAutoCreate_PurchReq class.

Martin Thanks a lot for your reply, I will check the class, :slight_smile:

Cheers