on 12-18-2007 7:35 AM
Hi all,
Does the SFTP adapter support dynamic filename creation.
If yes, then do we have to use UDF's and are there any specific settings that have to be done in the SFTP communication channel.
Please provide a blog which helps in the configuration process of the above case.
thanks,
younus
Thanks GerryS,
The dymanic filename option for SFTP has really helped me clear the Interface complexity and it worked like Charm.
I'm sure this thread can be closed.Thanks for again for the knowledge shared.
Appreciate IT.
Regards
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its an old post, but the easiest way to do this is by using the %dtSubject% dynamic attribute. The custom file name can be build using the localejbs/Seeburger/AttribMapper module.
In the communication channel (Sender or reciver) in the Module tab, add the module localejbs/Seeburger/AttribMapper. The seeburger manual gives full details, location (number) of te module is important.
In the module configuration, modify the paramter name "http://seeburger.com/xi/SFTP/dtSubject" with parameter values that meet your custom requirements.
For example "@http://seeburger.com/xi/SFTP/dtSubject & "_" & GetDateTime("yyyyMMddHHmmss") & GetCounter("ID")" to modify the existing varable dtSubject (from an AS2 Adapter) with the date time stamp, followed by a unique counter id. The counter ID must be set up in the seeburger monitor resource section.
Hope this helps.
-G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gary,
I have made the following setting in my receiver channel
http://seeburger.com/xi/common/dtSubject
"I" & GetDateTime("yyMMddHHmmssSSS") & GetCounter("ID")" & "ZFAPIUS_INVO"
Also I have added in Seeburger :
Resource management -->Resources -->
ID = ID
type : Logical
Description : ID
Channels(total) : 1
Channels(incoming) : 1
but I am getting the following error :
Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: AttribMapper:Could not evaluate expresion "I" & GetDateTime("yyMMddHHmmssSSS") & GetCounter("ID")" & "ZFAPIUS_INVO" . Error: Function GetCounter failed. CounterBeanServlet: Could not call nextCounter() method of the Servlet. Cause=java.net.ConnectException: Connection refused: connect.
The process of dynamic creation of files can be done we have to select the following checkbox in the receiver channel:
Localejbs/Seeburger/solution/sftp |
Localejbs/Seeburger/AttribMapper |
Localejbs/ModuleProcessorExitBean |
Use the Parameter GetCounter("ID") to the place where the counter is expected to come.
If the J2EE server is listening on a port different from 50000 (which is the standard for the SAP client 000), the port number must be configured:
http://<localhost>:<port number>/seeburger/index.html
Parameter | Value |
Namespace | |
Key |
|
Value | http://localhost:50000/ (where the port number 50000 must be set accordingly to the J2EE server configuration). |
Note: The configured value (server URL) has to end with a slash (/). Otherwise,
SeeFunctions will not work correctly.
Hi,
SEEBURGER AG (www.seeburger.de) offers an SFTP/SCP adapter for SAP XI.
This adapter is fully integrated in the SAP XI adapter framework.
You could be able to use the Dynamic file name configuration for this adapter.
In mapping you could create the UDF with the standard code of dynamic configuration and use it as similar to using form file adapter.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yonous,
Seeburger's SFTP adapter supports dynamic configuration.
You can use standard Dynamic configuration function like in Michals blog
(/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14):
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://seeburger.com/xi/common","dtAttachmentName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
and just change url and parameter in the function.
check also user manual (SAPXI_SFTPAdapter_en.pdf) delivered with Seeburger SFTP adapter installation CD.
Regards
Naycho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naycho,
I gotta doubt. Seeburger SFTP Sender adapter doesnot have a feature of Archiving the file at the sender side.Is there any module from Seeburger for Archiving the file? Is there any way to achieve this option other than using custom modules at the sender side?
Please suggest...
Thanks in advance,
Ram
Hi
did my reply helped you
kindly indicate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Younus,
Please see the blog for your question
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Vishal
Please reward points If helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.