cancel
Showing results for 
Search instead for 
Did you mean: 

Java mapping accessing file stored in Design phase

milan_10
Participant
0 Kudos

Hello all,

is there a way how to store a XML file in Design Phase( Integration Repository ) somewhere and access that file via JAVA mapping in Interface mapping to do some logic there???

Many thanks,

Milan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

can u store that as a part of xsl file and use a xslt mapping

what is the purpose of storing an xml file in IR

Edited by: Arvind Kumar on Dec 29, 2007 1:06 PM

milan_10
Participant
0 Kudos

Hi,

I want to use it as a value mapping document, so for example if in incommming element table is value ETTIFN, then mapp that value to SAP_ABC... I prefere to store that mapping in XML file and do JavaMapping SAX for incomming message, DOM for that XML stored in design phase.

Many thanks,

Milan

Former Member
0 Kudos

Hi,

you can start reading this post https://www.sdn.sap.com/irj/sdn/profile?editmode=true&userid=3484793. Pay attention to this code

InputStream is = this.getClass().getClassLoader().getResourceAsStream(filename);

This is a way to get a file, as mr. muller said in that thread, and so you can handle the inputstream as you want to get the xml and make the mapping. I think there are better ways of doing it, search for "value mapping" and you will find lots of documentation about it.

regards.

roberti

Answers (0)