Drushtant Infoweb Pvt. Ltd

learn tdl | how to create a new field in Ledger Master ?

So, far a great response to our first TDL program its time to go ahead.Before  you read this article, you must know how to configure TDL in tally otherwise you will not be able to use the TDL.

Once again I have to remind that TDL is domain specific language and its  Tally’s programming language which help you to customize your default tally reporting, menu etc. It is very easy to learn tally but you need to have great hands of practice to learn the same.

There is no book available in the market to learn this programming language!

Below is a programming code which will help to create a new field in your ledger Master  creation/alteration mode.

;; user who are interested can learn tally tdl,
;;UDF definition
[System: UDF]
MyUDF: String: 1000

;;Modify Ledger Master entry screen and add a line
[#Part: LEd Other Details]
Add: Line: MyLine

[Line: My Line]
Field: Short Prompt,My Field
Local: Field: Short Prompt: Set as: “City: ”

[Field: My Field]
Use: Short Name Field
Storage: MyUDF

;; End of code

In the above code what we have created is known as UDF (User Defined Functions)

The above code will create a new field namely CITY in your default ledger master

On the same way, you can create any other such UDF you wish so.

The screen shot is as below

Try to create such more UDF yourself. I am always there to help you in case of need.

Please post your query related to TDL  on support forum only

or if you want to learn more, you can join  online tdl course with lifetime access.


  1. Ram

    Great it works!.. please keep posting
    Thanks a lot

  2. dev

    Dear sir,
    kindly suggest me to account a deemed seller business. there is material sale involved as input in work order.
    like we do civil work including material.
    i do want to know how to make sale bills for the same. suppose we are giving a running account sale bill to customer for the 30% of the total value of contract. and we will receive the payment after deductions of wct and tds.
    please help me.
    and let me know that how to make entry of wct deductions and tds (deducted at customer end).

  3. dev

    if deemed sale is accountable under work contracts sale.
    there is two type of work contract one is done in state and other is outside.
    which % is applicable for both.
    and how to calculate the sale tax payable for the same. there is input on purchases but how we will calculate output payable after deductions of inputs.
    i think after getting the solution of making work contract sale bills. there will be output vat.
    and kindly suggest me should i calculate service tax receipts without making service tax output entry in sale bills.
    thanks mahender sir.
    i know there is solution for the same. i havent get at any tally centre here nearby in mohali, chandigarh. everyone is teaching by books.

    1. Dear Dev,
      Right now I have been busy. Will respond you shortly.
      Though I love to respond people on support forum

      1. Bhavinshah

        i m bhavin shah . i m software developer can u pls let me how we can put Date Expression In TDL File so after we can fetch From tally…..

        Regards Bhavin

        1. Bhavin,
          TDL language is complete different. you need to know the perfect coding as the same code applies to different reports and different functions so, just by knowing one or two codes will not help you.
          kindly refer the free tdl codes available with the Educational version of Tally.erp 9

  4. Uma Ganesh

    Dear sir,

    what is the code for company service tax

    iam use this code but it is not working


    please tell me the code

    1. Uma,
      Right now I am busy. but u can search it from mfgexcise.900 file from the default TDL file (Use Vat TIN No. for search)
      Further to above, you need to specify the code as : $STNNumber:Company:##SVCurrentCompany ohterwise it wont’ work
      Try with CST number $InterStateSTNumber:Company:##SVCurrentCompany and do let me know

  5. bharat

    dear sir
    i want to a tdl for printing lenth
    bcoz i have a account for itc & there much more
    customer & they puchases 2,3 item only
    so tally print fully page for it, but accounting in busz its modifing in half paper size.
    pls suggess me how to work ,

    1. Bharat,
      It may cost Rs. 5000.00 No free service.
      If interested than Send us your invoice format and the Tally.erp 9 serial number. The TDL will work only with the specified serial number only.

      1. i want to create a bill book in tally .how to create bill book we are selling ups we are the athorised dealer of apc ups so we want to entry the bill so pls tel me how to create the bill book

        1. Jayapriya,
          Have you mentioned your Tally Serial number ?
          than how can you expect response o?m us

  6. Dani

    I like to add a field in Sales Invoice’s Item entry part. Which Part Name I can use for this like [#Part: LEd Other Details]. If there have any list of Existing such Part Names?. Kindly help me.
    Dani Josemon

    1. Dani,
      It depends on the area of the part which you intend to modify. by this way no one can suggest because in Tally, many times part contains part!
      you can see all the part definition, name etc in Detaulf TDL software . Click to Navigate than jump to definition or just press Ctrl +j and Select part in definition type and you will get it

  7. prajith

    i want to a tdl for printing lenth
    bcoz i have a account for itc & there much more
    customer & they puchases 2,3 item only
    so tally print fully page for it, but accounting in busz its modifing in half paper size.
    pls suggess me how to work ,

    I also need this type program can u send one demo copy works in educational

  8. kama punj

    The way by which you are giving training of TDL is very good.Any person having knowledge of tally can learn TDL

    1. kama punj

      Sir, in release 3 when we change the quantity manufacture in voucher alter after saving production voucher, tally is not changing components.
      say for manufacturing item a one we consume item B one pc. We enter production for 500 pcs tally consume 500 item B we save the voucher. After saving we come to know the actual production was 600. When we change the quantity from 500 to 600 tally is not changing the quantity of Item B as 600. It remain 500 and we have to manually change the quantity.

      we want TDL so it should change

      1. Kama punj,

        I am not sure what are you referring for ?
        Are you using the BOM ? if not than you should try for BOM
        and once you enter a consumption and payment vocuehr, you have to manually alter the qty if there is difference in product/consumption

  9. Jigar Shah

    Before updating to version 3.1 the stock query in sales entry showed all the last rates sold to that respective party only but now it shows the rate of that item sold to any party.So we cannot find the rate of item sold to entered party???

  10. Jigar Shah

    I want to learn a TDL which can increase the size of declaration given in the sales entry.

  11. Manikandan

    I need to Add a three additional Lines in the Tally.erp9 invoice.

    Anyone suggest me the codings of the TDL.

    I await for your reply.

    Thanks & Regards,


  12. Rakesh Tripathi

    how to extract tds details with party address in tally i export etds return 26Q but in this export address is missing so please guide me


    Dear Sir, i want to activate cash discount column in sales voucher but want to remove the discount coulmn in the simple format printed invoice.

    kindly contact me on 80xxxxxxxxx. i want the customization

    1. Dear Mithilesh,
      Some one from my team will contact you over your phone number.

  14. amit jain

    dear sir, i want to add bank detail such as bank name,a/c no.branch.rtgs no in invoice @ is should be optional. like terms @ condition. so please send me text code of this

  15. speakwithanbu


    I have a TDL code. I neeed to import the TDL code into XML format how can i do it

  16. Dheeraj

    Can Predefined narration tdl be available for free. My Tally Sr. no. is xxxxx

  17. jigar

    tdl for share market long term , sort term, intraday calculation & report in tally
    thank you

  18. Johar

    I want to add cost price in stock master, so that at the time of entering purchase voucher it directly takes the cp from the master.

    I need tdl for the same


  19. poornima MR

    dear sir,
    how to create the user defined fields in tdl.

  20. naushad ahmad

    Sir i want to be a TDL developer. what should i do to do that? & what is the requirement to be a TDL developer..

    Please reply as soon as posible

  21. manish sapra

    hi, i need to add a column of nos. of pieces just before the Quantity in my sales invoice. Could you please advise how do i go about it. Waiting for ur reply @ topseesilkmills@hotmail.com

    thnks a lot.

  22. Noor

    Please let me know how to create the udf using xml tags. I want to execute the TDL action from my vb.net program.


  23. Abdulkader Najib

    i have an optical shop where in i have to take advance payment against retail sales.. i enter my sales in POS voucher.. the problem there i no provision for accepting advance payment in tally..
    please provide me with a solution

  24. Pavan

    Create a new field in the ledger master not working its failed can you check it.

    1. Hello Pavan,

      The said article is only for a guideline nature it wasn’t full-fledged TDL code. like I haven’t defined the UDF there.

      A full fledged with complete source code along with explanations of every line and images is available at registered student section.

  25. Maulik shah

    Dear Sir,

    I want to learn only TDL. What is charge for it and what are timings is it flexible or some time being?

    1. Currently, the Course fees for the Tally TDL is Rs. 3999 and this is a one time course fees for the life time.
      There is no course timing. You can access your course anytime you wish so since it is a web base course.

  26. Maulik shah

    sir what is prospect of TDL.I live in ahmedabad. but here no one is more interested to implement changes in tally so what is scope for it?

    1. For the Scope, I am ready to pay you Rs. 2 lac if you can deliver me the customization within one one month as per my requirements.

      Tell me if you are ready to take it?
      In short you won’t get a free time to seat if you know the Tally TDL

  27. Debasis Dey

    I want to create Agent Master through TDL which will ask for Agent Name, Address and Phone No as User Input and Save Date in TDL Collection. How to write TDL for this. Kindly help

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

error: Alert: Content is protected !!