AccountsPayable
Arquivo SQL de origem - Google Cloud Cortex Data Foundation
Google Cloud Cortex Foudantion - Cortex Reporting - (ecc) - AccountsPayable
Visão geral
Esta visão é uma visão de relatórios para sistemas SAP que fornece insights sobre faturas contábeis e dados relacionados. Ela combina dados de várias tabelas SAP para fornecer uma visão abrangente de faturas de fornecedores, faturas estacionadas, ordens de compra e outras informações relevantes. A visão é projetada para suportar análise e relatórios sobre pagamentos de fornecedores, descontos em dinheiro, faturas vencidas e outras métricas importantes.
Fontes de Dados
| Tabela/Visão | Descrição |
|---|---|
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.AccountingDocuments |
Tabela de documentos contábeis contendo detalhes de documentos contábeis, como faturas, pagamentos e notas de crédito. |
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.InvoiceDocuments_Flow |
Tabela de documentos de fatura contendo detalhes de documentos de fatura, como números de fatura, datas de fatura e valores de fatura. |
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.CompaniesMD |
Tabela de dados mestres de empresas contendo detalhes de empresas, como códigos de empresas, nomes de empresas e variantes de ano fiscal. |
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.VendorsMD |
Tabela de dados mestres de fornecedores contendo detalhes de fornecedores, como nomes de fornecedores, endereços de fornecedores e condições de pagamento de fornecedores. |
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.VendorConfig |
Tabela de configuração de fornecedor contendo configurações específicas do fornecedor, como valores de campo baixos para cálculos de penalidade potencial. |
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.PurchaseDocumentsHistory |
Tabela de histórico de documentos de compra contendo detalhes de ordens de compra e documentos relacionados, como números de ordem de compra, números de item e quantidades. |
{{ project_id_tgt }}.{{ dataset_reporting_tgt }}.CurrencyConversion |
Tabela de conversão de moeda contendo taxas de câmbio para diferentes moedas e datas de conversão. |
Casos de Uso
- Analise os padrões de pagamento do fornecedor e identifique possíveis oportunidades de economia por meio de descontos de pagamento antecipado.
- Monitore as faturas vencidas e tome as medidas necessárias para evitar multas por atraso no pagamento.
- Identifique e rastreie as faturas estacionadas que precisam ser processadas.
- Obtenha insights sobre o histórico de pedidos de compra e combine-os com os dados da fatura para uma melhor reconciliação.
- Calcule os valores potenciais de penalidade com base em configurações específicas do fornecedor.
Lógica da Query
A visão combina dados das tabelas de origem usando uma série de junções e uniões. Ela aplica filtros e cálculos para derivar as métricas e atributos desejados. A visão também aproveita as funções SQL personalizadas e subconsultas para aprimorar os dados e fornecer insights adicionais.
Possível relação com transações SAP
| Código da Transação | Descrição da Transação |
|---|---|
| FB03 | Exibir Documento |
| FB60 | Inserir Fatura Recebida |
| FBL1N | Exibir Itens da Linha: Visão Geral do Documento |
| FBL3N | Exibir Itens da Linha: Lista de Data de Vencimento |
| FBL5N | Exibir Itens da Linha: Cockpit de Compensação |
| ME23N | Exibir Ordem de Compra |
| XK03 | Exibir Registro Mestre do Fornecedor |
Linhagem de dados
Em desenvolvimento
Campos da Tabela/Visão
| Campo | Descrição do Campo | Descrição no Dicionário SAP (Em breve) |
|---|---|---|
| Client_MANDT | Client ID | |
| CompanyCode_BUKRS | Company Code | |
| CompanyText_BUTXT | Company Name | |
| AccountNumberOfVendorOrCreditor_LIFNR | Vendor/Creditor Account Number | |
| NAME1 | Vendor/Creditor Name | |
| AmountInLocalCurrency_DMBTR | Amount in Local Currency | |
| AccountingDocumentNumber_BELNR | Accounting Document Number | |
| NumberOfLineItemWithinAccountingDocument_BUZEI | Line Item Number within Accounting Document | |
| DocumentNumberOfTheClearingDocument_AUGBL | Document Number of the Clearing Document | |
| TermsOfPaymentKey_ZTERM | Terms of Payment Key | |
| AccountType_KOART | Account Type | |
| ReasonCodeForPayments_RSTGR | Reason Code for Payments | |
| PaymentBlockKey_ZLSPR | Payment Block Key | |
| ClearingDate_AUGDT | Clearing Date | |
| PostingDateInTheDocument_BUDAT | Posting Date in the Document | |
| FiscalYear_GJAHR | Fiscal Year | |
| FiscalPeriod_MONAT | Fiscal Period | |
| DocFiscPeriod | Document Fiscal Period | |
| KeyFiscPeriod | Key Fiscal Period | |
| NetDueDate | Net Due Date | |
| InvStatus_RBSTAT | Invoice Status | |
| PostingDate_BUDAT | Posting Date | |
| PurchasingDocumentNumber_EBELN | Purchasing Document Number | |
| CurrencyKey_WAERS | Currency Key | |
| SupplyingCountry_LANDL | Supplying Country | |
| AccountingDocumenttype_BLART | Accounting Document Type | |
| InvoiceDocumenttype_BLART | Invoice Document Type | |
| MovementType__inventoryManagement___BWART | Movement Type | |
| POOrderHistory_AmountInLocalCurrency_DMBTR | Purchase Order History Amount in Local Currency | |
| POOrderHistory_AmountInTargetCurrency_DMBTR | Purchase Order History Amount in Target Currency | |
| YearOfPostingDateInTheDocument_BUDAT | Year of Posting Date in the Document | |
| MonthOfPostingDateInTheDocument_BUDAT | Month of Posting Date in the Document | |
| WeekOfPostingDateInTheDocument_BUDAT | Week of Posting Date in the Document | |
| QuarterOfPostingDateInTheDocument_BUDAT | Quarter of Posting Date in the Document | |
| AmountInTargetCurrency_DMBTR | Amount in Target Currency | |
| ExchangeRate_UKURS | Exchange Rate | |
| TargetCurrency_TCURR | Target Currency | |
| OverdueAmountInSourceCurrency | Overdue Amount in Source Currency | |
| OverdueAmountInTargetCurrency | Overdue Amount in Target Currency | |
| OutstandingButNotOverdueInSourceCurrency | Outstanding But Not Overdue in Source Currency | |
| OutstandingButNotOverdueInTargetCurrency | Outstanding But Not Overdue in Target Currency | |
| OverdueOnPastDateInSourceCurrency | Overdue On Past Date in Source Currency | |
| OverdueOnPastDateInTargetCurrency | Overdue On Past Date in Target Currency | |
| PartialPaymentsInSourceCurrency | Partial Payments in Source Currency | |
| PartialPaymentsInTargetCurrency | Partial Payments in Target Currency | |
| LatePaymentsInSourceCurrency | Late Payments in Source Currency | |
| LatePaymentsInTargetCurrency | Late Payments in Target Currency | |
| UpcomingPaymentsInSourceCurrency | Upcoming Payments in Source Currency | |
| UpcomingPaymentsInTargetCurrency | Upcoming Payments in Target Currency | |
| PotentialPenaltyInSourceCurrency | Potential Penalty in Source Currency | |
| PotentialPenaltyInTargetCurrency | Potential Penalty in Target Currency | |
| PurchaseInSourceCurrency | Purchase in Source Currency | |
| PurchaseInTargetCurrency | Purchase in Target Currency | |
| IsParkedInvoice | Is Parked Invoice | |
| IsBlockedInvoice | Is Blocked Invoice | |
| CashDiscountReceivedInSourceCurrency | Cash Discount Received in Source Currency | |
| CashDiscountReceivedInTargetCurrency | Cash Discount Received in Target Currency | |
| TargetCashDiscountInSourceCurrency | Target Cash Discount in Source Currency | |
| TargetCashDiscountInTargetCurrency | Target Cash Discount in Target Currency | |
| AmountOfOpenDebitItemsInSourceCurrency | Amount Of Open Debit Items in Source Currency | |
| AmountOfOpenDebitItemsInTargetCurrency | Amount Of Open Debit Items in Target Currency | |
| AmountOfReturnInSourceCurrency | Amount Of Return in Source Currency | |
| AmountOfReturnInTargetCurrency | Amount Of Return in Target Currency |