Table
CFOPTable_BR
CFOP codes
List of CFOP codes used for Brazil, keyed by the CFOP ID. Each code has a name, direction (incoming or outgoing), location type and purpose. It links to fiscal document source texts and to a delivery CFOP.
- Table name
CFOPTable_BR- Module
Bank- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
CFOPIdx- Key fields
CFOPId- Model
FiscalBooks
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CFOPIdCFOP code. | String (5)CustVendCFOPId_BR | Yes | CFOPCodesEntityCFOPCodesEntitySalesOrderLineV3Entityand 19 more | |
ConsiderInCIAPYes/No flag for taking the code into account in CIAP. | EnumNoYes (enum) | No | CFOPCodesEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustVendCFOPNameAliasSearch name of the CFOP code. | String (60)CustVendCFOPNameAlias_BR | No | CFOPCodesEntity | |
CustVendLocationWhere the partner is: same state, other state or outside the country. | EnumCustVendLocation_BR (enum) | No | CFOPCodesEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryCFOPTable_BRDelivery CFOP code linked to this code. | Int64RefRecId | No | CFOPTable_BR.RecId | CFOPCodesEntity |
DirectionWhether the code is for incoming or outgoing documents. | EnumFiscalDocDirection_BR (enum) | No | CFOPCodesEntity | |
FiscalDocumentTextIDFiscal document source text linked to the code. | StringFiscalDocumentTextID_BR | No | FiscalDocumentSourceText_BR.TextID | CFOPCodesEntity |
FiscalRefLegalTxtIdFiscal reference text ID linked to the code. | StringFiscalDocumentTextID_BR | No | FiscalDocumentSourceText_BR.TextID | CFOPCodesEntity |
FiscalRefMandatoryYes/No flag showing whether a fiscal reference is required. | EnumNoYes (enum) | No | CFOPCodesEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NameName of the CFOP code. | String (150)CustVendCFOPName_BR | Yes | CFOPCodesEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurposePurpose of the code, such as shipment, transfer or return order. | EnumCFOPPurpose_BR (enum) | No | CFOPCodesEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RetailFiscalRefLegalTxtIdFiscal document source text used to print fiscal references at the POS terminal. | StringRetailFiscalRefLegalTxtId_BR | No | FiscalDocumentSourceText_BR.TextID | CFOPCodesEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
NameAliasIdxNot unique.
CFOPIdxReplacement keyUnique, alternate key.
DeliveryCFOPIdIdxNot unique.
Relations (4)
Each relation joins CFOPTable_BR to another table on the fields shown.
DeliveryCFOPId→CFOPTable_BRJoin on
DeliveryCFOPTable_BR = CFOPTable_BR.RecIdMany CFOPTable_BR records → zero or one CFOPTable_BR record
FiscalDocumentSourceText→FiscalDocumentSourceText_BRJoin on
FiscalDocumentTextID = FiscalDocumentSourceText_BR.TextIDMany CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record
FiscalRefSourceText→FiscalDocumentSourceText_BRJoin on
FiscalRefLegalTxtId = FiscalDocumentSourceText_BR.TextIDMany CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record
RetailFiscalRefLegalTxt→FiscalDocumentSourceText_BRJoin on
RetailFiscalRefLegalTxtId = FiscalDocumentSourceText_BR.TextIDMany CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record
Get this data out
Tables are not exposed directly. These public entities read from CFOPTable_BR; use one of them in Power BI, Power Platform or a data management project.
CFOPCodesEntity· 13 fields from this tableSalesOrderLineV3Entity· 2 fields from this tablePurchPurchaseOrderLineV2Entity· 1 field from this tableSalesOrderLineV2Entity· 2 fields from this tableSalesQuotationLineV2Entity· 1 field from this tableCFOPMatrixEntity· 1 field from this tableInventTransferLineFiscalInfoEntity· 2 fields from this tableInventTransferOrderCFOPMappingEntity· 2 fields from this tableProjectParameterEntity· 3 fields from this tableProjQuotationLineEntity· 1 field from this tableProjSalesItemRequirementEntity· 1 field from this tablePurchPurchaseOrderLineEntity· 1 field from this tableVendorInvoiceLineEntity· 1 field from this tableFreeTextInvoiceHeaderEntity· 1 field from this tableFreeTextInvoiceLineEntity· 1 field from this table
Need help with CFOPTable_BR in a report, an integration or a migration? Talk to Dr Dynamics.