cancel
Showing results for 
Search instead for 
Did you mean: 

Using Adapter-specific attributes in Mail adapter

Former Member
0 Kudos

Hi,

I try to use adapter-specific attributes in my Mail adapter. I set the "Use Adapter-Specific Message Attributes" indicator, but I do not get a result in the mapping and also in the SXMB_MONI the attributes are not visible.

The documentation also refers to Variable Transport Binding indicator:<a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm</a>

Could this be the problem? I cannot find this indiciator! Does anyone know where I can find this indicator?

Regards,

Torsten

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The values for the parameters, set using adapter specific message attributes are available at runtime in the path http://sap.com/xi/XI/System/Mail.

We need to write UDF's that can extract the values from this path.

For Ex:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters() .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(

“http://sap.com/xi/XI/System/File”,

“FileName”);

String valueOld = conf.get(key);

if (valueOld != null) {

String valueNew = valueOld.replaceAll(“input”,”output”);

conf.put(key, valueNew);

}

If you check Dynamic configuration in sxmb_moni, you would be able to find the values for all the attributes that have been set in the adapter.

Regards,

Smitha.

Former Member
0 Kudos

Hi,

From SAP Help

<i>If you want to transfer header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, XHeaderName3. The parameters are embedded in the mail header under the names you enter here.</i>

This indicator can be set just below the Adapter-specific message attribute.

Once you select the above option, there is an option availble just below it.

Hope this is what you were asking for.

Regards

Vijaya

Former Member
0 Kudos

Hi Vijaya,

yes, that was exactly the point! My problem is, that I cannot find this indicator, no matter wether I set the indicator "Adapter-specific message attribute" or not. Is there any other prerequisite, which I have to fulfil? We use SP16.

Regards,

Torsten

Former Member
0 Kudos

Hi,

We are on SP14.

When I select 'Adapter Specific Paramater, I am getting a new checkBox just below that with Variable transport Binding.

If you are not able to get it, I guess you will have to look for a patch or SAP OSS.

YOu can also see if you have latest patch of XI ADAPTER FRAMEWORK CORE 3.0 for SP16. Just a suggestion

From FAQ of MAil adapter:

<i>SP14 introuced the Adapter Specific Message Attributes (ASMA) that can be used to import and export adapter/transport specific headers into and out of XI. This is a generic mechanism for all adapters and other components such as mapping and routing can directly access or manipulate these values. The functionality provided by MailPackage is available in ASMA. Therefore, it is recommended that new scenarios use ASMA instead of MailPackage.</i>

Regards

Vijaya

Message was edited by: vijaya kumari

Message was edited by: vijaya kumari