Skip to Content
0
Aug 01, 2016 at 09:52 AM

UDF error

42 Views

Hi Experts,

I am using this UDF to call the file name and pass it to the RFC lookup to update it in the table.But unfortunately am getting the below error

Error getting:

java.lang.NullPointerException: while trying to invoke the method com.sap.aii.mapping.api.DynamicConfiguration.get(com.sap.aii.m

UDF Using:

public String getFileName(Container container) throws StreamTransformationException{

try {

String filename = "";

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

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

filename = conf.get(key);

return filename;

}

catch(Exception e)

{

String exception = e.toString();

return exception;

}

}

Please help is it any thing wrong in the code.

Regards,

Shaik