Sitemap

Amicuk Programming Answers

Operating System Command After File Processing in Sender File Adapter

2015-10-11   Views:2

Advertisement

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

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 have the problem that we sould maintain an order processing files.
We thougth that an idea could be to execute one file pointing to D:/DPI and at the Operating System Command put like: copy D:/DPI/file.txt D:/DPI/outbound/file.txt, so when file is executed, we move the next file to another directory where is pointing the adapter. Doing this we have an error on the adapter giving us the message: Could not process due to error: java.lang.NullPointerException
We are using a Windows.
There is anyway to do in our way, or there is a better solution to resolve this problem?
Any other idea to do this?
Many thanks in advance.
Regards,
Xavi.

The replay answer
Advertisement
Helo Guys,
maybe I haven't explained well.
We have one directory with different files. We have one adapter for every file( we need for the content conversion ) using NFS and all the adapters are pointing to the same directory.
The problem is that if we have files A.txt, B.txt and C.txt we need to process in an order.
And the problem we see is that for every file we have one adapter, so for example if we process file A.txt with one adapter, when this part is finished, we want to process file B.txt with another adapter, and the same for the rest of the files.
So the idea we had is to create another directories, and when A.txt has finished move file B.txt to another directory.
However this way is not running, if we log on the PI machine and execute cmd, we can do a copy of one file from one directory to another, but when we put this sentence in the adapter in OS command if we see the adapter log we see an error executing the OS command, but we don't know what is the error, there is no more information.
There is any way to do this or maybe we have to manage in a different way?
Many thanks in advance.
Regards,
Xavi.

Go to See the other 5 answers

RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESSING

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

hi. just i want to know what is the purpose of run operating system command before message processing,after message processing under file sender adapter. waiting for your great answer. bye. regards. seeta ram.Hello Seeta, let me see if I give it usin[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]

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 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 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]

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]

Using operating system command on file receiver comm.channel

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

Hi, I pepared a XI 3.0 message generating .txt file. I must append content of this file to the and of the file with same name but different extension(.bak extension). I know it is achieved with copy name.bak+name.txt it appends txt file to the .bak f[More]

Run Operating System Commands

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

Hi, There is an urgent requirement, i want to know about Run Operating System Commands in file adapter. What are all possible commands for windows operating system? and how it works? Kindly send me your suggestions and links at the earliest. Your hel[More]

Run Operating Systems command.

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

Hi Experts, Please provide information on Run Operating Systems commands for File adapter. I have gone through t he below mentioned link already: [http://help.sap.com/saphelp_nw04s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm] Also , pl[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]

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]

Hot
Hi I tried to show an image on a JPanel of a JTabbedPanel. I the only way to show it for some time was this: in the StateChangedListener I use drawImage when the selected panel is teh one I want to draw the image at. Tracing code makes the panel show [More]
The dock station Philips DS9000 doesn't work with the Iphone 5. I have tried several lightening adaptator but the problem is the same. Anyone have the same ??I have the SoundDock 10 and generally use the Bluetooth connection. I have just reinserted t [More]
I am currently and for the first time using iPhoto 6 to produce a book - a feature within the application. I have edited my images in Photoshop, some have not needed to be so they have simply been saved as either high-res JPGS or TIFFS. On importing [More]
Hi folks, is it possible to leverage the language capabilities of BW in WebI through an Universe WITHOUT using SAP authentication (means having a fixed user in the underlaying BW connection and NOT SSO)?? We are facing this requirement in a POC havin [More]
Hello gurus, Can I use dropdown WEBITEM for selection variable. I mean instead of selection screen for variable, can I use dropdown in the web report..? Thanks, Raj..here it is : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.k [More]
When my iPod askede me to answer the questions I did not think there was any way I could answer them incorrectly. When they came up as incorrect I should have stopped and gone into my account and changed the questions and answers, unfortunately I did [More]
Hello, I have an iMac G5, latest OS Tiger, Windows XP PC, Linksys WRT54Gv5 wireless broadband router, and DSL modem. The PC connects to the Linksys router, along with the DSL Modem. The iMac is connected wireless to Linksys router. I have no problems [More]
hi, im liam, and im making a podcast with my friend now. we used a part of 'Boss in Drama's song in our podcast for about a minute for bgm. in this case, can't we publish our podcast? plz help us ! thx !If you use any copyrighted music or recording w [More]
hi , i have customized few ESS screens , persdata,familydet,bank,...... Now, i hav one requirement to create the same for SHIFT 0007 details . Evn it's an MSS feature ,anyhow they r going to update individually.So i hav plans to include that in ESS i [More]
I'm curious to know if the new dual-band Time Capsule/AEBS will let you limit bandwidth on the guest connection, or if it will suck up all the available bandwidth without restrictions?I would say No to this. Apple wouldn't care much about bandwidth i [More]