Páginas filhas
  • Integration with Material (Financial Process Script - SIGAFIN)

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

To generate these bills, the following parameters are used:

  • MV_1DUPPREF - Bill prefix for the outbound document.
  • MV_2DUPPREF - Bill prefix for the inbound document.
  • MV_1DUPNAT - Bill class for the outbound document.
  • MV_2DUPNAT - Bill class for the inbound document.
  • MV_1DUP - Number of the first installment of the financial bill.

...

  • Prefix - as defined in parameter MV_2DUPPREF.
  • Number - Established by the number of the inbound document.
  • Installment - Established by the MV_1DUP parameter for installment purchases. For cash purchases, the installment is not filled out.
  • Type - Determined by the Types of Bills (SES) table. During the initial system configuration, it is defined as NF. It must be highlighted that only one type of bill is allowed for generating these documents and, once defined, it cannot be changed by the Types of Bills Maintenance routine and cannot be used to manually add bills in the Financials module; that is, this type of bill can be used only for integration.
  • Supplier/Store - are filled out with the supplier/store data of the inbound document.

...

  • Prefix - as defined in parameter MV_1DUPPREF.
  • Number - Established by the number of the outbound document.
  • Installment - Established by the MV_1DUP parameter for installment purchases. For cash purchases, the installment is not filled out.
  • Type - Determined by the Types of Bills (SES) table. During the initial system configuration, it is defined as NF. It must be highlighted that only one type of bill is allowed for generating these documents and, once it is defined, it cannot be changed by the maintenance routine of Types of Bills, and cannot be used for manual addition of bills in the Financial environment, which means, this type of bill can be used only for integration.

...

Thus, you can understand the importance of defining the MV_1DUP parameter for correctly filling out term bills and of parameters MV_1DUPNAT and MV_2DUPNAT, for filling out and using Financial Classes.

Parameters MV_1DUPPREF and MV_2DUPPREF are extremely important for the integrity of the Financial module, which allows you to change the primary key of financial bills after saving.

...

In short, if you change the method of sharing the Financials module, make sure that, through parameters MV_1DUPPREF/MV_2DUPPREF, no duplication of the primary key occurs in its tables, as shown in the example:

  1. The MV_1DUPPREF parameter is filled out as: ExecBlock('1DUPPREF',.F.,.F.).
  2. The following User Function is created:

...

If you use the access method defined by TOTVS®, you do not need to change parameters MV_1DUPPREF and MV_2DUPPREF.