Skip to Content
avatar image
Former Member

How to retreive the dynamic file name in the AAE configuration?

Hi Guys,

I have configured File to File with the integrated configuration and in the mapping i need to retreive the file name dynamically and i am unable to retreive it from the run time in AAE configuration. I am able to retreive with the normal configuration where integration engine is the run time.

I am using the code as below. Is it possible to retreive the file name dynamically in the AAE configuration? any help or suggestions would be appreciated.

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

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

String ourSourceFileName = conf.get(key);

return  ourSourceFileName;

Thanks,

Srini

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 24, 2010 at 05:03 AM

    The dynamic containers that we use (FileName, Directory, TargetURL etc) reside on the Integration Engine....when we use AAE we bypass IE and hence these variables do not get filled....hence cannot use them....i hope that my guess is valid 😊

    Regards,

    Abhishek.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 24, 2010 at 06:00 AM

    Hello Srinivas,

    Brief Solution:

    1. Using dynamic configuration, set the attribute value of payload dynamically to ASMA

    2. Using AF module, write the value of ASMA in a variable

    3. Using the variable substitution, set the receiver file name schema

    Plz go through the below link:

    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot

    Thanks,

    Satya Kumar

    Add comment
    10|10000 characters needed characters exceeded