cancel
Showing results for 
Search instead for 
Did you mean: 

File names - Seeburger SFTP adapter

0 Kudos

Hi Everyone,

We have a File to file scenario in which file adapter is used at sender side to pick up the files and Seeburger SFTP adapter is used at receiver to place the files in Target directory.

At source directory, there are three different files with different names.

for ex;-


1. ABC.csv

2. XYZ.csv

3. MNM.csv

At target side requirement is all the three files should be placed with same naming convention along with time stamp at the end.

Required naming convention

1.ABC_timestamp.csv

2.XYZ_timestamp.csv

3.MNM_timestamp.csv

PS - only one channel is used at sender and receiver.

     

SFTP channel screenshot:-

please let me know, what is the configurations to maintain in receiver channel.

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Vinoth,

Please check the below blog

regards,

Harish

0 Kudos

Hi Harish,

Our scenario doesn't involve mapping. It is file file transfer from source to target folder.

manoj_khavatkopp
Active Contributor
0 Kudos

Vinoth,

Try this:

  • Enable ASMA in sender File channel.
  • Add AttribMapper module to map the sender Filename to Seeburger reciever SFTP attribute.
  • Mark Use Dynamic Attribute in receiver SFTP channel.
  • Change the transfer Mode to Unique FileName.

Br,

Manoj

Harish
Active Contributor
0 Kudos

Hi Vinoth,

you can refer the below

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:

ParameterValue
Namespacehttp://seeburger.com/xi/SeeFunctions
Key
  1. provider.servlet.server
Valuehttp://localhost:50000/ (where the port number 50000 must be setaccordingly 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 :

reference - Does Seeburger's SFTP adapter support dynamic f... | SCN

regards.

Harish

0 Kudos

Hi Manoj,

I tried, but getting below error.

"Adapter Framework caught exception: AttribMapper:SEEBURGER/ATTRIBMAPPER: Message contains no XI Message

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:SEEBURGER/ATTRIBMAPPER: Message contains no XI Message.

"

In Sender file channel enabled ASMA and receiver SFTP channel config is in below screenshots

manoj_khavatkopp
Active Contributor
0 Kudos

Sequence of Modules should be as mentioned by harish.

Localejbs/Seeburger/solution/sftp
Localejbs/Seeburger/AttribMapper
Localejbs/ModuleProcessorExitBean
0 Kudos

Hi Manoj,

After maintaining the order, messages is successfully sent but in target directory File names are not as expected.

I maintained  * and unique file name option in receiver channel.

In Target directory the file name was -   *_MsdId

My requirement is at target directory files should have original name as in sender directory.

Thanks

Vinoth

manoj_khavatkopp
Active Contributor
0 Kudos

Can you please provide below screenshots :

Soap envelope of Dynamic Configuration in  Message Monitoring  showing the source filename.

and Receiver channel log of module execution.

i doubt if the File Name attribute namespace for Seeburger SFTP is http://seburger.../dtsubject usually this is used for AS2 scenarios for passing message subject.


For filename it should be http://seebuger.../FileName cross check once.


And also AttribMapper  module parameter values and name should be swapped  because u are assigning value from File -->Seeburger SFTP

0 Kudos

Hi Manoj,

I changed the attribute for Seeburger SFTP  as http://seebuger.../FileName and interchanged the module parameter value and name.

But still the file names are not coming in target directory. I attached the channel logs below.

Thanks

Vinoth

Answers (0)