Skip to Content
0
Former Member
Jul 03, 2009 at 01:01 PM

Erron while using DynamicConfiguration in UDF

49 Views

Hi All,

I have create an UDF ,which imports com.sap.aii.mapping.api.*; package adn performs the following:

/* UDF */

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

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

String AgiFileName ="MSIPl_"+ paddedAgi+".dat";

conf.put(key, AgiFileName);

AbstractTrace trace = container.getTrace();

trace.addDebugMessage("FileName"+AgiFileName);

/End of UDF/

I am getting the following error,during run time .Plz advice

RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:AddMaterial/LEGAL_REGULATIONS/Legal_Regulation. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._Select_Material_to_AddMaterial_ method Syn_FileName_Directory$[000000000000101960, com.sap.aii.mappingtool.tf3.rt.Context@492f5aa1]