Tdl For Tally Erp 9 -
Tally Definition Language (TDL) is a metadata-driven, XML-like scripting language used exclusively within the Tally ecosystem. Think of it as a "skin and logic" modifier. TDL files (usually with .txt or .tdl extensions) are loaded into Tally ERP 9 at runtime.
When Tally ERP 9 starts, it reads its internal object definitions. But if you load a TDL file, Tally overrides or extends those definitions based on your instructions. This means you can:
The most important thing to know: No TDL code runs unless explicitly loaded. Tally ERP 9 will work perfectly without it, but TDL unlocks its true adaptive potential.
A .tdl file is plain text. Its main elements: tdl for tally erp 9
| Element | Purpose |
|---------|---------|
| #include | Import another TDL file |
| [Collection] | Fetch data from Tally database |
| [Report] | Define a report layout |
| [Form] | Define data entry screen |
| [Part] | Reusable UI component (line, field, button) |
| [Field] | Individual data entry/display field |
| [Button] | Action button |
| [System] | System-level settings, startup code |
| [Menu] | Add/modify menu items |
| [Variable] | Store temporary values |
With the release of TallyPrime, TDL has been upgraded to TDL 2.0. However, if you are still using Tally ERP 9, don't panic.
Remove clutter. Hide irrelevant fields (e.g., hide "BOM" for non-manufacturing companies). Add tooltips, custom shortcuts, or color-coded rows in reports. This reduces data entry errors by up to 60%. The most important thing to know: No TDL
Add a custom discount field based on customer type.
[#Field: Discount Percentage]
Before Load : Set as :
Default : 0
Local Field : Field Discount Percent
Auto Compute :
If $$IsPartyRetailer Then 5 Else 10
End Auto Compute
Save as AutoDiscount.tdl and load. Every sales voucher will auto-fill discount.
!Menu:CustomMenu Title = "My Tools" Item : "Stock Summary (Custom)", "CustomStockReport"
!Report:CustomStockReport Title = "My Stock Summary" Form = "StockItemForm"TDL unlocks automation
Verdict: TDL is the "secret sauce" that transforms Tally.ERP 9 from a rigid accounting software into a flexible, industry-specific business management solution. While it requires technical expertise to master, it is arguably the single biggest reason for Tally's dominance in the Indian market.
Tally Definition Language (TDL) is the scripting and customization language used to extend and tailor Tally.ERP 9 beyond its out‑of‑the‑box capabilities. For accountants, developers, and business owners who rely on Tally.ERP 9, TDL unlocks automation, custom reports, tailored screens and business logic—helping adapt the product to industry‑specific workflows without replacing the core accounting engine.