Sitemap

Amicuk Programming Answers

Unzip file using operating system command in file/ftp receiver adapter

2015-10-11   Views:1

Advertisement

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter

Hi,
I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix).
The command I entered is quite simple: unzip %F (also tried the %f, but i guess it doesn't really matter wich on I use).
Is it possible that I'm unzipping to another directory than the one i expect? the unzip should be performed to/in the current directory, and assumingly current directory is the one stated in the 'Target Directory', right?
Hope someone can clearify this issue for me.
Best regards,
Daniel

The replay answer
Advertisement
Hi Daniel,
It seems to me also, that the files are being unzipped to a different location than what you are expecting. The OS command might getting executed in some default location(i am trying to fnd that out)on the server and not in the target directory of the channel(It seems logical to me)....
If you have time...pls try this out & see whether this would help...
Have a shell script written with the following commands in them
cd <path to target directory>
unzip $1(filename from the channel)
and in the OS command in the Channel give....
<absolute path to the .sh file> %F
Thanks,
Renjith.

Go to See the other 6 answers

Unzip file using operating system command in file/ftp receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter[More]

Filename for flat file using J2EE FILE FTP Receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi there, I am struggling to do the following: I have a J2EE File receiver that sends a file with a specific name to a FTP destination. I define the target filename in my graphical mapping using certain criteria and a incremental number. In my adapte[More]

Operating system command in file adaptor

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am doing file to Idoc scenario, can i use the Operating system command in file adaptor to compress the file at FTP server and decompress the file at IE. I don’t know is it possible and if yes then how or is there any other way to handle the big[More]

Operating system command in file receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, How to use the Run Operating system command after message processing option in the parameters tab of the file receiver adapter. I am working on a scenario wherein a batch file needs to be invoked after the file is written on the file system. So h[More]

File Adapter 7.11 - set operating system command line dynamically

Category:DefaultRelease time:2015-10-11Views:130

Hi, is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute? I need to set  a command line exec depending on some XSL mapping values. thx holgerhi, >>>is there any way to set the "[More]

File Receiver Adapter:Run Operating System COmmand after message Processig:

Category:DefaultRelease time:2015-10-11Views:130

Dear All, I have gone through this link [http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] But i have a problem. In the scenario which we have, File name is DYNAMICALLY GENERATED by a UDF I want to call th[More]

Operating System Command After File Processing in Sender File Adapter

Category:DefaultRelease time:2015-10-11Views:130

Hello guys, actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI. Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we[More]

Run operating system command for sender File adpter (NFS)

Category:DefaultRelease time:2015-10-11Views:130

Hi All, iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed). I mention OS command like this: sample_server\scripts\Test\Rename.bat" Rename.[More]

Unable to run a Batch File Operating System Command

Category:DefaultRelease time:2015-10-11Views:130

Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing. My Batch file: gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin My Command Line (ID scenario) exec "cmd.exe /c C:\Progra[More]

Is it possible to call operating system command after file receive?

Category:DefaultRelease time:2015-10-11Views:130

Hi expert, I'm trying to call operating system command after file receive comm.channel receive a txt file. operating system command uses txt file name as parameter. Is it possible? How? Thanks.Hi, It should be possible, actually we have two options t[More]

Operating system command to zip the file

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, I got proxy to file scenario, i can place the text file successfully in reciever side, i want to zip the file in reciever side using operating system command option in reciever Communication Channel. Can anyone please give me the operatin[More]

Hot
hello gurus, I need standard stock reports available in SAP with GRN no. and date. points assured* AnandHi Use MB5B stock on posting date.By using this T code 1.You see stock on a perticular date 2.If you give selection date rangeL ex 01.07.2007 to 1 [More]
Everytime i try to sync my ipod it starts to do it then stops and gives me an error code. What do i do?Please share the error code with us or you can see: iTunes: Specific update-and-restore error messages and advanced troubleshootingRead other 4 ans [More]
When operating Time Machine remotely via Back to My Mac (and by remotely, I mean from Illinois to Ohio ), seeing your remote mouse cursor is largely a no-go, even in Lion. It simply does not get displayed, with very minor, flickering exceptions.  Cer [More]
Hi, I hope somebody can help: I have already read lots of blog entries and help articles to find a solution but all the tricks with node functions and special conditions didn't help yet. I would like the sequence of A and B nodes just as is. In the s [More]
Hi experts! I have an error in my SOAP Receiver adapter at RW: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 198). ---> I [More]
I can't seem to get volume through front or rear mic jacks when I'm mixing li've on the net. People saying? they hear the music fine but my voice is very low. I have mic volume all the way up but no change in volume. I tried recording voice in what y [More]
Hello, I have created jar file. after it is double-clicked, the menu form is coming and it is executing correctly. the problem is reading from database but not writing to it. it is now displaying any error msg. y it is happening? i am havng database [More]
The following code demonstrates a problem with namespace qualifiers used in variadic macros. The workaround (if you want to call it that) is to use triple colons as the scope resolution operator inside certain cases of variadic macros. The following [More]
I have an IPOD (30GB) and when I attempt to import .mpg files into ITunes so that I can put them in my IPOD, the ITunes software goes thru accepts them as vaild videos to import, it also begins processing them so that they will be in my ITunes video [More]
Hi, We are looking to test e-filing on our new ECC6 system. Can anyone advise what occurs in terms of validation of data when generating XML for outbound submission  and once the test file has been received by HMRC? Is is possible to test end-to-end [More]