Hi friends!
I have a problem running batch in command line of file SCC.
I need to zip the file before sending it. So I created the batch file doing zip to my file. When I running it from CMD it's work perfect. But from XI it is not working.
I tried writing in the command line:
cmd.exe /c "\\files\XIFiles\XI3\Nielson\nielson_zip.bat 1.csv"
Or this:
\\files\XIFiles\XI3\Nielson\nielson_zip.bat 1.csv
What can be the problem?
Hi,
You can use the AF Module PayloadZIpBean for the same. You can zip your file before sending it using this standard AF Module available in SAP PI.
Please take a look at the below Links:
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm
Or
IF you want to use your batch file to zip the file for you, please give the relative path of the batch file in the place where you mention the OS command to be executed before File processing.
eg: "E:\usr\src\Folder\zip.bat"
Here i have assumed that zip.bat is the batch file which will be used for zipping and it is available under "E:\usr\src\Folder" folder on the PI Server with Windows OS.
I hope this will certainly help.
Regards, Gaurav.
Edited by: Kumar Gaurav on Oct 13, 2010 9:31 AM
Add a comment