How to Replace Ledger Name using TDL

Discussion in 'Tally Developer' started by NiravMerchant, Apr 19, 2024.

    
  1. NiravMerchant

    NiravMerchant Active Member


    Hi Every one I need a Small Help
    i want to change Existing Name of Ledgers Created in Tally with the Name in Excel.

    I have an Excel file which has Tally Acutal LEdger name and Name to Replace

    I have tried Following Code but not able to do the needful

    it gives error

    Code I
    [Function: LedImport]
    02 : WALK COLLECTION : LedgerImport
    n01: New Object: Ledger:$ReplNm
    n003: Set Value: Name : $SanLedNm
    N004: Set Target:..
    n03: Accept Alter
    n04: Set Target: ..
    090 : END WALK

    Code II
    [Function: LedImport]
    01 : WALK COLLECTION : LedgerImport

    02 : Set Target:(Ledger,$ReplNm).
    n02: Set Value: Name : $SanLedNM
    n003: set target
    n004: save Target
    n005: set target : ..
    n006: end walk

    both about code not doing the things required
    can anybody help me in this

    Thanks
     


  2. sattam

    sattam Active Member



  3. NiravMerchant

    NiravMerchant Active Member


    Satamji Thanks
    But i need to replace actual name of Ledger.

    i have tried all Modify object, set target and New object options but not working

    if any body can help

    Thanks
     


  4. narayane88

    narayane88 Active Member


    [Function: LedImport]
    02 : WALK COLLECTION : LedgerImport
    n01: New Object: Ledger:$ReplNm
    n003: Set Value: Name : $SanLedNm
    N004: Set Target:..
    n03: Accept Alter
    n04: Set Target: ..
    090 : END WALK

    this code working fine show error if any
     


  5. NiravMerchant

    NiravMerchant Active Member


    Hi Naryanji
    i have check the code - it gives error like
    FUNCTION: 'LediMPORT' LABEL: n03 : Group Name not given!
     


Share This Page