Skip to Content
0
Former Member
Mar 20, 2009 at 02:19 PM

Get xml file name within Abap Mapping

66 Views

Hi,

I wish to get the file name (or full path name) of the source xml file that I need to parse. I can save the name of the file into container before launching the step of abap mapping.

I found in this forum this java source code.

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

Since I am using Abap O.O. is there a possibility to get the file name?

I receive this error message.

Statement "DYNAMICCONFIGURATION" is not defined. Check your spelling.

Any help will be well appreciated.

Thanks.

Giovanni