mig28mx
19th April 2012, 01:20
Hello all,
Due to a new company implementation, we need to copy a lot of purchase orders from the old company to the new company.

Anyone have faced this problem? if yes, how do you resolved?

My first approach is generate a program that uses API calls, to fill the requiered fields on purchase header (tdpur040) and purchase lines (tdpur041).

Or, there is a better procedure to achieve this?

Thank you in advance!

NirajKakodkar
19th April 2012, 11:15
We had a similar situation at one of my client, where in there was a need to migrate the purchase orders to a different company. We handled this using a PO generation program (AFS) as it was in Baan 4, which copied the POs to the required company.

Regards,
Niraj Kakodkar

mig28mx
21st April 2012, 01:33
Thank for your answer NirajKakodkar.

One question: How did you manage the text for the purchase order header and the text for the purchase order lines?

As far as I have read the documentation, AFS does not support text management.

Regards.

mmurphy2650
21st April 2012, 04:33
Not sure about Baan IV, but in ERP LN a good alternative would be to use Exchange to export your:

- Purchase Orders
- Purchase Order Lines
- Purchase Order Text
- Purchase Order Lines Text

to an ASCII file and then import them into the other company.

Regards,

Mike

mig28mx
25th April 2012, 19:56
Thank you all, for you inputs.
I programed a session to do the task.

I take a look for the exchange solution proposed and I decided not to do on this way, due to, the order number must be fixed.

To solve the text handle issue, first I create the order with order lines, then using the function text.write we added the line description and order header.

Regards.