cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration Bean

former_member202642
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member202642
Participant
0 Kudos

Thanks Durga.

It is working fine now.

Could you please explain how these modules are working?

Because while using Advantco SFTP adapter we were just writing modules into the adapter.

Former Member
0 Kudos

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

former_member202642
Participant
0 Kudos

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?

Former Member
0 Kudos

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

former_member202642
Participant
0 Kudos

Yes Durga, This is what I was telling.

I checked with only read option and got the required file name.

Thanks

Aamir

Answers (1)

Answers (1)

Former Member
0 Kudos
former_member202642
Participant
0 Kudos

Hi Mutti,

I had already gone through the blog but couldn't able to get anything which helps me.

Former Member
0 Kudos

Hi,

Plz provide containing the screen-shot.

....

Mutti

former_member202642
Participant
0 Kudos

Hi,

I am facing a similar situation as mentioned in below scn thread:

http://scn.sap.com/thread/689586

Please help.

praveen_sutra
Active Contributor
0 Kudos

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