Export the selected lines from day-book in XML format

Discussion in 'Tally Developer' started by Deepak Sharma (KNP), Jul 24, 2020.

    
  1. Deepak Sharma (KNP)

    Deepak Sharma (KNP) New Member


    Dear Sir,
    I want to export the selected lines from day-book in XML format and it should be generate in only one file.
    but in my TDL generate Separate XML file for each Voucher.
    So Please check and resolve my problem

    [#Report : Day Book]
    Local : Form : Default : Add : Button : NNSPL_Exact

    [Button : NNSPL_Exact]
    Title : $$LocaleString:"Export"
    Key : Ctrl + E
    Action : Call : NNSPL_ExpVch
    Scope : Selected Lines

    [Function : NNSPL_ExpVch]
    Variable: PrintFileName : String
    75 : WALK : NNSPL_SalSrcCol
    10 : SET : SVExportFormat : $$SysName:XML
    11 : Set : MyVoucherId : $MasterID
    15 : Set : PrintFileName : "D:\XML\"+$$String:##MyVoucherId+"_"+$$String:$VoucherTypeName+"_"+$$String:$VoucherNumber+"_"+$$String:$Date
    30 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat
    20 : SET : SVOpenFileAfterExport : Yes
    80 : EXPORT REPORT : MyInvoice : Yes
    90 : END WALK

    [Report : MyInvoice]
    Object : Voucher : @@VcHFormula
    Use : Voucher
    Form : Printed Invoice


    [System: Formula]
    VcHFormula : $$Sprintf:mad:@VchMasterID:##MyVoucherId

    [System:Variables]
    MyVoucherId:0

    [Variable:MyVoucherId]
    Type:Number

    [Collection : NNSPL_SalSrcCol]

    Data Source : Report : Selected Lines
    Fetch : MasterID , VoucherNumber , PartyLedgerName , Date , INVENTORYENTRIES.* , INVENTORYENTRIES.BatchAllocations.* , LedgerEntries.*
    Fetch : LedgerEntries.BillAllocations.* , Amount
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Refer ----- [Function: Smp Export Selected] in Developer.
     


  3. Deepak Sharma (KNP)

    Deepak Sharma (KNP) New Member


    According to your information, I checked in TDL developer

    But there too different files are being prepared according to Ledger

    whereas i want single file for all selected voucher
     


Share This Page