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
Hello All! I am so excited about my new computer and I didn't know that my external hard drive had so many pictures duplicated on it. So I downloaded the entire hard drive. I thought iPhoto was going to be my answer, and now after reading a lot of di [More]
I'm trying to export photos from Bridge CS6 to my Flickr.com account for the first time in several months, and getting an error message from Bridge that it cannot "authenticate with Flickr".  I've used presets that were successful in the past, a [More]
Kernel panic occurred on startup last week. Since then have tried the following- Removed all periferals apart from Apple keyboard and mouse. Tried each of the 512Mb ram chips on their own. Booted from and ran successfully- DiskWarrior - clear System [More]
I am making a website for my work, which is a glass company. The options at the top to click on will be home, commercial, residential, and contact us. When you click on residential i would like to have links for windows, shower doors, ect. I want to [More]
Hi All, can any one tel the solution fort me is there any function module to print ALV report with out giving print option manually( user press print button)Hi, execute that report and on output list GOTO LIST->PRINT. OR if u want to print the code i [More]
Is there a way for my VI to 'detect' when someone has connected to it with a Remote Panel and requested control? I have an issue (due to the size/complexity of my VI I'm sure) that when a RP gains control, after a period of time, the main VI begins t [More]
wondering if anyone could help itunes wont let me update,uninstall or re install. Could anybody help!?itwhen i try to install it says app data/roman... error message 87 and when i try to uninstall it say "unable to get file security" and all the [More]
Im trying to overlap multiple audio regions on one track, so that the next one starts before the previous one ends but when i do this, each consecutive overlap basically replaces the remaining region of the one before it. to be more specific in order [More]
Hi SDNers: I have an issue with using the method CREATE_CDATA_SECTION of Interface IF_IXML_DOCUMENT. I have created an XML file from ABAP using methods in IF_IXML_DOCUMENT etc. The XML file is perfectly alright. But now there's a need to add CDATA se [More]
Lately when I have been searching on websites this bar comes up at the side which says related searches and lots of examples also a bar comes up at the bottom advertising a product. Is it a virus? Or how do i get rid of it?From the Safari menu bar, s [More]