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'm having a really weird problem. My projector version 11.5 and 12 gets stuck on an iMac with osx 10.8.2 on the first frame. Only way to make it progress is to disable the "run on background" and repeatedly deactivate and activate the proje [More]
 I have accumulated a total of 4 malfunctioning LaserJet toner cartridges in the last 6 months and I seem to be stymied trying to do anything. They are for LaserJet models 5, 6p, and 2100, and the failures are each unique print quality problems, move [More]
Folks, I am using Oracle APEX 4.0. I want to create a tabular form with one column as File Browse field. I've created form using APEX_ITEM and file browse item using pure HTML tags as we do not have any such item in APEX_ITEM. So these fields are app [More]
Okay this is a dumb question but how do I change the color of lines in a line chart?"spacehog" <[email protected]> wrote in message news:g81g1a$eq4$[email protected].. > Okay this is a dumb question but how do I change the color of line [More]
Hello All, Our client has outsourced check printing to our Bank. I am wondering how can I generate an Idoc for check payment with check numbers? We will be providing the check numbers to the Bank and they will be printing them. I tried to use the RFF [More]
Hi all, I was trying to create a snapshot in outlook in a users computer but unfortunately the system displays a strange message: Access to business partners denied.User "so and so" is not a sales employee The user is a member of Sales Employees [More]
Hey all, not a huge deal overall but this seems to be happening more often than ever. Have got the mighty mouse scroll ball 'click' set for Expose, and side buttons for 'Dashboard' . Both preferences seem to be reset back to default every now and aga [More]
I've added some photos to my website root folder and for some reason they won't show up in my files list. It has worked for me before but when I refresh the folder it won't show the files. I've even restarted my computer and everything and still no l [More]
Hi gurus. I have a problem related with drilldown. is there any way I can reset the drill down value?,of course, except for using reset button (in  this case "reset" means "make the cell blank of certain value") I tried using "pus [More]
Hi, I would like to view only the last 5 lines from a select statement, how would this be done? Something like: select * from a ................. regards RobHHi RobH, First of all: You need to identify a criterion that helps to sort your data in the [More]