简体   繁体   中英

Console Script in SAP BODS

I found the below in SAP Data services designer Script Editor. Can somebody explain what does it mean????? Is it downloading the .txt file from the server to the local drive?????????? How do I do the same in SSIS????

    # Download Daily file from Exchange server thru FTP  

    $GV_SERVER = '\\\\Fgppobne01\ft_etl_file_staging';  

    $LV_FTP_COMMAND = 'C:\Program Files (x86)\WinSCP\WinSCP.exe';  

    exec('[$LV_FTP_COMMAND]', '/console /script=' || '[$GV_SERVER]' ||'\Exchange.txt',0);

What does WinSCP.exe do?

A useful debugging technique is to print the output of the EXEC function, for example print(exec('fgfg.exe', 'ggg ddd', 8));

The script that you provided is assigning values to two variables and executing WinSCP.exe. Flag 0(third parameter of exec function) returns standard output if successful ,else System Failure Exception.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM