on 05-30-2014 7:28 AM
Hi Experts,
I am doing a pass through scenario (i.e. ICo) without any ESR objects and I want to add time stamp to the file name at receiver side.
Could you please help me in doing this via Dynamic Configuration Bean?
What I also want to do is to replace file name with interface name through dynamic configuration bean using File adapter in receiver side.
But instead of getting the interface name in place of file name I am getting "message.interface" as file name. I have also used
variable substitution in receiver channel along with ASMA attributes.
Please suggest where I am wrong.
Thanks,
Aamir
Hi Aamir,
Please try with these parameters which gives you interface name as FileName.
key.1 read http://sap.com/xi/XI/System/File FileName
value.1 message.interface
key.1 write http://sap.com/xi/XI/System/Messaging interface
value.1 module.filename
Here Module Key1 gets the FileName and Module Key 2 sets the FileName with Interface Name.
select Add Time stamp for File Construction Mode in processing Tab as below.
For Example My interface Name is SI_A_FTP( in ICO) and by following the above steps in Receiver File Adapter then we get the FileName as "SI_A_FTP20140602-145413-842".
Thanks,
Durga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aamir,
We are using only one Module :"AF_Modules/DynamicConfigurationBean" with the type "Local Enterprise Bean" and the system proposes a Module key.
In the above screen shot Module key "1" works as "getFileName" and Module key "2" works as "setFileName" .
Coming to Module configuration for Module key "1" we are providing the Parameter name as "key.1" and Parameter value as :"read http://sap.com/xi/XI/System/File FileName" this value reads the FileName and and repalces the FileName with Interface name based on the Parameter value as "message.interface" (attribute used to fetch the corresponding Interface Name) for Parameter name "value.1".
Module key "2" we are providing the Parameter name as "key.2" and Parameter value as :"write http://sap.com/xi/XI/System/Messaging interface" this value writes the FileName by calling the module.
I have worked with this Dynamic Configuration Bean in both File and SAP SFTP Adapter in SAP PI 7.3 in case of SFTP Adapter we need to follow the following steps.
Thanks
Durga
Hi Durga,
Thanks for explaining.
However everything works fine when I only read the values. Like:
key.1 read http://sap.com/xi/XI/System/File FileName
value.1 message.messageId
In above case I am getting the file name as messageId/interface name.
So what is the advantage of writing those values?
Hi Aamir,
We can use only the below and we can get the FileName as messageId/ InterfaceName.
we need not write those values with out write option we can acheive the required FileName.
FileName with MessageId
key.1 read http://sap.com/xi/XI/System/File FileName
value.1 message.messageId
FileName with Interface Name
key.1 read http://sap.com/xi/XI/System/File FileName
value.1 message.interface
Thanks
Durga
HI Amir,
plz check the below link
.............
mutti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am facing a similar situation as mentioned in below scn thread:
http://scn.sap.com/thread/689586
Please help.
Hi Amir,
the parameters you mentioned are not appropriate.
its always a two step process.
1) you need to fetch the values from the sender adapter
2) write the value in the receiver adapter.
you are currently just writing an message.interface without setting the value in that.
so i would suggest to set the value first and then write.
key.1 write http://sap.com/xi/XI/System/Messaging interface
value.1 message.interface
key.1 read http://sap.com/xi/XI/System/File FileName
value.1 module.filename
hope this helps
thanks and regards,
Praveen T
Message was edited by: Praveen Tirumareddy
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.