Delete File After Import Data

Hi… We’ve got question, if I create a dataport let say’s only import, is it possible delete the file *.TXT in any folder that I placed after the record after trasfered to Navision Table, thanks for any suggestion… Regards,

Yes, It is possible to delete the file after import. Define a Variable TempfileName Text 250 Write the following code on OnPostDataport IF EXISTS(CurrFile.NAME) THEN BEGIN TempfileName := CurrFile.NAME; CurrFile.CLOSE; ERASE(TempfileName); END; Be careful to use some other condition also if you want to use export within the same dataport. Satbir