cancel
Showing results for 
Search instead for 
Did you mean: 

Does Seeburger's SFTP adapter support dynamic filename creation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

yajjala1
Participant
0 Kudos

This message was moderated.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello Abhishek,

I also have same issue when I configured in receiver communication channel, Can you please tell me what changes you made to fix this issue.

And Do we need to mention anything on the FILE Settings File name ?

Former Member
0 Kudos

Dynamic Creation of File using counter in Seeburger Variable:

1. Configuration Needed in the Communication Channel:

The process of dynamic creation of files can be done we have to select the following checkbox in the receiver channel:

  • Dynamic Attribute in receiver Channel:

  • Import the following modules:

Localejbs/Seeburger/solution/sftp

Localejbs/Seeburger/AttribMapper

Localejbs/ModuleProcessorExitBean

  • Enter  the desired file naming convention:

Use the Parameter GetCounter("ID") to the place where the counter is expected to come.

2. Configuration Needed in the SeeBurger Workbench:

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:

  • Login into the seeburger workbench using the URL

http://<localhost>:<port number>/seeburger/index.html

  • Select Property Store.

  • Create or edit the following property:

Parameter

Value

Namespace

http://seeburger.com/xi/SeeFunctions

Key

  1. provider.servlet.server

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.

  • If we need to start the counter from any specific value , it can be configured in the SeeBurger workbench, this value can be maintained in Mapping Variables :
Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

THank Abhishek That helps and resolve my problem.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

did my reply helped you

kindly indicate.

Former Member
0 Kudos

Hi ,

The blog explains about ftp adapter, I need details wrt to SFTP sender and receiver channel configurations.

And is it possible to generate dynamic file name using adapter. If yes, then how.

Thanks,

younus

Former Member
0 Kudos

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