cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the Dynamic Configuration Bean

Former Member
0 Kudos

Hi experts,

im currently doing a file to mail scenario.

i want the name of the input file as the subject of the mail.

i want to establish this using the Dynamic Configuration bean

my first question is:

key.1 <b>read</b> http://sap.com/xi/XI/System/Mail THeaderSUBJECT

value.1 message.messageID

this reads the value of the message ID into the attribute THeaderSUBJECT

but what does this do?

key.1 <b>write</b> http://sap.com/xi/XI/System/Mail THeaderSUBJECT

value.1 message.messageID

when i use this it has no effect atall.

my second question.

I have my input filename in the FileName attribute in Dynamic configuration how can i read it into THeaderSUBJECT attribute.

Appreciate any suggestions.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Danasekaran,

If you are using mail package then for the subject field write a user defined function for the filename. Please check my reply in this thread. I think you should be able to get it in mapping itself.

Regards,

---Satish

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Satish,

Yep i know its possible via an udf in Message mapping but i dont have an MM in my scenario. Since im not parsing thru the input data since its an excel file, so im transferring the file using the following method

/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository

and in this method if i include an MM it will give me a mapping exception.

So i have to use this bean somehow and try to accomplish what we do in the udf.

Former Member
0 Kudos

Sekaran,

I have seen scenarios where the file name would be the attachment name but not the subject name. I am not sure about this sekaran. If you want the filename for the attachement name in the mail then see this michals weblog:

/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

Regards,

---Satish