You dont have javascript enabled! Please enable it! Hello TDL : Our First full fledged Tally TDL

you can watch the video and skip reading however reading will also helpful to you.

Hello world is the first ever tutorial lesson to learn Any programming languages. You learn HTML, JAVA, PHP or even Tally TDL almost 90% tutorials will teach you the first tutorials which will print a line on the screen with ” Hello World” So, we will also write our TDL lesson which will print in your Tally screen ” Hello World ”

So, open Tally developer Now.

first thing first. We simply don’t want to print the sentence hello world to anywhere. We want to add a new report in the main menu of Tally

So, what we need is to add a new report for this purpose we will amend the definition of the Main Menu reports

# symbol is used to amend any existing definition of Tally TDL. Remember you can use the # symbol only if a definition is already existed in the Tally.

So the thumb rule is that # prefix to a definition is a modifier symbol

Now, our first code of line will be as

[#Menu:Gateway of Tally]

Here we use # symbol to amend the definition of the Menu Item.

Gateway of Tally is the default menu report in Tally.

Now we need to add codes what we need to amend to the Gateway of tally so, our next coding line will be:

add : Item : Hello TDL : Display : My Hello TDL Report

Here we are specifying add command which tells the Tally compiler that we want to add something so we put Add keywords then we specify what we need to add in our codes

Key item refers to the item name which we want to add

H refers to short command you can specify any other keyword of your choice. Just take care that you don’t use any existing shortcode like V which is already used for Voucher entry, B for balance sheet etc

Then display refers what report to be shown to use. Here we are specifying a new report My Hello TDL when the user clicks this new menu item it will show him the a report namely My Hello TDL

Now we have added a new report in the main menu however we haven’t defines the report what this report will contains We only named it as My Hello TDL so, let’s have fun with our new report

write in your program editor below line of code

[Report: My Hello TDL Report]

Form : My Hello Form

Here we wrote 2 lines. First line defines our newly created report name that is hello TDL Report and second line we added a form namely My Hello Form. Again you can name your form anything  you like. For e.g. you want to name your form as “ NewForm “ then you can do so without any issue.

Now, we need to define a form and then need parts to a form. A form must have parts and parts must have lines hope now you are getting the basic ideas of a TDL program structure

so, write below lines of codes

[Form : My Hello Form]

Part: My Hello Part

[Part : My Hello Part]

Line : My Hello Line

Now we are in the last stage of our first coding program in Tally TDL

Line must contain a field and field is where the actual data or things we need to show

so, let ’s rewrite the line definition again

[Line : My Hello Line]

Field : My Hello Field

[Field : My Hello Field]

set as : “ Hello, Mahendra. Welcome to the Tally TDL world “

save this file as hello.txt

The Ultimate complete code will look like this one

;; this tdl is our first tdl to learn Tally TDL
[#Menu: Gateway of Tally]
Add: Key Item : HelloTDL :H: Display: My Hello TDL Report
[Report : My Hello TDL Report]
Form: My Hello Form ;; We are adding Form to the Report. Every Report must have a Form
[Form : My Hello Form]
Part: My Hello Part
/* We are adding parts to Form. Part Name is My Hello Part. Every Form must have one or more Parts*/
[Part: My Hello Part ]
Line : My Hello Line ;; We are adding lines to Parts. A part may have one or many lines. Minimum one line is a must else the software will
;; throw an error
[Line: My Hello Line]
Field : My Hello Field
;; We are adding fields to the lines.
;; Lines have one ore many fields. Field is the ultimate place holder which
;; holds data to display
[Field: My Hello Field]
Set as: ” Hello, Mahendra. Welcome to the Tally TDL world”
;; This is data which will be shown in Tally in our new report
;; end of the TDL code

now, activate the Tally TDL and see the result it should show in the Tally as per the below screen shots

To activate your TDL in Tally, go to main menu, then press F12,

Then go to Products & Feature Option.(Shut cut command is T)

Now, Press F4

Set yes to enable TDL

Now specify the file path as per the below image :

TDL configration
Figure : TDL configuraiton
Hello Tally TDL
https://tallynine.com

Once you hit that HelloTDL or just press H you will find the next screen as below :

If, your screen shows exactly same then your code is perfect and it refers that you learnt your first TDL program successfully.

Exercise

Excise makes the learning perfect. Let’s play some coding for fun.

Write a Tally TDL which displays the field text as “ I am learning Tally TDL

Report name should be HelloReport

Form Name should be HelloForm

Field name should be MyTextfld

prepare this TDL and save in the shared dropbox for my review mention your name and your mail id in the beginning of the TDL so that I can identify who has prepared the TDL

in Tally TDL, put ;; put as a symbol before any line so that it will be counted as a comment.

For a better understanding,  watch the below video it will give you a clear Idea

If you face any issue, then post your code in the comment section

84 thoughts on “Hello TDL : Our First full fledged Tally TDL

  1. Hanif shaikh says:

    I am attaching my codes which gives eror :
    Error T0001
    could not find the file “hello.txt”
    ;; Name : Hanif Shaikh
    ;; E-Mail : hanifshaikh@yahoo.com

    [#menu:gateway of tally]
    Add: Item: My Hello Tdl: Display: My Hello TDL

    [Report: My Hello TDL ]
    Form: My HelloForm

    [Form: My HelloForm]
    Part: My HelloPart

    [Part: My HelloPart]
    Line: My Hello Line

    [Line: My Hello Line]
    Field: My Hello Field

    [Field: My Hello Field]
    set as: “Hanif is Learning Tally TDL”

    1. Hello guys,
      I will be discharged from hospital on Thursday

      So, please wait for 2 more days I will resolve all queries once I discharge

    2. HEMADRI M says:

      Hanif open the file in notepad and save as different file name hello1.
      In filename text box don’t type .txt extension. you must enter only hello1
      in the file type select Text Documents(*.txt).

  2. Bhavin Vora says:

    Sir I have tried My Hello World, but message is not appearing.

    I have save my file in Dropbox, named Bhavin Vora – Mumbai \ Hello World.txt

    1. Hello Bhavin,

      I checked your code and it is working fine without any issue. Looks like you had not activated your TDL and if you had activated it, you may need to refresh your TDL

      Please contact me over WhatsApp tomorrow morning so that I can help you in activating, refreshing the TDL with your Tally.ERP 9 software

      1. Hi If you are facing any issue please msg me in WhatsApp or in Zopi chat so that I can undersatnd it and can help you. All students who have joined Dropbox their codes are in their name folder and you can access codes of each others. if a student has not joined the Dropbox then you can’t access their codes.

  3. Bhavin Vora says:

    Sir I tried to do exercise but i am getting error T0008: could not find original description for report – “Hello Report”

    1. Hello Bhavin

      $Symbol is a modification attribute of an existing definition

      Not every definition can be an existing definition in our exercise
      Please go through the chapters carefully and follow them line by line

      you can’t put # before every definition

      in our exercise we are modifying only existing definition is the #Menu : Gateway of Tally so it will fetch the #symbol
      but then rest of the definitions are new newly defined
      so, please remove the #symbol from rest of the definitions and I suggest you please go through the chapters carefully

  4. madan roy says:

    Dear Sir,
    I did not get message on my tally so please check this code not tell me what wrong with this code . please check drop box and guide me (screenshot)
    code is:
    [#Menu:Gateway of Tally]
    Add:Item:My Hello TDL:Display:My Hello TDL Report
    [Report :My Hello TDL Report]
    Form:My Hello Form
    [Form:My Hello Form]
    Part:My Hello Part
    [Part:My Hello Part]
    Line:My Hello Line
    [Line:My Hello Line]
    Field:My hello Field
    [Field:My Hello Field]
    ”Hello,WELCOME TO RELIABLE INSUPACKS”,,

    1. u are not mentioned the key for display the field, add item any alphabet in before display command with colon symbol befor & after the alphabet

      1. It is not mandatory to do so. first purpose is to get ourselves familiar with the new coding so one step at one time we have to learn very basic things in starting and not everything.
        If your code ae not working then let me know.

  5. Refaye Murshid says:

    Dear Mahendra,
    I have tried several times but i am getting the same error T 0001: could not find the file.
    The code which i used is :

    [#Menu:Gateway of Tally]
    Add: Key Item : HelloTDL :H: Display : My Hello TDL Report
    [Report : My Hello TDL Report]
    Form: My Hello Form
    [Form: My Hello Form]
    line: My Hello line
    [Line: My Hello Line]
    Field: My Hello Field
    [Field: My Hello Field]
    set as “Hello, Murshid. Welcome to Tally TDL World”

    Please advice on this?

  6. Hi, My self Ramesh Parmar I have tried Exercise TDL and loaded the same but it is showing description error. I have added TDL file dropbox pl check and confirm

    1. Hello Ramesh

      You have added a report name : Hello TDL report in the main menu
      However you had defined a Report with the name as ” hello Report
      So, please correct the name and test it again.
      Your definition type and definition name must be the same

  7. Sir
    i am not able to load TDL pls advice me how can create TDL

    thanks
    DIXIT

    1. Hello

      Please follow this chapter carefully

      You need to create a new file in the Developer (Don’t write your code in the Notepad

      In the above chapter, there is a video tutorial also available.

      Create a new File and write code in that file and save that file in D Drive

      once you complete the code, Right click the bottom file name as shown in the video
      Copy the file path and then go to Tally

      Main Menu

      F12
      Product and features

      F4

      in the path just paste the file path

      and hit enter

      Alternatively, please be online and give me the Teamviewer

      Though the chapter and the video are self-explanatory and almost all the students have done that without any issue.

  8. ankitkanhy says:

    [#Menu:gate way of tally]
    Add:Item:hello tdl:Display:HelloReport

    [Report:HelloReport]
    Form:HelloForm

    [Form:HelloForm]
    Part:HelloReport

    [Part:HelloReport]
    line:HelloReport

    [Line:HelloReport]
    Field:MyTxtfld

    [Field:MyTxtfld]
    Set as:”I am learning Tally TDL”

    ;;end of file

    ankit kumar singh

  9. Giridharan Varadharajan says:

    Giridharan varadharajan

    My First TDL codes are in drop box.
    for your evaluation

    Regards
    Giridhar.V.R

    1. Hello,

      You do not have to share your files with me.

      I have sent you an invitation for the Dropbox Folder. you need to accept that invitation.
      Once you accept the invitation, it will add more than 200 students folders in your system
      Out of that, one folder is in your name.
      Just put your files in that folder and It will be synced to my system immediately.

  10. suhasmasaye says:

    what is default & simple field shown in the Tutorial Video ??

    1. Simple Field is the name of the existing Field in the Tally TDL
      Default is something different.
      If we want to apply some settings to every fields within a line we use the default key word.

    2. I suggest you write the code rather then trying to understand.

      Because TDL is more about writing codes and not to understand them.
      If you write and test your code, you will have a better idea.

  11. ashok.ranisati says:

    Sir when I add path in Tally it shows error message T0001.Let me know why this happens Sir.

    1. Hello Ashok,
      Error number are not helpfull to understand an issue.
      You should quote the full eroor description of the error.
      Those errors are not going to kill us in anyways. So whenever there is an error read it in full and post the full description.

      Most of the errors are self explanatory and it doesn’t need an expert knowledge to solve them.

      So, test it again and do let me know the full error description.

    1. ; is symbol of of disabling the codes means whatever you write after the symbol ; won’t have any effect in our code. it will be totally ignored.

      Actually it is ; and not ;; but as a fact of habit, I use it ;; it’s a personal choice.
      Generally it is used to disable any code or to put comments in our codes.
      And also you will find a separate unit about commenting the codes.

  12. I have dropbox. Please send me link where I can save code.

    Manish Ojha
    8275058999

  13. Please send me link for your account. I have already dropbox in my laptop.

    Manish Ojha, 8275058999

  14. ;; NAME : SHIV NARAYAN SHARMA
    ;; EMAIL : ewsbhl@gmail.com

    [#Menu : Gateway of Tally]
    Add : Item : Hello TDL : Display : Hello Report

    [Report : Hello Report]
    Form : Hello Form

    [Form : Hello Form]
    Part : Hello Part

    [Part : Hello Part]
    Line : Hello Line

    [Line : Hello Line]
    Field : MyTextFld

    [Field : MyTextFld]
    set as : “I am Learning Tally TDL”

  15. Balaji Rathinathandvam says:

    Kindly help to reslove , this is my first TDL, it is not running, where do i made mistake

    ;; Tally First TDL 20180703

    [#Menu : Gateway of Tally]
    Add:Item : My First Report : Display : My New Report

    [Report : My New Report]
    Form : My Frm

    [Form : My Frm]
    Part : PartNew
    Background : Red

    [Part : PartNew]
    Line : Hello Line
    Height : 5 Inches
    Width : 5 Inches
    Space Bottom : 2
    Space Left : 2
    Space Left : 4.5

    [Line : Hello Line]
    Field : My Field, Simple Field
    Height : 2.5
    Local : Field : Default : Style : My Style
    Local : Field : Simple Field : Set as : “This is a Visible field”
    Local : Field : Simple Field : Color : Red
    Local : Field : Simple Field : Space Left : 5
    Local : Field : Simple Field : Full Width : Yes

    [Style : My style]
    Font : “Helvetica”
    Height : 18
    Bold : Yes

    [Field : My Field]
    Use : Name Filed
    Set as : ” My First tally tdl report ”
    Color : Blue
    Full Width : Yes
    Invisible : No ;; Yes

    1. I didn’t find any issue in your report and in my system the same is working fine.
      There is no mistake in your codes. If you still face any issue, Please share the Team Viewer details.

  16. sureshfkadar says:

    [#Menu : Gateway of Tally]
    Add : Key Item : My first TDL Report: Y: Display : My Suresh Report

    [Report : My Suresh Report]
    Form : My Form

    [Form : My Form]
    Part : Part new

    [Part : Part New]
    Line : Hello Line

    [Line : Hello Line]
    Field : My field

    [Field : My Field]
    Use : Name Field
    Set as : ” Suresh TDL Code”

  17. Chandrakant Parekh says:

    Hello Sir,

    I had uploaded the TDL File named as “Form.txt” for your review purpose in response of the exercise shown in this unit

    Your remarks will be highly appreciated.

    Thank you very sir.

  18. ravindrakhadke says:

    what is the use of invisible command ?
    how can i know the different commands and their use and where to use in tally TDL

    1. did you tried using invisible?

      as the name suggest invisible means simply it will not be visible.
      Generally it is used for logics if condition A is false then then condition B will not be executed
      We are already using invisibles in F11 yes/no settings where when we set a condition to yes it will give us another pop up like GST details of a company
      So for those things we can set no /invisible when the first condition is set to no

      You can’t get a ready made list you can know then only by writing codes and making yourself familiar with codes which you can do by following the course.
      You will not get a ready made some magical list of things anywhere in TDL
      only solutions is keep studying the course and make yourself familiar with the codes.

  19. SURAJIT SARKAR says:

    ;; Surajit Sarkar
    ;; surajitsarkar9046@gmail.com

    [#Menu: Gateway of Tally]
    Add: Item: HelloTdl : Display: HelloReport
    [Report: HelloReport]
    Form: HelloForm
    [Form: HelloForm]
    Part: PartNew
    [Part: PartNew]
    Line: Hello Line
    [Line: Hello Line]
    Field: MyTxtfld
    [Field: MyTxtfld]
    Use: Name Field
    Set as: “I am Learning Tally TDL”
    Color: Blue

    Thank You Sir. I write your tdl programme. This is run in tally erp 9.

  20. Mukul Varadpande says:

    Dear Sir

    My machine is format reinstall the dropbox and trying to paste the text file but
    it will be not working. Kindly help me.

    1. Mukul,
      One student’s system was infected by the virus which was spreading to other student’s system through the Dropbox folder so we had terminated the Dropbox common folder sharing with immediate effect.

      I will share your personal folder with you tomorrow

  21. Rakesh Nakade says:

    sir please check the file created under folder Rakesh Nakade

  22. umang shah says:

    [#menu:Gateway of Tally]
    Add:Item :Hello TDL : display:My Hello TDL Report
    [Report:My Hello TDL Report]
    [Form:My Hello Report]
    [Field: My Textfield]
    Set as :”I am learning Tally Tdl”

    sir, its not working

  23. Nitesh Mehndiratta says:

    I have two sales ledger and two purchase ledger in my accounts in tally
    what I want is to add up the closing values of both sales ledger and substract it from the sum of closing balances of both purchase ledger can u tell me the code for same
    I want to display this information on gateway of tally only in Hello TDL.
    When I

  24. moonis.magnus says:

    Sir,can you confirm that why you write word “my” in my hello tdl report.none of impact of this word on tdl.
    pls explain

  25. Silambarasan Ponnusamy says:

    Sir,
    Exercise is ok. Done.

    How to create, open TDL projects in Tally Developer9.

    It was confused. and anyway build(F9) option enabled finally.

    Need some clarification about project creation and build the project in Tally Developer9.

  26. RUPESH THAKUR says:

    Dear Sir,
    I have prepared line tdl report. TDL file showing error while executing in tally erp9. Error is “Field :Big Field, Could not find description”

    Other errors also find and resovled. but required clarification –
    1 Everything I need to change in 2nd TDL file from adding new report name to display name also. Why we required to change name description in 2nd seperate TDL file.? May be report name become new default name in tally erp. But Why I need to change Form name, part name description.
    2 What is Semi Field, Big Field? What is the use of ” Use : Name Field”? Also not able to understand “Line :mkr line, Field: ranafield, Use : uni date field”

    Regards,
    Rupesh

  27. Muruga Vel says:

    Name: k.Murugavel
    E Mail Id : murugavel.k1983@gmail.com

    [#Menu:Gateway Of Tally]
    Add:Item:My Hello TDL:Display:My Hello TDL Report
    [Report:My Hello TDL Report]
    Form:My Hello Form
    [Form:My Hello Form]
    Part:My Hello Part
    [Part:My Hello Part]
    Line:My Hello Line
    [Line:My Hello Line]
    Field:My Hello Field
    [Field:My Hello Field]
    Set as: ” Hello, Murugavel.Welcome to the Tally TDL world”

  28. SURENDRA KUMAR says:

    #Menu: Gateway Of Tally]
    Add:Item:my hello tdl:Display: my hello tdl report
    [Report:my hello tdl report]
    Form:my hello form
    [Form:my hello form]
    Part:my hello part
    [Part:my hello part]
    Line:my hello line
    [Line: my hello line]
    Field: my hello field
    [Field: my hello field]

    Set as: hello i am leaning TDL

  29. Sarvesh Prabhukhanolkar says:

    Sir,

    Done with the exercise and joined dropbox too. Please send me the Drop Box joining invitation

    1. Hello Sarvesh,
      Dropbox folder is shared. Please check your inbox accept the invitation and then add the folder to your Dropbox.
      Thanks for joining the course.

  30. Suryanarayana Kollepara says:

    Sir, I have created code but when click on Hello TDL under gateway of tally it shows as under
    error in TDL.
    ‘form: My hello TDL Report’
    could not find description!

    kindly help me out

  31. Nitesh Ranjan says:

    When I insert the path in tally prime configuration. I am unable to save it in tally prime.

  32. srigopal_hyd says:

    ;; Sri Ganesh

    [# Menu : Gateway Of Tally ]
    Add: Item: MY REPORT : Display: My Report

    [ Report: My Report ]
    Form: YOUR FORM

    [ Form: YOUR FORM ]
    Part: PART 101

    [Part : PART 101 ]
    Line: LINE ONE

    [Line : LINE ONE ]
    Field : ANYFLD

    [Field: ANYFLD ]
    Use : NAME fIELD
    Set as : ” This is our First TDL Report amazing ”

    Working fine.. yay 1st tdl..

    i am late in tdl but ill not quit

  33. Megha Shah says:

    [# Menu:gatewayoftally]
    Add: Item: HelloReport: Display:HelloReport
    [report:HelloReport]
    Form:HelloForm
    [form:HelloForm]
    Part:part201
    [part:part201]
    Line: line301
    [Line: line301]
    Field:MyTextfld
    [Field:MyTextfld]
    use: name Field
    Set as: “I am learning Tally TDL”

  34. DHEERAJ PUDKE says:

    [#Menu: Gateway Of Tally]
    Add: Item: Team Tally : Display: Tally Support

    [Report: Tally Support]
    Form: Tally Wala

    [Form: Tally Wala]
    Part : My Tally

    [Part: My Tally]
    Line: Tally

    [Line: Tally]
    Field: TSPL

    [Field: TSPL]
    Set as: “D.P Services, Bilaspur CG “

  35. pradeepkole says:

    I cant Play training video here please guide how to play and how to share to shared dropbox folder

    1. Hello Dropbox folder is shared via Email and for video please allow protected contents in your chrome browser media settings and also clear cache and cookies

  36. Ganesh Kumar says:

    ;; this tdl is our first tdl to learn tdl
    [#menu:gateway of tally]
    add: key item : hello tdl :l:display:my hello tdl report
    [report : my hello tdl report]
    form: my hello form;;we are adding form report every report have form
    [form: my hello form]
    part: my hello part
    /*we are adding parts to form. part name is my hello part. every form must have one or more parts*/
    [part:my hello part]
    line : my hello line;;we are adding line to parts. A part may have one or many line.minimum one or many line.minimum one line is must else the software will
    ;;throw an error
    [line: my hello line]
    field : my hello fields to the lines.
    ;;we are addingfields to the lines
    ;;line have one or many fields. fields is the ultimate place holder which
    ;;holds data to display
    [field: my hello field]
    set as: “hello, ganesh. welcome tothe tally tdl world”
    ;;this is data which will be shown in tally in our new report
    ;;end of the tdl code

    error show could not find discriptions

  37. Ganesh Kumar says:

    ;; this tdl is our first tdl to learn tdl;; om muruga ;;om kannathal namho
    [#menu:gateway of tally]
    add: key item : jga it support :l:display:jga tally support
    [report : jga it support ]
    form: jga it support;;we are adding form report every report have form
    [form: jga it support form]
    part:jga it support
    /*we are adding parts to form. part name is my hello part. every form must have one or more parts*/
    [part:jga it support]
    line : jga it support, my 2nd line,my 3rd line;;we are adding line to parts. A part may have one or many line.minimum one or many line.minimum one line is must else the software will
    ;;throw an error
    [line: jga it support]
    field : computer support, tally support,tdl customised ; jga it support field
    ;;we are addingfields to the lines
    ;;line have one or many fields. fields is the ultimate place holder which
    ;;holds data to display

    [line: my 2nd line]
    field :tally support
    Use: Name Field
    Set as: ” this is 2nd line ”

    [Line: my 3rd line]
    Field: tdl customised
    Use: name field
    Set as: “this is 3rd line ”

    [field: tally support]
    set as: “tally support service customised done”
    Background: YELLOW

    [field: tdl customised]
    set as: “report is customised any things”
    Background: Green

    ;;this is data which will be shown in tally in our new report
    ;;end of the tdl code

    tdl error discriptions not found

  38. Sainath Konduri says:

    [#Menu: Gateway of Tally]
    Add: Item: Hello TDl: Display: HelloReport

    [Report: HelloReport]
    Form: HelloForm

    ;; Sainath Konduri

    [Form: HelloForm]
    Part: HelloPart

    [Part: HelloPart]
    Line: HelloLine

    [Line: HelloLine]
    Field: MyTextfld

    [Field: MyTextfld]
    Set as: “I am Learning Tally”

  39. Raj Thakur says:

    [#Menu:Gateway of Tally]
    Add:Key Item:My First Program:G:Display:My Hello TDL Report

    [Report:My Hello TDL Report]
    Form:My Hello Form

    [Form:My Hello Form]
    Part:My Hello Part

    [Part:My Hello Part]
    Line:My Hello Line

    [Line:My Hello Line]
    Field:My Hello Field

    [Field:My Hello Field]
    Use:Name Field
    ;;Style: Italic
    ;;Width: 50% screen
    Set as: “Myself Raj Thakur. Welcome to our TDL World.”

  40. Niket Shah says:

    Is there any other procedure / thing to do for Tally prime?
    I have loaded the TDL. It shows TDL Loaded

Leave a Reply