on 07-01-2009 1:27 PM
Hi Experts,
my requirement is i have to check PI NFS File Server at mapoing level ,whether ABC.Txt file is there or not.
is it possible to check using JAVA Map??
please provide any code snippet and inputs.
many thanks,
Raj
Hi!
You can make use of ABAP or Java Mapping program where you have to implement the check on the file system. In ABAP you can fire and check the results of operating system commands like "ls -ltr..." (Unix) or "dir..." (Windows).
Regards,
Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Despite from the interface you have to implement for a Java Mapping Program you normally should be free to do everything you want WITHIN the program (it runs on the PI server!!!!) - including checks on the file system. I'm not sure whether the SAP J2EE Engine Container denies such attempts to access the file system. But on the other hand: why should it do that?
If you do not know how to implement file system checks/access in Java have a look at one of the several Java/J2EE Programmers Forums. One of them can be found on http:// java.sun.com
Regards,
Volker
Hi,
I have written one Java map to check file exist in local directory or not,for time being its working fine.
but i am not sure its posbile to acces SAP PI File server,my requirement is I have to check in File Server Some particular file exist or not,if exists i have to wait my interface to send message to FTP after 10 hours.
any inputs welcome,thanks alot
many thanks,
Raj
thanks.i have written java mapping program ..solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajasekhar,
Can you please share some sample code for reading the filename using JAVA code, We have written java code for reading the file name but it's not working.
Here, my requirement is , from external system via MQ series,the request messages is coming to SAP PI ,while giving responce back to external system, i want to place the file in one separate folder(.PS format) using JAVA mapping.
Thanks & Regards
Sarathi J
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.