cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic configuration

viswanahreddy
Participant
0 Kudos

I am looking on different UDF for handling files...

Form the below URL i couldn't able to understand the two below statements which they used to create a file name and i didn't get the proper explanation even from other blogs..          

SAP PI: Dynamic File Name UDF SAP PI

Please explain the below in detail:

DynamicConfiguration?


what this container.getTransformationParameters() will do?

what this get(StreamTransformationConstants.DYNAMIC_CONFIGURATION will do?


what this DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName"); will do? what is this FileName?why are we using URL?







Thanks for the quick response.

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Annapureddy,

DynamicConfiguration?

This is a technique to establish some configuration parameters, as the file name on the file adapter at mapping level.

what this container.getTransformationParameters() will do?

With this instruction you get the global mapping  variables available ()

what this get(StreamTransformationConstants.DYNAMIC_CONFIGURATION will do?

With this instruction you get a variable that contains the configuration parameters available. For this purpose you need the last sentences, you get the mapping parameter that makes accessible the configuration objects.


what this DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName"); will do? what is this FileName?why are we using URL?

You are accesing to that URL to can change the target name of the file on your receiver file adapter. The URL is the adapter URL, in each adapter you will need a different URL, this is a way to PI knows what adapter is dealing to.

Regards.

Answers (2)

Answers (2)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Viswanath,

In order to get the access to the ASMA parameters, you need to use the dynamic configuration object. So from container object, we can get access to these by using those lines.

Coming to dynamic configuration key object, it is just like a pointer in C language, it just points to the corresponding namespace which will be holding the related value at runtime.

former_member186851
Active Contributor
0 Kudos

Hello .

Refer the below link

Container Object - Enabling Application-to-Application Processes - SAP Library

DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName"); will do? what is this FileName?why are we using URL?

This will create the key based on the standard namespace -http://sap.com/xi/XI/System/File