Skip to Content
author's profile photo Former Member
Former Member

DynamicConfiguration - Send Email

Hi guys,

There is a interface that send .xml by email . I use de adatper type "mail".

I created message mapping and this mapping there is a rfc that search the emails adress in ECC. In this same mapping I created UDF that get Dynamic email by java code.

Follow code.
---

Public String getTo(Container container ) throws StremTransformationException{

GlobalContainer gc = container.getGlobalContainer();
AbstractTrace trace = container.getTrace();

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

String ret = (String) dc.get(DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail", "THeaderBCC"));

trace.addInfo("BCC = " + ret);

if ((ret==null) || (ret!=null && ret.equals(""))) {
return "";
}else
return ret;


The interface it´s working and sending emails.

BUT

If the all email are very large (many caracters), the udf not return the emails!

Anyone have any ideas whats happening? or how can I do to fix that problem?

Thanks a lot.

Felipe Martin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 14, 2014 at 12:07 AM

    Hi Felipe,

    It's not clear. Mail sender or Mail receiver?

    If you are trying to read the mail sender, then you don't have an option to read the BCC value

    For possible attributes :

    Refer to adapter specific attributes @ Configuring the Sender Mail Adapter (SAP Library - SAP NetWeaver Exchange Infrastructure)

    If you have mail receiver adapter and would like set the BCC ID Dynamically then check the below UDF,

    DynamicConfiguration configuration = (DynamicConfiguration) container.getTransformationParameters().getStreamTransformationConstants.DYNAMIC_CONFIGURATION);

    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail", "THeaderBCC");

    configuration.put(key, "<<Here the email ID>>");

    return "";

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.