Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in mapping-BAPI to file.

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question