on 12-04-2006 9:34 AM
Hi All,
I am using file adapter to Archive File. In Processing mode i have set as Archive and also selected the Add Time stamp checkbox.
Now the file is being archived with timestamp being added.
EX :
20061204-143518-299abc.txt
I want to send the file name in a mail.
how do i get the file name.
Regards,
rahul
ps : In the SOAP message payload there is a entry ..
SAP:PerformanceHeader xmlns:SAP="http://sap.com/xi/XI/Message/30">
- <SAP:RunTimeItem>
<SAP:Name type="ADAPTER_IN">INTEGRATION_ENGINE_HTTP_ENTRY</SAP:Name>
<SAP:Timestamp type="begin" host="xidev">20061204090518.299</SAP:Timestamp>
</SAP:RunTimeItem>
that timestamp actually represents the file name.
been a lot of dayz..so closing this message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can archive in a stage directory, exceute an OS script that get the e-mail and than use the sendmail program. Than move the file in the final arching directory.
Regards,
Sandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rahul,
Can you give more details?
You can access the file name in the mapping if you are SP14 and above.
In the sender File adapter, select File name and then in the mapping use the following code to get the file name,
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
http://sap.com/xi/XI/System/File,
FileName);
String fileNanme = conf.get(key);
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to try this way, there is not difference at this level between windows and unix.
For sendmail you can use this comman line tool:
http://www.glob.com.au/sendmail/
Regards,
Sandro
use this /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 to get the filename.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.