Skip to Content
0
Former Member
Oct 03, 2011 at 09:29 AM

Import through DTW not updating log

18 Views

Forum,

I am trying to setup a .BAT file which reads as follows:

PATH C:\Program Files (x86)\SAP\Data Transfer Workbench

DTW.exe -s D:\Insphire\Accounts\Test\SalesCreditsDTWLIVE.xml

c:\windows\system32\PING 1.1.1.1 -n 1 -w 20000 >NUL

for /f "tokens=1,2" %%u in ('date /t') do set d=%%v

for /f "tokens=1" %%u in ('time /t') do set t=%%u

if "%t:~1,1%"==":" set t=0%t%

set timestr=%d:6,4%%d:0,2%%d:3,2%_%t:0,2%%t:~3,2%

Set FileDate=%date:/=%_%t:0,2%%t:3,2%

ren D:\Insphire\Accounts\Test\CreditNoteHeader.txt CreditNoteHeader_%timestr%.txt

ren D:\Insphire\Accounts\Test\CreditNoteLines.txt CreditNoteLines_%timestr%.txt

move D:\Insphire\Accounts\Test\CreditNote*.txt D:\Insphire\Accounts\imported\

@echo Saving %copyname%

pause

Whilst this appears to launch, it isn't updating the DTW log. I have a similar one for Invoice which does work and writes an entry in the log file.

Any help would be appreciated.

Regards,

Juan