Repository navigation
Expand file tree
/
Copy pathreporting_settings_ecc.yaml
More file actions
688 lines (574 loc) · 19 KB
/
Copy pathreporting_settings_ecc.yaml
File metadata and controls
688 lines (574 loc) · 19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# This settings file drives how the BQ objects (tables/views/functions) for
# Reporting datasets are created.
#
# There are two sections:
#
# 1. "bq_independent_objects":
# All BiqQuery objects that can be created in independentally, without any
# other depedencies.
# NOTE: When "turbo_mode" is enabled, these BQ objects are created in
# parallel.
#
# 2. "bq_dependent_objects":
# All BiqQuery objects that need to be created in a specific order due to
# depedencies.
# NOTE: "turbo_mode" does not apply to this section - i.e. each object
# will be created one after another.
#
# At least one of the two sections need to be present.
# The following files will be deployed in parallel
bq_independent_objects:
- sql_file: NetDueDateCalc.sql
type: script
- sql_file: CurrencyConversion.sql
description: "Exchange Rate for Currency Conversion"
type: table
table_setting:
cluster_details: {columns: ["ToCurrency_TCURR"]}
load_frequency: "@daily"
- sql_file: fiscal_date_dim.sql
type: table
description: "Fiscal Date Dimension"
table_setting:
load_frequency: "@yearly"
- sql_file: AddressesMD.sql
description: "Addresses Master Data"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: PlantsMD.sql
description: "PlantsMD Details"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: MaterialGroupsMD.sql
description: "Material Groups Master Data"
type: table
table_setting:
load_frequency: "@monthly"
- sql_file: GLAccountsMD.sql
description: "GL Accounts Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: VendorsMD.sql
description: "Vendor Master Data"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: LedgersMD.sql
description: "General Ledger Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: DistributionChannelsMD.sql
description: "Distribution Channel Details"
type: table
table_setting:
load_frequency: "@monthly"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: CompaniesMD.sql
description: "Company Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: ProductHierarchy_Flatten.sql
description: "Product Hierarchy Flattener"
type: view
- sql_file: TelephoneCodes_T005K.sql
description: "Telephone Codes (T005)"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: CostCentersMD.sql
description: "Cost Centers MD Details"
type: table
table_setting:
load_frequency: "@monthly"
- sql_file: SalesOrganizationsMD.sql
description: "Sales Organization"
type: table
table_setting:
load_frequency: "@yearly"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: StorageLocationsMD.sql
description: "StorageLocations Text"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: ValuationAreasMD.sql
description: "Valuation Area Master Data"
type: table
table_setting:
load_frequency: "@yearly"
# Run every 10 minutes
- sql_file: SalesOrders.sql
description: "Sales Orders Header and Items"
type: table
table_setting:
load_frequency: "*/10 * * * *"
- sql_file: Regions_T005S.sql
description: "Regions (T005S)"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: SDDocumentFlow.sql
description: "Sales Document Flow (Sales Doc, Delivery, Billing)"
type: view
- sql_file: UoMConversion.sql
description: "Function for Unit of measure conversion - VAL_OUT is the output"
type: script
- sql_file: UoMConversionUtil.sql
description: "View to convert UoM when conversion needs to be inline and table function canot be used. See UoMUsage_SAMPLE."
type: view
- sql_file: ProductHierarchiesMD.sql
description: "Product Hierarchies Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: CustomersMD.sql
description: "Customer Master Data"
type: table
table_setting:
load_frequency: "@daily"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: Languages_T002.sql
description: "Languages (T002)"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: DeliveryBlockingReasonsMD.sql
description: "Deliveries: Blocking reasons texts"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: BillingBlockingReasonsMD.sql
description: "Billing: Blocking reasons texts"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: MaterialsMD.sql
description: "Materials Master Data"
type: table
table_setting:
load_frequency: "@yearly"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: MaterialTypesMD.sql
description: "Material Types and texts"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: BillOfMaterialsMD.sql
description: "Bill of Materials Master Data"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: CurrenciesMD.sql
description: "Currencies Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: CurrencyConvUtil.sql
description: "Utility View for Currency Conversion (materialized recommended)"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: ProfitCentersMD.sql
description: "Profit Centers Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: ProductionOrders.sql
description: "Production Order Headers and Items"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: CountriesMD.sql
description: "Countries Master Data"
type: table
table_setting:
load_frequency: "@yearly"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: UoMMD.sql
description: "Unit Of Measure master data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: PurchaseDocuments_Flow.sql
description: "Purchase Documents Header, Items, & Account Assignment. Primary key of this table is [Client_MANDT, DocumentNumber_EBELN, Item_EBELP, & AccountAssignment_ZEKKN]"
type: view
- sql_file: DivisionsMD.sql
description: "Divisions Master Data"
type: table
table_setting:
load_frequency: "@yearly"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: PurchaseDocumentTypesMD.sql
description: "Purchase Document Types Text"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: MaterialMovementTypesMD.sql
description: "Material Movement Types"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: ReasonForMovementTypesMD.sql
description: "ReasonForMovementTypesMD"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: SpecialStocksMD.sql
description: "Special Stocks Master Data"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: PurchasingOrganizationsMD.sql
description: "Purchasing Organizations Text"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: BatchesMD.sql
description: "BatchesMD"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: MaterialPlantsMD.sql
description: "MaterialPlantsMD"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: PurchasingGroupsMD.sql
description: "Purchasing Groups Text"
type: table
table_setting:
load_frequency: "@yearly"
- sql_file: PricingConditions.sql
description: "Pricing Conditions"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: SalesOrderStatus.sql
description: "Sales Order Status"
type: table
table_setting:
load_frequency: "*/10 * * * *"
- sql_file: POScheduleLine.sql
description: "Purchase Order Schedule Line"
type: view
- sql_file: MaterialsBatchMD.sql
description: "Materials Batch Master Data"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: StockInHand.sql
description: "Stock In Hand"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: OneTouchOrder.sql
description: "One Touch Order Reporting"
type: view
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: FSVTextsMD.sql
description: "Text for FSV Hierarchy Node"
type: view
- sql_file: UniversalLedgersMD.sql
description: "Text for Universal Ledgers"
type: view
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: CostCenterHierarchiesMD.sql
description: "Text for Cost Center Hierarchy"
type: view
- sql_file: ProfitCenterHierarchiesMD.sql
description: "Text for Profit Center Hierarchy"
type: view
- sql_file: SlowMovingThreshold.sql
description: "Slow Moving Threshold for Inventory"
type: table
table_setting:
load_frequency: "@once"
- sql_file: StockCharacteristicsConfig.sql
description: "Configurations for stock characteristics (blocked, restricted etc) and their associated movement types"
type: table
table_setting:
load_frequency: "@daily"
bq_dependent_objects:
- sql_file: BusinessPartnersMD.sql
description: "Business Partners and Addresses Master Data"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: PurchaseDocuments.sql
description: "Purchase Documents Header and Items"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: PurchaseDocumentsHistory.sql
description: "Purchase Documents - Order History"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: InvoiceDocuments_Flow.sql
description: "Incoming Invoice (Invoice Receipt) Header, Item, & Account Assignment."
type: table
table_setting:
load_frequency: "@daily"
- sql_file: MaterialsValuation.sql
description: "Materials Valuation"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: MaterialsMovement.sql
description: "Material Movements"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: Deliveries.sql
description: "Deliveries Master Data"
type: table
table_setting:
load_frequency: "@daily"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: SalesOrders_V2.sql
description: "Sales Orders Header and Items"
type: table
table_setting:
load_frequency: "*/10 * * * *"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: SDStatus_Items.sql
description: "Sales Document Status (Sales Doc, Delivery, Billing)"
type: table
table_setting:
load_frequency: "*/10 * * * *"
- sql_file: POSchedule.sql
description: "Purchase Order Schedule"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: DueDateForCashDiscount1.sql
type: script
- sql_file: DueDateForCashDiscount2.sql
type: script
- sql_file: AccountingDocuments.sql
description: "Accounting Documents Headers and Items"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: AccountingDocumentsReceivable.sql
description: "AR Accounting Documents Reporting"
type: table
table_setting:
load_frequency: "@daily"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: POVendorConfirmation.sql
description: "Purchase Order Confirmations from Vendor"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: POOrderHistory.sql
description: "Purchase Documents - Order History"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: DeliveriesStatus_PerSalesOrg.sql
description: "Delivery Status Per Sales Organization"
type: table
table_setting:
load_frequency: "*/10 * * * *"
- sql_file: SalesStatus_Items.sql
description: "Status of Sales Documents at Item level"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: POFulfillment.sql
description: "Deliveries completed and pending per Purchase Order Item"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: SalesFulfillment_perOrder.sql
description: "Sales Orders Fulfillment per Order and Plant"
type: table
table_setting:
load_frequency: "@hourly"
- sql_file: SalesFulfillment.sql
description: "Sales Orders Fulfillment"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: Billing.sql
description: "Billing Master Data"
type: table
table_setting:
load_frequency: "@hourly"
- sql_file: Stock_NonValuated.sql
description: "Non-valuated stock levels per plant and Storage location"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: Stock_PerPlant.sql
description: "Stock information per plant"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: Stock_Unrestricted_vs_Sales.sql
description: "Non-valuated unrestricted stock levels versus sales orders and deliveries"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: OrderToCash.sql
description: "Order to Cash Reporting"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: SalesOrderHeaderStatus.sql
description: "Sales Order Header Status"
type: table
table_setting:
load_frequency: "@daily"
## CORTEX-CUSTOMER: If using currency conversion, add TCURR field to clustering settings.
- sql_file: SalesOrderPartnerFunction.sql
description: "Sales Order Partner Function"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: SalesOrderScheduleLine.sql
description: "Sales Orders Schedule Line"
type: table
table_setting:
load_frequency: "@hourly"
- sql_file: VendorConfig.sql
description: "Vendor Config"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: MaterialLedger.sql
description: "Material Ledger"
type: table
table_setting:
load_frequency: "@daily"
- sql_file: SalesOrderPricing.sql
description: "Sales Orders Pricing"
type: table
table_setting:
load_frequency: "@hourly"
- sql_file: AggregateMonthlyInventory.sql
type: script
- sql_file: UpdateMonthlyInventoryAggregation.sql
type: script
- sql_file: UpdateStockMonthlySnapshots.sql
type: script
- sql_file: AggregateWeeklyInventory.sql
type: script
- sql_file: UpdateWeeklyInventoryAggregation.sql
type: script
- sql_file: UpdateStockWeeklySnapshots.sql
type: script
- type: k9_dawg
k9_id: inventory_snapshots
- sql_file: StockWeeklySnapshots.sql
description: "Stock Weekly Snapshots"
type: table
table_setting:
load_frequency: "@daily"
partition_details: {
column: "WeekEndDate",
partition_type: "time",
time_grain: "day"
}
cluster_details: {columns: ["Client_MANDT", "MaterialNumber_MATNR", "Plant_WERKS"]}
- sql_file: StockMonthlySnapshots.sql
description: "Stock Monthly Snapshots"
type: table
table_setting:
load_frequency: "@weekly"
partition_details: {
column: "MonthEndDate",
partition_type: "time",
time_grain: "month"
}
cluster_details: {columns: ["Client_MANDT", "MaterialNumber_MATNR", "Plant_WERKS"]}
- sql_file: InventoryKeyMetrics.sql
type: table
table_setting:
load_frequency: "@weekly" # Make sure it runs after StockMonthlySnapshots
cluster_details: { columns: ["CompanyCode_BUKRS", "FiscalYear", "TargetCurrency_TCURR"] }
- sql_file: InventoryByPlant.sql
type: table
table_setting:
load_frequency: "@daily" # Make sure it runs after StockWeeklySnapshots
cluster_details: { columns: ["CompanyCode_BUKRS", "FiscalYear", "TargetCurrency_TCURR"] }
- sql_file: AccountsPayable.sql
type: table
table_setting:
load_frequency: "@daily"
partition_details:
{
column: "PostingDateInTheDocument_BUDAT",
partition_type: "time",
time_grain: "day",
}
cluster_details: { columns: ["CompanyCode_BUKRS", "FiscalYear_GJAHR", "DocFiscPeriod", "TargetCurrency_TCURR"] }
- sql_file: AccountsPayableTurnover.sql
type: table
table_setting:
cluster_details: {columns: ["TargetCurrency_TCURR"]}
load_frequency: "@daily"
- sql_file: CashDiscountUtilization.sql
type: table
table_setting:
cluster_details: {columns: ["TargetCurrency_TCURR"]}
load_frequency: "@daily"
- sql_file: DaysPayableOutstanding.sql
type: table
table_setting:
cluster_details: {columns: ["TargetCurrency_TCURR"]}
load_frequency: "@daily"
- sql_file: VendorPerformance.sql
type: table
table_setting:
load_frequency: "@daily"
partition_details:
{
column: "PostingDateInTheDocument_BUDAT",
partition_type: "time",
time_grain: "day",
}
cluster_details: { columns: ["Company_BUKRS", "FiscalYear", "TargetCurrency_TCURR"] }
- sql_file: financial_statement.sql
type: script
- type: k9_dawg
k9_id: financial_statement
- sql_file: FinancialStatement.sql
description: "Financial Statement"
type: table
table_setting:
load_frequency: "@monthly"
cluster_details: { columns: ["CompanyCode", "FiscalYear", "FiscalPeriod"] }
- sql_file: BalanceSheet.sql
description: "Balance Sheet"
type: table
table_setting:
load_frequency: "@monthly" # Make sure it runs after FinancialStatement
cluster_details: { columns: ["CompanyCode", "FiscalYear", "FiscalPeriod", "TargetCurrency_TCURR"] }
- sql_file: ProfitAndLoss.sql
description: "Profit And Loss"
type: table
table_setting:
load_frequency: "@monthly" # Make sure it runs after FinancialStatement
cluster_details: { columns: ["CompanyCode", "FiscalYear", "FiscalPeriod", "TargetCurrency_TCURR"] }
- sql_file: FSVHierarchyFlattened.sql
description: "FSV Flattened Hierarchy With Hierarchy Texts"
type: table
table_setting:
load_frequency: "@monthly"
- sql_file: CostCenterHierarchyFlattened.sql
description: "Cost Center Flattened Hierarchy With Hierarchy Texts"
type: table
table_setting:
load_frequency: "@monthly"
- sql_file: ProfitCenterHierarchyFlattened.sql
description: "Profit Center Flattened Hierarchy With Hierarchy Texts"
type: table
table_setting:
load_frequency: "@monthly"