Problem in mapping-BAPI to file.
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
map = container.getTransformationParameters();
constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
String fileName = constant + ".txt";
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.