Change Company code

myousufmyousuf Member Posts: 3
edited 2005-04-28 in Navision Financials
Hi,

I am looking for some assistance on how to change company within Navision. Can I change the company on the fly and perform transaction in the other company.
I am not interested in intercompany, rather than changing the whole company and then perform transaction related to that company only.

Thanks
MY

Comments

  • Timo_LässerTimo_Lässer Member Posts: 481
    You can access the "Company open" dialog with the shortcut [Ctrl]+[O].
    That is the easiest and fastest way to change the company within the same database.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • myousufmyousuf Member Posts: 3
    Can you give me some example on how to pass the code..
  • SavatageSavatage Member Posts: 7,142
    You can access the "Company open" dialog with the shortcut [Ctrl]+[O].
    That is the easiest and fastest way to change the company within the same database.

    pass the code? just hit Ctrl-O
    is that not what you need or do you want to create a button?
  • Timo_LässerTimo_Lässer Member Posts: 481
    You cannot open another company via C/AL Code.

    I think, [Ctrl]+[O] is fast and easy enough.
    If the users cannot remember this shortcut, you can place a label with this hint in the main menu until they remember it.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • elmarfvelmarfv Member Posts: 53
    I thought you were talking about posting transactions to a diffrent company, while still in another one, right? if so, take a look at the CHANGECOMPANY function. That works pr. Table, so you would need to change company for each table that gets new records inserted. Table.CHANGECOMPANY(Company.Name);
    Elmar F. Vidisson
    Certified Navision Attain Developer
  • DenSterDenSter Member Posts: 8,307
    You cannot have a process log into another company through Navision code while a user is in another company. The only thing available is the CHANGECOMPANY method on record type variables, but I would strongly advise against using that method to try to make this work for posting any type of regular transaction.
Sign In or Register to comment.