Skip to Content
0
Former Member
Dec 04, 2008 at 12:56 PM

Get source FileName - RuntimeException during test of Message Mapping

20 Views

Hi,

Inside a graphical mapping, I want to get the source file name, and then use it.

For that I use Michal's post inside a UdF: https://blogs.sap.com/?p=41013

And that works perfectly during the treatment (File -> Mapping -> IDoc)...

But my problem is when I try to test my Message Mapping inside the I.R (see tab "Test"), I have a RuntimeException due to the fact that DynamicConfiguration does not exist (obviously!) in the SOAP.

So I tryed to encapsulate the line "String ourSourceFileName = conf.get(key);" by a try/catch or by using the method "containsKey", but I have always the same RuntimeException...

is there someone who know how to catch this exception ?

Regards

Mickael

Note: JavaDoc is: http://help.sap.com/javadocs/NW04S/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html