on 03-19-2008 10:18 AM
Hi,
my scenario is File to Idoc with lookups. for this i have to read source file name.for this i clicked on ADAPTER-SPECIFIC MESSAGE ATTRIBUTS, in side that i checked setADAPTER-SPECIFIC MESSAGE ATTRIBUTS and File name Check boxes. i wrote a UDF to get the file name it is giving error pls find the code below.
//write your code here
// public String getFileName(Container container){
//write your code here
String fileName="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
try{
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);
return valueOld;
/*
DynamicConfiguration config =(DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keyfilename = DynamicConfigurationKey.create("http:/'/sap.com/xi/XI/System/File","FileName");
fileName =(String)config.get(keyfilename);
if (fileName != null)
{
return fileName;
}
else
{
return"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";
}
*/
}
catch(Exception e){
fileName = "Dummy File name";
return fileName;
}
can you pls help me
Thanks
Sivaram
replace
DynamicConfigurationKey key = DynamicConfigurationKey.create("http:/'/sap.com/xi/XI/System/File","FileName");
as
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sivaram,let me know the error u r getting when u r testing u r scenario......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What error u r getting.
ur scenario will work only when u test the scenario end to end u can not test the scenario with test message tab.
Have u used the same weblog and link:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
paste the error details.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what is the error that u are getting
regadrds
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_COINCostTransfers_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_COINCostTransfers_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.