cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping of Adapter-Specific Message Attributes

CHKNELL
Participant
0 Kudos

Hi!

I've got a problem with the help.sap.com-example for the above mentioned task:


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);
}

The Container-class I have doesn't offer the method getTransformationParameters(). Additionally, the method get() from class DynamicConfiguration doesn't accept a DynamicConfigurationKey-object. Finally: how do I instantiate the Container-object (I think it's stored in the Parameter-Map, but what's its name?).

Thanks!

BR

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Christian,

Pls see these sap help links on the Java mapping.

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm

As you would see in the example shown in the link...you donot require a container object in case of java mapping(that is required when you are using the user defined functions)...

here you can call the get() method from the map in the java mapping class....this map is set by the mapping runtime by calling the setParameter() method in your java mapping class.

Thanks,

Renjith