In testing out the copy lines funcitonailty for purchase requisitions in 2012 we have noticed that it does not copy the financial distributions from the selected line. We really need this to occur so I was looking to try and add the creation of matching accounting distributions it in to the copy lines funcitonality. Simply copying the record does not appear to work as there is a lot of relational tables, etc that are touched so I want to just create a new distributon and copy over the amounts, dimensions, etc from the original distribution.
I am assuming I need to use the AccountingDistributionProcessor but I was hoping someone had experience with adding accounting distributions via X++ code and could perhapd point me in the right direction?
Any help would be greatly appreciated!!
Thanks,
Anna P.