Skip to Content
Former Member
Aug 03, 2009 at 01:39 PM

Problem with grafical Mapping


Hello experts,

I create the following scenario:

I get a pdf file, that has a filename including the sap ordernr e.g. 5443323.pdf. So I only need the filename for calling a RFC module vial RFC adapter. The file adapter server take the file, sets a adapter specific message attribute e.g. fileName. So I create a udf mappping to read the filename via dynamic configuration:

//write your code here

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

DynamicConfigurationKey key = DynamicConfigurationKey.create("","FileName");

String filename = conf.get(key);

return filename;

The filename will be mapped to a field of the rfc structur. But if I try to test I get the following error: thrown during application mapping Fatal Error:

Anyway I do not map the incoming pdf document to the rfc structure. I only the read the filename. Thus, what can I do to prevent those kind of errors. Furthermore, I try to archive the pdf file. But when I try to open the archived file, I get an error, that this file includes errors and it is not a valid pdf document anymore.

I hope you can give me some hints or a solution.

Kind regards,