Skip to Content

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

File LookUp in the MM : FileNotFound Exception

Hello Friends,

I am trying to fetch a file during the message mapping. The code I have written in the UDF is as follows :


String company = "";

HashMap fileMap = new HashMap();

BufferedReader reader = new BufferedReader(new FileReader("C:

String line = "";

while((line = reader.readLine())!=null)


String[] lineArray = line.split(",");

fileMap.put(lineArray[1], lineArray[0]);


company = (String) fileMap.get(a);

return company; </u>


But I am getting the FileNotFound Exception when I tried to run the interface mapping.

I have confirmed that file is there in the respective folder.

1. Can we use the above code to fetch the file ?

2. Do we need to put the file in the XI server ?


Thanks for your time.


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