on 02-04-2016 2:56 PM
Hi All,
Actuall scenario: Idoc to file ( with zipped file containing other vechiles)
So my idea is to split the it into 2 scenarios IDOC to File and File to Zipped File
The issue is with 2nd scenario: File to Zipped File
Using PayloadZipBean module at receiver and additional file setting at sender, I am able to Zip Multiple files at sender to one zip file at receiver side but number of files are fixed by using Additional file option.
If the files are less then the specified then channels is throwing error. I want to pick files dynamically ‘n’ number of files present in the channel and zip them all. Could you please assist if any of you have already worked in this type of scenarios or any idea how to do this.
Thanks in advance.
Regards,
Swapna.
Hi Swapna,
Try to maintain namepart value as *.xml and yes off-course it throws error if additional files are not there because you have mentioned trigger.optional as NO.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj, Yeah it worked if i changed the Optional parameter to YES but i have 1000's of file coming in, i have tried putting * but only 1 file (main payload) is coming not any other files. Is there any other way to pick dynamically all the files in the AL11 path, instead of maintaing the file names in Additional files. Regards, Swapna.
Tried using the Link : http://scn.sap.com/people/suraj.sr/blog/2009/07/21/zip-multiple-files
Use the following OS Commands: cmd /C "jar cvfM \\machine-name\foldername\zippedfolder\test.zip -C \\machine-name\foldername\files2zip ."
Files which need to be zipped is kept in location : \\machine-name\foldername\files2zip
Zipped file will be created in location \\machine-name\foldername\zippedfolder\zip and will have name test.zip.
Getting wraning.....
Please assist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All, The issue is still pending, could anyone please assist. Regards, Swapna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Swapna,
Instead of giving additional files why don't maintain something link Trig* in the file name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.