on 04-11-2007 7:56 AM
Hi Friends
In my file to file scenario,i want to use input file name to output file by using adapter specific attributes,for this i have java code.Please suggest me how can i use this java code in mesg mapping and to which field i need to mapping this.
Thanks
pullarao
If you want to use the source file name itself as the target filename, no need for coding.
In the sender and receiver file adapter --> Select Adapter Specific Attributes --> FileName.
Give some dummy name for the filename in the receiver file adapter and in the runtime the source filename will be used as the target filename.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pullarao,
I have two questions ...
1. Are u want the static file name in the target file?
if yes...then follow the Bhavesh instruction.
2.If u want a dynamic file name in the target file using UDF....then your UDF should mapped to the <b>root element</b> of target structure.
/**********UDF********/
Imports: com.sap.aii.mapping.api.*;
Parameter: String filename
String filename;
filename = fileName + ".DAT";
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
conf.put(key, filename);
return filename;
/*******END UDF*******/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This requirement was exactly explained here by Michal
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
look into this weblog - /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.