on 08-12-2009 11:06 AM
Hi ,
I have a scenario where the file is left in the source directory after sending it to XI for processing. In order to exclude the file from next polling onwards , the file needs to be replaced . I know the solution is possible through Archiving or OS Command (which are not possible in my project)....Please let me know the feasibility through adapter module(if possible ,sample code pls) or any other solution ?
Thanks in advance
Edited by: chitra l on Aug 12, 2009 12:09 PM
refer this blog that will help you to write adapter module
[/people/sandeep.jaiswal/blog/2008/05/13/adapter-module-to-stop-processing-of-duplicate-file-ftp-location
]
the blog is for different purpose but you can use that Idea to develop an adapter module .In the Module you have to write the code to connect to server again and rename the file .For the code refer the link as given above
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi chitra,
I donot think it is possible with custom adapter module because custom module always run before the standard sap module, and standard sap module is responsible for processing the file.
Kubra... i am not very sure how can we handle this in adapter module .
Do you have any clue then please share it?
Regards,
Kunaal
This blog would be useful for you, Though it rename the attachment file.
/people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module
in the module configuration, set param.Attachment as MainDocument instead of %F and change the extension type as *.txt and AttachmentMimeType as Application/xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chitra,
Why do you want to go to the hardest route when you have a standard and simple route. The hardest would be to write an adapter module. The simplest way would be simply read the file and send it to the same folder with a different name. You dont need to do anything in IR also.
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it wouldnt be a good idea to code a module in your case.
the best would be to have another interface defined which will pick the file and post it to the same folder after renaming it (via receiver CC).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.