cancel
Showing results for 
Search instead for 
Did you mean: 

DynamicConfigurationBean

Former Member
0 Kudos

has anybody used DynamicConfigurationBean for Mail adapter?

could you answer my below query?

I have file droped by Legacy system and PI has to pick the file and send the content of the file to Mail as body of the mail..

i have used DynamicConfigurationBean to overite Mail-IDs coming from the mapping;

below are the DynamicConfigurationBean parameters in reciever Mail Adapter;


Processing Sequence:
---------------------------
1	AF_Modules/DynamicConfigurationBean		         Local Enterprise Bean	1
2	sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean	Local Enterprise Bean	0




Module Configuration:
---------------------
key.0	insert http://sap.com/xi/XI/System/Mail To
value.0	TomailID
key.1    insert http://sap.com/xi/XI/System/Mail From
value.1	FrommailID

There are no errors; but issue is TomailID and FrommailID are not overwritting the mailIDs coming from mapping.

what I'm using above is that correct?

your answers are appriciated..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

The problem is solved:

Solution:

- Do not mention To feild in the XSLT mapping

- in Configuration; for MAIL communication channel; go to MODULE tab n give the below parameters;


Processing Sequence:
no'                 Module Name		                     Type   			Module key
1 	AF_Modules/DynamicConfigurationBean                     Local Enterprise Bean 	           5
2 	sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  Local Enterprise Bean 	           2


Module Configuration:
Module Key   	Parameter Name         	parameter Value
5		key.1	            	insert <a href="http://sap.com/xi/XI/System/Mail" TARGET="test_blank">http://sap.com/xi/XI/System/Mail</a> THeaderTO
5		value.1		         <Email-ID>

- Go to ADVANCE tab n check Use Adapter-Specific Message Attributes

check Variable Transport Binding in text box give the value "XHeaderName1"

former_member181962
Active Contributor
0 Kudos

Hi Prema,

Did you provide the actual To-mail id or just TomailID?

It should be the actual email id right?

If it is the actual email, then you can try this

Module Configuration:
---------------------
key.0	delete http://sap.com/xi/XI/System/Mail To
key.1	insert http://sap.com/xi/XI/System/Mail To
value.1	TomailID
key.2	delete http://sap.com/xi/XI/System/Mail From
key.3    insert http://sap.com/xi/XI/System/Mail From
value.3	FrommailID

Regards,

Ravi

Former Member
0 Kudos

ravi,

yes, I'm using actual To-mail id and From-Mail id...

and i implemented your solution at receiver mail communication channel, but still it is not overwriting the mail-IDs coming from mapping..