cancel
Showing results for 
Search instead for 
Did you mean: 

problem in Dynamic Configuration bean

Former Member
0 Kudos

Hi

I am trying to dynamically change the filename using Dynamic Configuration bean with some constant value but target file is having same name as source. In communication channel monitoring logs I can see the successul processing log but actually file name is not getting changed at all.

Regards

Akhil

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

M not sure what will be the error with this when u r using dynamic configuration bean.But same functionality can be better achieved by using this dyanamic configuartion UDF :

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

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

conf.put(key, a);

return value;

Regards,

Anoop

Former Member
0 Kudos

Probably you are correct Anoop but we have some scenarios in which there is no mapping (file to file).

Clearly its not a good approach to create mapping just for changing the file name dynamically.

What do you think?

prateek
Active Contributor
0 Kudos

I think logically u r correct. If u r bypassing IR, then there shouldn't be mapping just for achievin dynamic filename functionality. Have u used the variable substitution as mentioned here

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek

First of all thanks for your reply..

I just found a blog which deals with my problem

/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean

But even for that Dynamic Configuration bean should work.

I have check Adapter specific message attributes in sender side and configuration seems fine to me.

But still i am not getting results as desired...

Is there any pre requisite with this module?

Regards

Akhil

former_member194786
Active Contributor
0 Kudos

Hi,

Did you select the Set Adapter Specific Message Attribute check box in Communication Channel?

Thanks and Regards,

Sanjeev.

Former Member
0 Kudos

Hi,

How u chaged the File name,in UDF which u have written.

give complete datails so that we can give any idea.

regards,

phani

Former Member
0 Kudos

Thanks for your reply but

I am using SAP provided Dynamic Configuration bean in communication channel,No UDF

Regards

Akhil