on 09-28-2015 2:34 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.