on 05-21-2012 4:54 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Extension .txt.pgp to target file in receiver f... | SCN
follow the above discussion.
Many thanks as well for this...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Try with shell scripts or you have to add one to one mapping.
http://scn.sap.com/thread/1996560
Regards,
Raj
Hi,
Plz chk this:
Adapter module:
Java mapping:
http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario
Thanks
Amit Srivastava
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.