cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration in PI 7.1

Former Member
0 Kudos

Hi,

We have this UDF working in XI 3.0, to feed file name into message mapping:

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

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

String file = ( TableName );

conf.put(key, file);

we are upgrading to 7.1 and this little thing is not working any more. Can smebody please suggest what to do to get it working in PI 7.1.

Alternatively, is there any other way to fill up 'Dynamic Configuration' in graphical mapping.

Thanks for your help!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dehra

I have the same problem for the first run. I open the the messages mapping, change my user function.

In function, I change nothing. Close the function and activat the messags mapping an make a new

test.

The user function was now running.

Regards Tom

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Are you testing in Test in Message mapping or Operation mapping? Then it is normal that you get error. Please make a test using integration engine send test message tab in rwb if it is not a production environment.

Kind Regards,

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Dehra,

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

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

String file = ( TableName );

conf.put(key, file);

return file;

I will work, i hav done similr requirement in my currenct project with version PI7.1 its working fyn.

cheers,

raj

Former Member
0 Kudos

we are using following in 7.1

public String Get_Input_File_Name(Container container) throws StreamTransformationException

{

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

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

String SourceFileName = conf.get(key);

return SourceFileName;

}

Edited by: NetWeaver Expert on Jun 26, 2009 7:09 AM