File Adaptor....... system command after file processing
i am creating 2 files with file adaptors..
lest say a1.txt and a2.txt..
in the file adaptor i am specifying the path of a batch file which is located at the same location where these 2 files are created......this batch file should run after message processing
i am using this .bat file to create a file by combining these 2 files and delete these 2 files after that...
but nothing seems to be happening..after the 2 files are created.
seems like the command is not getting triggered which it is suppose to after message processing.
please help
Hi Tarun,
Check this blog, Might give u some idea as well...
<a href="/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions: Command line sample functions</a> By Michal Krawczyk
<a href="/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi Command - Executing Unix SHELL scripting</a> By Sameer Shadab
Regards
San
Where there is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.
Similar Messages
-
Is it possible to call operating system command after file receive?
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 that are
1.RUN OS command before message processing
2.RUN OS command after message processing.
So you can give the commands in the RUN OS command after message processing.
Check this links for more info
http://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/content.htm
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1690747750DB11724434094963199241End?blog=/pub/wlg/10392
Regards
Ramesh -
Operating System Command After File Processing in Sender File Adapter
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.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. -
Unable to run a Batch File Operating System Command
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~1\GNU\GnuPG\boagpg.bat %F"
If I execute
exec "cmd.exe /c type C:\Progra~1\GNU\GnuPG\boagpg.bat >xis.txt"
It displays the contents of boagpg.bat file in xis.txt.
I just don't understand why when I run the batch file, I would expect an %F.asc encrypted file in the same directory as the %F unencrypted file.
Any ideas?
or will I need Basis to create commands that will allow me to run GPG from XI Command Line?Check this links if its helpful
http://help.sap.com/saphelp_nw04/helpdata/en/bb/c7423347dc488097ab705f7185c88f/frameset.htm
/people/sap.user72/blog/2004/01/30/command-line-help-utility
Check this thread a similar problem
Process Integration (PI) & SOA Middleware
Note 841704 - XI File & JDBC Adapter: Operating system command
http://service.sap.com/sap/support/notes/841704
Try to see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
Note: reward points if solution found helpfull
Regards
Chandrakanth.k -
File Receiver Adapter:Run Operating System COmmand after message Processig:
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 the file at run time after message processing via Command Line and execute some os commands.
But since the file name is Dynamic....How will i call the file at run time in Command Line:
SYNTAX: %f(FileName)
How will i specify the file name in the above syntax as the file name is Dynamic and not constatnt.
Please Advice.
Senthilprakash.Dear All,
Yes just now i got the answer from this thread[OS command line script - Need help;
Actually i have another doubt now
In REVEIVER FILE ADAPTER:
when we give Run Operating system Command After Message processing
does the OS command get executed after the output file is placed in the Receiver folder/server or before its placed in the receiver folder?
Regards,
Senthilprakash. -
Operating system command in file receiver adapter
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 how do i invoke this batch file from the file reciever adapter ( Run Operating system command after message processing ).Hi,
did you see this page?
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/content.htm
it shows all you need to know
Regards,
Michal KRawczyk -
Operating system command in file adaptor
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 dont know is it possible and if yes then how or is there any other way to handle the big files as the network speed is very low.
Any clues!!!!!!!!!!!
Thanks in advance
Regards
SwatantraHave a look into these threads - they seem to have the solution u need (i havnt tried it though)
Unzip file using operating system command in file/ftp receiver adapter
How to zip and unzip xml files dynamically by XI -
RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESSING
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 using a simple scenario that I implamented : i nedd to transfer a very large file from one server to the other by XI.
to save space and network traffic I use an OS command before picking up the file to run a zip command to zip the file.
after I transfer the file to the target server I run another OS command after the transfer to unzip the file.
now to your second question:
the before Os command on the target server is used mostly for checks (make sure there isn't a file by that name or backing up existing data)
and the after sender OS command is usualy for backing up or erasing existing files (cause it is done only after the first part was finished succesfully).
Uri Lifshitz.
p.s.
there was a blog obout this titled "XI as a huge file mover"
and you can see a description and my scripts at https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/03/additionaltipsforusingXIasahugefiletransfer%28withbatchscripts%29& -
Unzip file using operating system command in file/ftp receiver adapter
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,
DanielHi 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. -
File--to--File should get acknowledment after successful processing
Hi,
Here my scenario is File-to-File scenario.
1)Once files get successfully transfered to the receiver system i shud get successful message,
2) if not i have to get an Error message .
Can anyone help me in this
Thanks,
keerthi.Hi keerthi,
you should go for BPM in this case.
File adapter can only work with the transport acknowledgments
ACKNOWLEDGEMENTS:-
APPLICATION ACKNOWLEDGEMENTS & TRANSPORT ACKNOWLEDGEMENTS.......
transport acknowledgments - they tell us that the message was transferred from the XI adapter
(successfully or with errors)
- application acknowledgments - they tell us that the message was processed by the receiver application
(again either successfully or with errors)
refer to note: 821267
The specified item was not found.
Thanks,
Madhu
Reward points if it is helpful
Edited by: Madhu on Jul 14, 2008 1:17 PM -
Empty File has to write after Message Processing in File Adapter..!!
Hi,
File to File Scenario.
Once the file is processed and placed in the receiver folder, I need to generate one empty file with the original file name but with different extension (DON). This is used to indicate that the full file is written in the folder.
Example:
Original file has to write like "Output_Final.CSV"
Empty file has to be placed like "Output_Final.DON"
Is there any way I can achieve this requirement.?
Thanks
Deepthi.I have no clue of removing the same using Graphical mapping ..
I hope you have set the option of Write Empty File if not try this and still doesnot work
then need to look for java or ABAP mapping
chekc the below thread may help
Re: How to create empty Payload
Rajesh -
MSBUILD - Using MSBUILD I would like to add files into the solution AFTER BUILD process.
Hi,I have the requirement to add files into the project after project has been build. I wish to add some javascript and css files into the project at the PRE BUILD or POST BUILD time. I specified <Content Include="path\filename"/> in
the AFTERBUILD Target element. But it seems not including the files.
Regards,
SenthilHello Senthil Kumar T D,
In msbuild files are include/exclude in ItemGroup like the following MSDN article mentioned:
How to: Select the Files to Build
How to: Exclude Files from the Build
So here you need to consider put them in the ItemGroup and use your files in your target.
And if you want to MSBuild and including extra files from multiple builds - See more at:
http://blog.samstephens.co.nz/2010-10-18/msbuild-including-extra-files-multiple-builds/#sthash.G5SdxGag.dpuf
This can be used for multiple builds. Anyway, please follow the first two sample I mentioned to reset your project file.
Best Regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Use of OS command after message processing in sender MS Access
Hi experts,
My scenario is as follows :
how can i trigger a macro in ms access?...do we have OS commands ?
as XI will be 64 bit compliant , and the MS access will be 32 bit complaint...will the OS command work in the sender channel?..
The other option i thought abt was...
to send the data to a table xyz, then pass an OS command to trigger the macro using OS command after processing?..
is this a feasible solution?...kindly suggest
sender is ABAP proxy which triggers a macro in MS access..has ne one worked on it?...have nt seen too much info on sdn
Edited by: Ravindra Teja on Jul 9, 2009 6:54 AM>
carme alentorn wrote:
> Hi,
>
> Please, check user and execution permision for shell script.
> Check with --> sh /usr/sap/tmp//FTP_test.sh
>
> Regards,
>
> Carme.l
Quote!
Check Permission for script! -
Sos-desktop files deleted/system affected after restart
hello
A very strange "system failure" happend today.
I explain the way things happened:
1.firefox not responding
2.firefox restart
3.looked like firefox upgraded itself(not sure)
4.lost all bookmarks from the browser
5.decided to restart the powerbook
6.all system prefernces settings lost
7.MOST IMPORTANT-the system affected and all desktop files were deleted (or gone somewhere I still don't know).
note> I have tried the "bookmark recovery" for firefox. didn't work.
the thing that puzzles me more is the system's weird failure caused afterwards. why to delete the desktop files?
Last thought was to run a file recovery soft. but I don't have any installed, any suggestions?
Please, any insights are appreciated
thanx in advance
lambrosHI,
*"the thing that puzzles me more is the system's weird failure caused afterwards. why to delete the desktop files?"*
You need to boot from your install disk and check the hard disk using Disk Utility.
Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
Select your HDD (manufacturer ID) in the left panel.
Select First Aid in the Main panel.
(Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
Click Repair Disk on the bottom right.
If DU reports disk does not need repairs quit DU and restart.
If DU reports errors Repair again and again until DU reports disk is repaired.
When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
Select your start up disk and click Restart
If you cannot boot from your install disk, try booting in Safe Mode
Did you repair the disk with DiskWarrior as mentioned here?
http://discussions.apple.com/message.jspa?messageID=1821781#1821781
*"Volume check failed.*
*Error: The underlying task reported failure on exit (-9972)"*
Did you repair disk then?
Carolyn -
Using operating system command on file receiver comm.channel
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 file.
My problem is: How can i supply name of .txt file to use as name of .bak file?
How can i do that?
Thanks./usr/sap/SID......./../../../Server0
Put the java program there.
Regards
Ravi Raman
Maybe you are looking for
-
I just installed itunes on a Windows 7 PC. When I click on the Itunes icon the following message appears - The Itunes Library.itl file cannot be found or created. The default location for this file is in the "Itunes" folder in the "Music" folder. I h
-
How do I turn 'off' compatibility mode in iTunes.
How do I turn off compatibility mode in iTunes.
-
Hi, I am looking at the ipad2. One use will be viceo chatting with my collection of friends and family that are on skype, as I do from my desktop or my DroidX. One thing that is not clear to me is if I can call someone on skype and initiate a video c
-
How can another target driver co-exist with sd driver?
Hi, Is it possible if I have my own disk driver mysd co-exist with standard 'sd' driver. My driver mysd has to detect LUNs exported by myStorBox (our storage box) and manage them while sd driver handle all LUNs connected to the system except myStorBo
-
Cannot update my phone using zune getting error 80...
Hi, have bin having problems with zune ever since i installed it.all i wont to do is update my phone but everytime i connect my phone to zune it syncs ok but then says that my phone did not connect to the internet to get updates and if i click on up