Learn Tally TDL : Our First TDL

Last time, I have written about how to set tdl in tally, today we will go ahead with our first tally program in tdl.

There is lot of free tally tdl is available. you may also download one free tdl for logo printing from the support forum and can use the same.

Now today we will discuss the basic of tdl and will write our first TDL programe.

Believe me, it is very very easy to write your first tdl and it does not require any special knowledge or experience!

First of all, you need to memories following :
Report uses Form
Form uses Parts
Part uses lines
Line uses Fields
Field is the real-container where text is displayed.
You Don’t need to understand it! This is an universal rule for Tally TDL
Now, Let’s prepare our first TDL programme.
Open your notepad from the windows
and Write below codes. I would prefer you to write yourself without being copy paste. it will give you practice and in TDL self practice is the most important thing one need to learn Tally Developer Languages.
;; start of code
[#menu:gateway of tally]
Item:myfirst tdl:Display:My Report
[Report:My Report]
form: myform
Part:my Part
[Part:my part]
line:my Line
[line:my Line]
Field:First field
[Field:First field]
set as : “Let’s Start learning tally”
;; end of code

Now save this file with a name suppose myfirsttdl.txt in notepad and then copy paste the same in your tally folder

Now start your tally software and follow the guidelines how to activate tdl in tally.
You don’t need to have a licensed software of either tally nor tally developer
It will work in any software and you can learn tally TDL very easy just by following such simple programming codes and a self practice.

set as : “Let’s Start learning tally”

now follow the articles on how to set tdl in tally and activate your first tdl.

Now, start your tally and you will find screen shots as per below.

you will find an extra menu in your default menu with the name my first tdl

hit the same and you will find your first tdl program

IF you like your first tdl, then do share your feedback is it hard for you to write or learn tdl ?

If you have any query or need any guidance then please post it on support forum only

56 thoughts on “Learn Tally TDL : Our First TDL

  1. I like it very much it works. Can you suggust more to develop tdl.
    I am using Barcode printing tdl in my tally . but the problem is that the printing of barcode is in vertical line. i want to use this in horizontal line & want to change the content of Tdl.Kindly send more details of the below to change the tdl in own style. I want to change the barcode style also.
    Here is the tdl.
    ;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara

    [#Form : Sales Color]

    Add : Print : EI LabelPrinting

    ;; Adding Label Printing Report to the already existing Report/s.

    [Report : EI LabelPrinting]

    Form : EI LabelPrinting
    Object : Voucher

    [Form : EI LabelPrinting]

    Part : EI LabelPrinting

    [Part : EI LabelPrinting]

    Line : EI LabelPrinting
    Repeat : EI LabelPrinting : Inventory Entries
    Scroll : Vertical

    [Line : EI LabelPrinting]

    Field : EI StkItem Label
    Explode : EI MoreLabels : $$Number:$BilledQty > 2
    Space Bottom : 1

    ;; Explode part starts

    [Part : EI MoreLabels]

    Line : EI MoreLabels

    [Line : EI MoreLabels]

    Field : EI STkItem Label
    Explode : EIMoreLabels : $$Number:$BilledQty >($$ExplodeLevel+$$Line)
    Space bottom : 1

    ;; Explode part ends

    [Field : EI StkItem Label]

    Use : Name Field
    Set As : If $$IsEmpty:($StkAlias:StockItem:$StockItemName) then “(“+$StockItemName”)” +
    else “(“+($StkAlias:StockItem:$StockItemName)+”)”
    Style : Bar Code

    [Style: Bar Code]

    Font : IDAutomationHC39S
    Height : 10

    ;; Font used to print the alphanumeric/numeric values as Barcode

    [#Object : StockItem]

    StkAlias : $$Alias

    ;; End-of-File

  2. sir, we are a manufacturing company and we are providing fabrics for more than 600 customers each customer has a different types of rate for the same product, is there any option to maintain the rate master for teach customers

  3. Dear Mukesh,
    Welcome to Free Learning tall 9 and accounting.
    I am happy that you like the article.Surely I will write more about TDL and more example. Because it is the example and real program which help to learn tally and the TDL.
    About the tdl code you have published here, I will look into the matter at the earliest and we will discuss this matter and further coding on support fourm

  4. Dear Mahendra ji,
    we are seeking more posts regarding TDL language. the first tdl works well
    Thanks a lot

  5. Ram,
    Surely, You will see more post about TDL actually right now it is hard for me to manage my time schedule.

  6. hi everybody
    can any one help me in my report, i want to print my cash book which should show Cash bank and one extra total (Cash+Bank) column in my cash book

  7. Debojit,
    No one can help for for that as it’s a chargeable service. if you wish to buy a tdl, then please contact us and I will be pleased to quote for the same

  8. Sir i would like to have Percentage fields in pricelist so that it could automatically calculate rate according to percentage given by taking MRP value and VAT from the stock item which we are entering at the time of creation of stock

    e.g : Name: Bleach MRP: 120/- VAT : 14.5%

    so if we enter 20 in percentage field the rate in pricelist should display 83.84

    i.e 120/- * 20% = 96/- the 96/- divide by 1.145 = 83.84

  9. Johar,
    This is a chargeable service.
    Please fill out the contact us page on our site

  10. Sir i would like to have Percentage fields in pricelist so that it could automatically calculate rate according to percentage given by taking MRP value and VAT from the stock item which we are entering at the time of creation of stock

    e.g : Name: Bleach MRP: 120/- VAT : 14.5%

    so if we enter 20 in percentage field the rate in pricelist should display 83.84

    i.e 120/- * 20% = 96/- the 96/- divide by 1.145 = 83.84

  11. Sir please write a program for including pictures in an invoice and to customise the height and width of an invoice.Thank you.

  12. Haider Reza says:

    Yes , You Can maintain it in Tally by using price level

  13. Rajesh Nath Goswami says:

    Dear Sir,
    I want customised Tally for Fee Collection and School Management System. How to solve this.

  14. Hello sir,

    how shall i Al
    ter the ledger in voucher screen without escape from the voucher screen.

  15. hello, i like your style and process in reporting the message. pls provide me coding for school by Rafi

  16. Dear Sir,

    I want to add sales voucher class with ledger.

    pls help me.

  17. Sudhir,
    Your requirements is so strange that, I am really unable to understand it. never hear anything such so far!

  18. Mahendra i like your articles. so helpful to all new developers. Buddy i am also a beginner if you can help me. I have created two Sales voucher types 1)Sales A and 2)Sales B when i print Sales A the title should be Invoice but when i print Sales B i want Inv-Del to be printed can you please help me how to go about it. It would be better if you can give me sode code which i can use it solve my problem.

  19. Refering to my Querry 22.10.2011 at 9.52 P.m, our Tally Serial Number is : 7xxxxxx. Request you to guide for making appropriate correction in the above TDL Codes.

  20. In Tally possible for Auto Batch Numbering if it is possible then how give me details

  21. Sir,
    I need a top margin while printing the POS Invoice, how can i do that, please help

  22. Chetan mandalia says:

    Dear sir,
    i have made two tdl , one is for export contact address from ledgers and other is for voucher no in bank reco mode as i have use this option for cheque no and that voucher no not apperaed in the bank reco mode hence i have made that. I have all these are learned automatically by seening the tdl of sweta computers.
    i want that you have given one tdl for running balance but it is with some error, i have that cleared. pls let me know how can i add my openning balance with running balance And i want to now formula for +-/*intdll

  23. hello sir
    Good Day
    I like your posters and happy. I want to create and view TDL file with UDF. Can u pls help me

  24. Sir,
    I am tally user can you send me the .tdl file for creating a monthly sales of the same stock and printing it in a sales format thanks

  25. Dear sir Mahendra,

    I am using Tally 9 ver2.14, for printing Invoices.
    The option of “Stop printing vertical lines/borders” doesn’t seem to work. I have a dot matrix printer and I need this option to be set to YES. However the final print has vertical lines in it. Is there a correction patch to this bug?

    Please help. (I prefer the neat mode, as the dot matrix mode does not have the desired appearance of Invoice)

    Thank you very much

  26. Dear Sir, I m from Bangladesh.
    A problem in tally 9 i face. There is no opening balance in group summary for Income or Expense group, But it is ok for Asset or Liabilities group. How to solve it sir. Another thing, may I have a tdl for displaying and printing opening balance in Cash Flow.

  27. Eco,
    I am not getting you! In accountancy Income/Expenses can’t have closing balance and so they can’t have opening balances too!

  28. Sir,
    I am tally user can you send me the .tdl file for ledger view on trans screen

  29. S.Ramachandran says:

    Sir, I am regular tally user. I want to print tally invoice in A4 Sheet and I want acknowledgement part from retailor or debtor part having acknowledged stocks and promise to pay the
    same amount as per the above invoice with seal and signature. that acknowledgment part may be 8 inches * 2 inches in A4 sheet. in which party name invoice number and date and amount of invoice to be printed. this tdl have to work on dot matrix and laser printer also. kindly advice how to make tdl regards. S.Ramachandran

  30. Hello Ramchandran,
    We highly value all our readers and I am glad for being you our regular reader.
    Regarding, your requirement, it is not that easy to explain as it needs complex coding, a lot of codes to be prepared,modified etc. I would advice to your hire a professional and he will do it for sure.

    Otherwise, you need to study whole TDL language

  31. Dear Sir,
    i made on sales invoice
    the amount & amount in words coming in INDIAN RUPEES only
    when i make sales invoice in foren currency it is not coming in foren curreny
    pls tell me source code

  32. rahul potter says:

    how to learn tdl language by first student who known about tally but no known about tdl.
    your faithfully
    rahul potter
    aacountant (HOD)

  33. Sureshkumar K says:


    I wud like to learn TDL. Please let me know the ways. I completed TDL course by Tally. But I could not follow it.



  34. Harsh Vardhan says:

    Dear Sir,

    I want to insert one more column of Dis.Amt. before the amount column in sales voucher.

    And get the net amount after deduction of dis in % and dis amt.

    so plz tell me how can i do??

  35. Elavarasan says:

    Hi sir,

    I want to know how to configure tdl in tally 9 gold for data import using notepad format whereas the same is available in ERP9 in the configuration settings please help me how to do tdl config in tally 9 gold

  36. MUSSA KYSMBOL says:

    Hello Sir,
    Thanks for your article it is very interesting,sir am the tally user and my base currency is Tsh. and my other multi- currency is US$,can you help me to get a tdl code that will show me both my figure in my invoice print out?base on my exchange rate?
    example to have the colum that will show:
    Vatable Amount (Tshs) xxxxx
    Non Vatable Amount (Tshs.) xxxxx
    Vat Amount (Tshs) xxxxxx
    Total Amount (Tshs.) xxxxxx

  37. Hello Sir,
    I developed one module in TDL i want to integrate that into balance sheet in tally ERP.9. please help me in this problem. how to Connect my module to tally balance sheet.

  38. Dear Sir How to Open tdl file pl

  39. Dear all please help me to get values from payment voucher of purchase details like Purchase voucher number, purchase voucher date

  40. Dear Sir,

    pls tell me the code for Tally Logo

  41. i have a not change invoice formate by it’s classname
    Help plz..

    [#Form:ExciseMfgr Invoice]
    Add:Options:RetInvoice:@@IsExciseSales and $ClassName Contains “OGS 12 .5%”

  42. u can print logo and pictures if u provide emaild id i can send source code to u

  43. before starting tally tdl basics concepts of programming should be clear , object orinted concepts and how program works

  44. mahesh chauhan says:

    sir i want to learn TDL , by joining your academy pls give me details how can i joint & learn.

  45. sir i want tdl for printing rtgs forms

  46. sir am interested in buying RTGS printing tdl source code.

  47. dear sir,

    please advice me i want to add feature in tally showing profit in every sales entry its possible???

  48. You may need to customise your Software

  49. its possible by tdl can you please help..

  50. Sunny,
    Can you explain your query ?


  52. Dear Mr. Mahendra Rana,
    It seems you are an expert in TDL. I am a Tally ERP 9 users and I am retired now because of my health. So what I do is helping my country men how to run business and the most important is knowing what is our work results daily. I usually recommend them to use Tally ERP 9. I actually been involved with Tally since the first time it came out.
    So, now I work from my home, basically in bed to help people to train and install Tally,
    I just realized that Tally is using a special language which is TDL9.
    Do you know is there a TDL 9 online training. I would like to learn the TDL so I can be able to help my client (which is usually on probono basis), to modify Tally to suit their needs.
    Since I can not travel anywhere only to Singapoore to my Oncologyst and Pain Management Specialist, of course I can not go to any training courses and sit for 8 hours, I will collapse.
    Could you help me whether there is some body that trustable and can teach me through Skype the TDL programming.? It is like a special tutor for me. Of course I would not mind to give reasonable Remuneration for it. I am not rich, both my husband and I are basically ill. My husband had Osteoporotic he just broke 6 spines and operated, both of us are in wheel chair. Most of the time I work in my bed not sitting up but ___/ 135 degree, as I am in pain most of the time. it is a long story.
    If you can not find such on line course, would you tutor me please. My name is Mira Hassan, 55 years old living in Jakarta, Indonesia.
    Thank you for your kind attention

  53. Hello Mira Hasan,
    Thank you for comment. I am impressed with your learning desire. Unfortunately, there is no online tally tutorial is available and no developer will teach it online to the best of my knowledge. However, I will ask some of my known sources but chances are less because they can’t find enough time to teach it as they themselves runs short of time in offering the solutions.
    If you are interested to learn the basic Tally TDL then I can offer you the coaching but I won’t be able to offer you extensive training.
    My skype id is mahendrasinh.rana

  54. help me

  55. Prasanna Pathak says:

    R/sir Thanks for taking stand for us in TDL
    folder link (Dropbox) send by u is not working

  56. Sorry, That drop box facility is only for registered students.

Leave a Reply