on 04-21-2009 1:56 PM
Hello everybody,
is it possible to create an Adapter-Specific Message Attributes in a java Mapping?
I found in the SAP Help that the API com.sap.aii.mapping.api.DynamicConfiguration allows only to read, change or delete the attributes.
best regards.
Adnane Elgoute
Hi,
try the follwoing code
import com.sap.aii.mapping.api.*;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
public class JavaProgram
implements StreamTransformation
{
public JavaProgram()
{
}
public void setParameter(Map map)
{
param = map;
if(param == null)
param = new HashMap();
}
public void execute(InputStream inputstream, OutputStream outputstream)
{
try
{
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
String s = dynamicconfiguration.get(dynamicconfigurationkey);
//Your logic
}
catch(Throwable throwable)
{
throwable.printStackTrace();
}
}
private Map param;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adnane,
Please have a look at the following link and see if it helps.
http://help.sap.com/saphelp_nw70/helpdata/en/43/09b16006526e72e10000000a422035/content.htm
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.