Product: | Microsiga Protheus |
Versions: | 11 and 12 |
Step by steo: | Starting with version 11 of Protheus, there are 2 ways to create a business structure: 1. Concept of Company/Branch The purpose of the new Business Management concept is: - Enable sharing of the Data Dictionary of several companies by Microsiga Protheus. - Introduce Business Unit. - Allow the configuration of the Company and Branch code size. - Allow configuration of sharing between Companies, Business Units and Branches. Warning: As of the LIB released in August 2014, Protheus no longer considers the M0_DTVLD field (expiration date) in the sigamat.emp company file. Similarly, future entries in routines of modules such as Financial and Accounting, for instance, will not consider this field to enable the entry on a later date. So if you have in your LIB environment a date equal to or later than this one, you no longer need to revalidate sigamat.emp in the following cases: - creation of a new company/branch (unless the contract is Corporate¹) - change of mandatory fields of the branch register by the Configurator ¹ For customers with a Corporate contract, it is still necessary to revalidate sigamat.emp when adding a new Company or Branch, due to the CNPJ being verified in sigamat.emp and in the license file for this type of contract. If it is an earlier LIB , you have to open a ticket to CST-Passwords (or use the Self-service CST in the Portal), sending the current sigamat.emp file for revalidation. Groups of Companies with a code with more than 2 digits is already considered as a Business Management model. Below you will see the creation of companies/branches in the two concepts. 1. Company/Branch Concept Allows creating a company and branches below it. There is a possibility of sharing tables between the branches. It is a ‘simpler’ concept.
According to the Layout, you will see a Sequence, Initial, Order and Mask for each digit. Each identifier (not mandatory) allows setting a restriction mask to be completed according to the example: F - 0-2 (Only numbers between 0 and 2) - After setting up the company, click Confirm. A window displays “Do you want to create the data dictionary now?”. If you click No, the dictionary will be created when you access any module through this company. If you click Yes, a new question appears: Create Dictionary:
If you select the option "from an existing database", a window opens to select the base company, and then a window asks about the "Directory of data files". Select folder ‘data’. If the option "with default records" is selected, a window opens asking to inform the Country. Make sure you selected the right country before continuing. Then, a window pops up asking about the "Directory of data files". Select folder ‘data’. When finished, exit the Company Group menu, and go to the Branch menu. - Access the Configurator > Environment > Companies > Branch. - Click Include. - In "Group", enter the code of the Company Group created, and the Company Group of this Branch (Ex .: 01) - The fields without an asterisk are optional. - When finished, click Confirm. - The company and branch are ready for use. 2. Concept of Business Management This concept allows a more comprehensive configuration by increasing the divisions of companies in business units and branches, also allowing greater scalability of shares. Below are the settings of each part of the Business Management structure: - Group of Companies A set of companies that are linked together for different reasons and that share the same definitions of the data model. - Companies Set of Branches or Business Units that are within the same legal or fiscal dependence. - Business unit Set of branches that are within the same economic activity. - Branch Business establishment dependent on another that practices acts that have legal or fiscal validity. Follow the steps below to create a company/branch following the Business Management concept: - Access Configurator > Environment > Companies > Group of Companies. According to the Layout, you will see a Sequence, Initial, Order and Mask for each digit. Each identifier (not mandatory) allows setting a restriction mask to be completed according to the example: E - 0-9 (Only number between 0 and 9) - After setting up the company, click Confirm. A window displays “Do you want to create the data dictionary now?”. If you click No, the dictionary will be created when you access any module through this company. If you click Yes, a new question appears: Create Dictionary:
If you select the option "from an existing database", a window opens to select the base company, and then a window asks about the "Directory of data files". Select folder ‘data’. If the option "with default records" is selected, a window opens asking to inform the Country. Make sure you selected the right country before continuing. Then, a window pops up asking about the "Directory of data files". Select folder ‘data’. When finished, exit the Company Group menu, and go to the Companies menu. - Access Configurator > Environment > Companies > Companies. - Click Include. - In "Group", enter the code of the Company Group created, and the Company Group of this Company (Ex .: 12). - In "Code", enter the code that this Company will have (Ex .: 01). When finished, exit the Company menu, and go to the Business Unit menu. - Click Include. - In "Group", enter the code of the Company Group created, and the Company Group of this Company (Ex .: 12) - In "Code", enter the code that this Business Unit will have (Ex .: 01). - In "Description", set the name of the Business Unit. - Click Confirm. When finished, exit the Business Unit menu, and go to the Branch menu. - Click Include. - Select the Group, Company and Business Unit code to which this Branch belongs, then define a code for this Branch (Ex .: 01). - In "Description", set the name of the Branch. - The fields without an asterisk are optional. - When finished, click Confirm. - The company and branch are ready for use in the Business Management mode. |
Notes: |