cancel
Showing results for 
Search instead for 
Did you mean: 

SAP new sftp adapter dynamic receiver filename

former_member214137
Participant
0 Kudos

Hi,

I want to use the name of the source file as part of the name of the receiver file being sent via SAP's new SFTP adapter,

e.g. source file: "hello_world.txt" receiver file: "hello_world_datetimestamp.txt".

Can anyone explain how I can do this?

thanks in advance

Julian

Accepted Solutions (1)

Accepted Solutions (1)

former_member214137
Participant

Hi,

The answer to my problem was quite simple in the end. In ASMA the default namespace was too short http://sap.com/xi/XI/System once I changed it to http://sap.com/xi/XI/System/File everything was fine.

Thanks to everyone for their responses, I've learnt several new things today.

Julian

Former Member
0 Kudos

Thank you very much for posting the solution. I just wasted hours with this problem before I found your simple solution.

Former Member
0 Kudos

Good One : even it resolved my issue..

0 Kudos

Thanks!

worked like a charm

B

Answers (6)

Answers (6)

yajjala1
Participant
0 Kudos

Hello Julian,

Please advise how to change In ASMA the default namespace was too short http://sap.com/xi/XI/System to In ASMA the default namespace was too short http://sap.com/xi/XI/System/File.

Thank you

John

former_member214137
Participant
0 Kudos

Hi John,

Sorry I no longer have a PI system to look at.

From memory in the sender comm channel you can manually edit this field.

Hope you have resolved this already.

Julian

NishantChavan
Participant
0 Kudos

Thanks for the answer, it helped me too. The only problem i am facing is, the TimeStamp is coming in between the filename. eg. my source file name is Abc.Abc. the target filename is getting created as Abc.TimeStamp.Abc

Do you have any idea how can i make it Abc.Abc.TimeStamp?

Thanks,

Nishant

vicky20691
Active Contributor
0 Kudos

Many thanks as well for this...

syedayubahmed
Participant
0 Kudos

Thanks for posting the solution, even it's resolve my issue also.

I would suggest if anybody raise any issue in SDN and resolve the issue, please post the solution also. so that it helps other if he face the same issue.

Keep Smiling,

Ahmed.

former_member214137
Participant
0 Kudos

Hi Shabarish and Amit,

Thanks for the feedback. I'll check it out when I get to work tomorrow.

I also found http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario

cheers

Julian

Former Member
0 Kudos

Hi Julian,

You can use the reciver SFTP adapter 'Add Time Stamp' option in Processing tab for this. If the timestamp doesnt match the requierd timestamp, then you need to use the dynamic Configuration code in mapping and provide the timestamp there, then in Advanced tab, use Advanced specific message Attribute 'file Name' option in the adapter.

Hope this helps.

Thanks

Pankaj

former_member214137
Participant
0 Kudos

Hi Pankaj,

Thanks for your reply. I need to add that I am doing a file to file operation without mapping.

I just need help with adding the original source file name to the receiver file name.

Any further suggestions?

cheers

Julian

Shabarish_Nair
Active Contributor
0 Kudos

refer the section Additional Info in this blog:  http://scn.sap.com/community/pi-and-soa-middleware/blog/2009/03/26/dynamic-configuration-vs-variable...

use a simple java mapping to set the ASMA using dynamic configuration.

rajasekhar_reddy14
Active Contributor
0 Kudos

Try with shell scripts or you have to add one to one mapping.

http://scn.sap.com/thread/1996560

Regards,

Raj

Shabarish_Nair
Active Contributor
0 Kudos

you cant use shell script for the SFTP adapter