FTP sender - requirement
Hi,
We have to pick the files from an FTP server. The FTP vendor wants us to do the following while picking the files.
1. Log in with your parameters
2. go to folder 'ExportSAP
3. Search for u201ESAP_Order.txtu201C
4. Rename file u201ESAP_Order.txtu201C to u201E SAP_Order_yyyymmddThhmmss.txtu201C via FTP connection
5. Download the renamed file u201E SAP_Order_yyyymmddThhmmss.txtu201C from our server to your application
6. Rename the u201ESAP_Order_yyyymmddThhmmss.txtu201C to u201E SAP_Order_yyyymmddThhmmss.savu201C
My Questions:
1. Can we rename the files before picking/processing them (Since he needs only the renamed files to be picked)?
I guess we can acheive this only by a runtime OS command. Is there any other way?
2. How can we change the format of the files after processing?
I suppose we can acheive this also only by a runtime OS command. Is there any other way?
3. Who can we ask for the OS command to be kept in the communication channel? Is the FTP vendor the one best suited to answer this?
Kindly help.
Thanks,
John
Hi, John
No, you can't rename the files before picking/processing them in the same sender cc channel, neither using a os command. You must do it in a paral.lel process.
And yes, you can hange the format of the files after processing, using os command. However, you must use a remote shell, so os command are executed in your xi/PI system. There is a Michal's blog that help you to monitorize errors executing os command.
Regards,
Carme
Similar Messages
-
Duplicate file with FTP sender
hello everybody,
i have the "Duplicate file problem with FTP sender " with my XI 3.0 sp23.
So sometimes my file adapter load 2 times the same file.
I found this link :
http://wiki.sdn.sap.com/wiki/display/XI/DifferentwaystokeepyourInterfacefromprocessingduplicate+files
with some interesting solutions for fix the problem.
But my question is:
Are not a standard solution or a SAP hotfix?
My chance is just implement one of solution proposed in link?
thanks in advance
AlexHi,
You can use any of the solution according to your requirement.
In one of my scenario i used solution 1 (module creation).
In XI3.0 i think there is no sap standard fix for this issue (but i am not sure).
Regards,
Shradha -
FTP Sender Adapter - Processing Sequence
Does anybody know what the processing sequence of files is when I using a ftp sender adapter? I can only determine this if I use a file sender adapter (NFS).
Hi,
in sender file ( FTP ) adapter:
when qos :eoio
the sequence the msg processess will be in ascending alphabetical order.
ex: if i have 10 files in a folder
as per the my requirement all the 10 files are picked up at the same time, then
the files will be arranged in queue specified in ascending alphabetical order and processed in the same order.
but, when i use QOS: EO
the same thing is going to happen right!!
picks all the files , processess in ascending alphabetical order to xi..
then what is the use of queue here in eoio???
on the other hand,
in sender file ( NFS ) adapter:
file will be processed based on the processing sequence( either by date or time ).
so both EO and EOIO use the processing sequence... then wat is the work of queue here in EOIO MODE.. any way they are processed according to the proccessing sequence parameter.. ???
Please reply.. -
Save a copy of file sent through FTP Send Port
How can we save a copy of the file sent through an FTP Send Port?
Here are the details of the scenario:
1. I have an Orchestration which after processing, creates a Flat File
2. Orchestration has a Static One Way Send Port with specify later
3. FTP Send Port is bind to the orchestration
Problem is, I don't want to create an extra file send port in the orchestration.
Requirement is:
When orchestration send the flat file to FTP, I want a copy of the file in a local file location.
BizTalk SpecialistCreate a Send Port Group with the two ports in question and bind your orchestration to the Group.
Alternatively you can leverage the BizTalk Archiving Pipeline component from codeplex at
http://biztalkarchiving.codeplex.com/ and use this pipeline on your existing send port.
Regards. -
Hi,
I have a IronPort S370.
Proxy FTP is not enabled, so we use FTP over HTTP.
We have create policies to access some sites FTP, but that doesn't work.
We get a message "Page cannot be displayed : FTP authentication required"
Have you an idea ?
Thank you in advance for your help !Hi,
If you are using FTP over HTTP, you would have to prepend the username password in the URL. e.g:
"ftp://USERNAME:[email protected]"
For more information, please check the section "How to access an FTP site that is not anonymous using Internet Explorer" at http://technet.microsoft.com/en-us/library/bb794745.aspx
Regards,
Kush -
FTP Sender Adapter - File Order
Hi,
can somebody tell me, in which order files are being read via the ftp sender adapter when using wildcards for the filename ?
I need to process the files sorted by name. Is there any possibility to get this done ?
BR,
Martinhi Martin,
Check this forum discussion.
Re: FTP Sender Adapter - Processing Sequence
and check out Praveen reply regarding your query
regards
Ramesh P -
Specifying Additional Files in an FTP Sender Adapter
Hi,
Has anyone worked out how to specify additional files in a File/FTP Sender Adapter using the FTP transport protocol? This functionality comes 'standard' in the File/FTP Sender Adapter using NFS transport protocol so that additional files can been included as attachments, however, it doesn't seem to be available when trying to use the FTP protocol.
Thanks in advance.
Regards,
Reuben.Yes this is available in only NFS mode check sap help
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
Thanks! -
JDBC and FTP sender channels stop polling
Hi,
We have a great volume of sender JDBC and FTP sender channels.
For this reason there is nothing unusual to have temporary error connections.
Several months ago, with an XI 3.0 system, sender channels recover its functionality automatically when temporary error connection is solved.
But now, he have migrate to a PI 7.1 sytem, and in the same scenario and configuration, sender channel stop polling after a temporary error . In cc monitor this channels remains in green status and there were no signs of stopped interfaces.
Timeouts are correctly defined and there is no difference between channel configuration in our Xi and PI system.
How to solve this problem?
Thanks, in advance.
Carme.Thanks for your fast response, Stefan.
After writing this post, i ask the same question to our basis team and we are in the latest sp.
¿do you know if there is any note or can you provide me some additional information?
I'm not able to find any note about this issue...
Regards,
Carme. -
FTP sender adapter archives empty files
Hi.
I have a strange problem with the ftp sender adapter.
I receive my file without problems, and the scenario works as it should.
The problem is with the archiving of my processed file.
It writes the file fine to the path specified, but it is empty (user has full file permissions)
The ftp adapter uses content conversion, and I have seen threads in the forum that tells about simular errors. But I have found no solution.
Hope someone can help here.
Regards...
PeterFile Content Conversion is usually associated with Receiver File/FTP adapters
and Archiving the source file is an option at the Sender File/FTP Adapter.
No, content conversion is used both in sender and receiver file/FTP adapters.
In my case, it is in a sender adapter!
I'm not sure what you mean when you said "The ftp adapter uses content conversion,..."
The sender FTP adapter content converts a flat file to XML format!
Can you let us know the details of your scenario?
Like who / what is the sender and who/what is the receiver system?
The scenario looks like this: "FTP -> XI -> RFC", but as mentioned before, the scenario works fine, the problem is in the FTP sender adapter that fails to save the archive file.
If I try to use the file/FTP sender adapter in "file mode", with the same parameters, the archive file is written just fine!
Regards...
Peter -
Getting dynamically a specific file in FTP sender adapter
Hi all,
I'm getting an idoc in a BPM and there's a field with a file name, which is the one I have to read in the following step.
I'm not sure this is possible, but I'd like to hear from the PI community...
The problem is that in the usual FTP sender comm channel, I have to specify in configuration time the folder and the pattern of the file names to be read. And in my scenario I only know that in execution time (that's possible when the FTP channel is receiver though).
ThanksOops!! I misunderstood it
At sender, neither of them would work. In fact, there is no other direct options at sender. You have to specify the filename. As Udo suggested, you have to create multiple channels.
Still if you could explain your BPM configuration, some solution may turn up. You said you are receiving Idoc in BPM and a file too?
Regards,
Prateek -
FTP Sender - Message not reaching XI
Hi,
I am using FTP sender adapter to send an XML file to XI.
The file is being picked up by XI properly from the Source directory on the FTP server which is running on my local machine but it is not reaching the integration server. SXMB_MONI shows no message.
I have checked all the parameters in the communication channel and am sure that the fule is picked up. Alternatively, I am able to put a file on the FTP server. So the FTP server seems to be working fine.
If any of you have any idea of where the error could lie, could you please respond.
Kind Regards,
DhananjayHi Dhananjay,
try setting the file adapter to Delete mode
this way you'll know if your file got picked from the FTP
if you're sure that is was picked then:
http://xiserver:port/MessagingSystem/monitor/monitor.jsp
here you'll find your message if it reached Adapter Framework (file/ftp adapter)
also remember to always check this address:
http://xiserver:port/mdt/amtServlet
Regards,
michal -
Prevent ftp sender adapter from tranfering files from subdirectories
I have a scenario with a ftp sender adapter. In the configuration of the ftp sender adapter I have defined a base directory "/dir" and a file pattern "*". The directory /dir as a subdirectory /dir/subdir. Now the ftp adapter transfers also files from this directory. But I don't want that. Any solution?
Hi,
I am not sure whether it is made so intentionally be SAP. However, if you wish to resolve this issue, you can specify a wild card for file names, such as the file extension (for example, *.txt).
Hope this helps,
Bhanu -
FTP sender adapter wait sometime before processing a message
Hi,
I want my FTP sender adapter to wait sometime before processing a message. This is needed in my case since the receiver of the message cannot consume message in, say two seconds, so I would like to configure a "time to wait before processing message" in PI since PI processes all of the files in folder without waiting another poll interval time if more than one exist.
Is this possible in PI 7.0 sp16?
Regards,HI Tarik
BPM is the solution for this problem. If you are not willing to use BPM other solutions are Adapter module and Scripts
You can write adapter module and use the threads mechanism. Thread.sleep can help you achieve this but you need to set this properly.
Another method is Unix script. Let your actual directory be Dir1 and poll PI to Dir2. Use the script to write files from Dir1 to Dir2 one by one and with time gap. This will work for you.
If you have PI system on Windows i prefer to go with Adapter module.
Thanks
Gaurav -
FTP Sender Adapter, Empty Archive Files
Hi,
When I retrieve files using a FTP sender Communication Channel and I checked the Archive check box (including an existing directory), the file is archived but it does not have any content. It is completely empty.
The original file contains data and is processed correctly. The original file is a csv and I use FCC to convert it to XML.
Anybody any suggestions?
RonHi,
The scenario is FTP --> IDOC scenario.
The config is as follows: (not mentioned = not used)
Source:
Source Directory: /Out
Filename File*.csv
FTP Connection:
Server: a.b.nl
Port: 21
Dataconnection: Passive
Connection Security: None
Username: user
Password: pass
Connect mode: Per File Transfer
Transfer mode: Binary
Processing:
Quality of Service: Exactly once
Poll Interval: 60 secs
Processing Mode: Archive
Add Timestamp: checked
Archive directory : /usr/sap/Interfaces/
File Type: Text
FCC:
Documentname: File
Recordset Name: Lines
Recordset Structure: Line,*
Recordset Sequence: Ascending
Key field type: String (Case sensitive)
Line.fieldSeparator ;
Line.endSeparator nl
Line.fieldNames VBELN, POSNR, RREL
Best regards
Ron -
FTP-Sender Adapter ignores files with "known filenames"
Hello experts,
the scenario is FTP -> XI -> IDOC and we have problems with the polling of the files. In communication channel monitoring everything is working fine, but in the FTP folder some files are ignored, although the communication channel is set up for all *.txt-files.
My question is, is it possible that the FTP sender adapter ignores files, if it already has processed a file with the same filename? After renaming the files they all were picked up and archived into another folder. How can I configure the communication channel to pick up ALL *.txt-files in the out-folder?
Best regards
DavidHi David,
What I have observed is, XI always reads files in a certain order (possibly alphabetical or reverse alphabetical). If it finds a file in the source directory that already exists in the archive directory, it will not attempt to read/process the next file (even if the next filename is completely new).
So, if any of the files in the source directory exist in the archive directory, there is a possibility that certain files may get processed and certain wont.
Make sure that none of the files that you put in source directory exist in the archive directory (i.e. all the files are new) and see the output. Let me know if this helps.
PS: I used FTP protocol
Regards,
Riyaz
Maybe you are looking for
-
Windows 8.0 ADLDS error 0x800b0101
I have installed the ADLDS feature on a Windows 8 (x86) system that is not connected to the Internet. every time I try to create an instance, the operation fails. I have since found an LDIF.error file with the error message in it of 'failed to verify
-
How do I get to the latest edition of the Java development kit in Win Vista
Is it only accessible from the command prompt in DOS, or is it in some folder I can get to from the start menu or on my desktop?
-
Detecting missing mouse clicks?
There are some times when a user clicks on a movie clip in my SWF that the mouse click goes undetected by any of my mouse event handlers. I even added a MouseClick listener at the root sprite of my SWF. Is there any way to detect where this mouse cli
-
ID and password not recognized in mountain kion
After installing and trying to delete Os X Server, i do not have any access for anything, my ID and password do not work. I am not able to open any application or preferences. Thks for help..
-
HT2905 Is the 'show duplicates' option missing on the new itunes??
Can't find the option where it used to be...