on 05-17-2008 6:57 AM
Hi all,
I am working on an bapi to file scenerio.My requirement is 2 files need to created in the target ,
First file has the payload and its name(filename) needs to hav message id.
Second file is a catalog file which only holds the name of the first file(Howmany ever file are reaching target,this file wil hav names of all those files.).
I have used multi mapping wherein for the first structure i hav done dynamic configuration to generate filename and its wrking fine.
For the second stucture (has only 1 field for passing filename)i wrote following UDF and mapped it
String constant;
java.util.Map map;
map = container.getTransformationParameters();
constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
String fileName = constant + ".txt";
return constant;
but now output of the second file is empty ie the filenames of the first file is not present in it.
Please help as its very urget.
heyy...thanks for that, but that was a typing mistake..problem is elsewhere, i had tested by mapping that field to a constant, even then no value was present in output.
My structure looks like below.
Messages
Message1
mt_abcd
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
heyy...thanks for that, but that was a typing mistake..problem is elsewhere, i had tested by mapping that field to a constant, even then no value was present in output.
My structure looks like below.
Messages
Message1
mt_abcd
. field1
field2
field3
Message2
mt_abcd2
filename
Message1 and message2 are 2 separate files in output.
Message1's output is correctly generated.But for message2 no output atall.
Hi Shruti,
Here you havent use the filename variable. I think you have to return file name. Just by adding .txt to string is it useful for converting file.
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.