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@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
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