I have one problem when i try to make similar transaction in two different company (in one database). I can greate the same journal line using CHANGECOMPANY function but I can't post this journal from othe company. My be some one knows how I can do this. I will be very pleased.
0
Comments
If you have an Application Server, you can start that server with the right company and do the posting.
You'd have to recreate all the posting logic, but add the CHANGECOMPANY method to each record variable and a way to pass the company name through the whole posting routine.
It doesn't matter from which company you perform logic, as long as you make sure that ALL record type variables write to the correct company, which in the posting routine's case is a LOTTA variables. As you probably won't find a customer who'd be willing to pay for such a job, it probably won't happen.
RIS Plus, LLC
The main problem is you can't call a codeunit in company Y from company X. The codeunit will be executed in company X.
Only solution is to use Navision Application Server.
RIS Plus, LLC