on 07-14-2010 7:36 PM
We want to trigger/start the communication channel in XI immediately after a file is created by a program.
I have checked some blogs and saw that
u201Chttp(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=actionu201D
can be used to do it.
But how in ABAP? Our ABAPers are not familiar with it. Has anybody implemented it?
Or is there any other way of doing it?
Please let me know.
Blogs I have checked
Ref:
http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm
Thanks
We want to trigger/start the communication channel in XI immediately after a file is created by a program.
Hi,
In Batch JOB schedule we have options to execute programs after the successful completion of previous job ( that is ur program which creates files in NFS ) ; So a simple ABAP Function can be scheduled in this way to start Communication channel in XI;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sai,
Since it's a file sender, why not make the polling interval real small, say 45-60 secs? Can't the business wait for this kind of delay?
The one that you want to implement, can be done ... but my point is why not use the easy way and it will hardly make too much of difference.
Let us know if this works for you.
Regards,
Neetesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Neetesh,
The job that creates the files runs for different sets of data and runs for long hours. If I set the polling short, it tries to pick up partial files and sends it. Then again the channel fails when it tries to archive the file as the program is holding a lock on it.
Currently I am using Availability time planning. But since the data is growing day by day, it is not working the expected way.
Any other idea?
Thanks
Okay, now I have a better understanding of your requirement
If you are using NFS, then you have option of not picking the partial file.
If you are using FTP, then a simple script will do the exact same thing of not letting the adapter pick partial files.
If you still not satisfied with the solution, then external control of the channel is the only option that I can think of.
Another way that I can think of -
1. Create two folders - A & B.
2. Drop files in folder A.
3. Write a script to check for size modification for files in folder A. If size is 0 bytes, do nothing.
4. Once the file is completely written (check for end of file), move the file to folder B.
5. File channel will pick the files from location B.
This will make sure that only 100% complete files are picked. Hope this helps.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.