Hi Experts,
I have the problem like, Depending on the source file name, I need to create a new directory and new file name with the same content. So for this i have done the following steps.
1.Create a mapping, Top node mapped with UDF as follows
//write your code here
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/File",
"FileName");
DynamicConfigurationKey key1 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/File",
"Directory");
String source = conf.get(key);
String tar_fname =source.substring(19,21);
String tar_dirname =source.substring(14,18);
conf.put(key, tar_fname);
conf.put(key1, tar_dirname);
return " ";
2. Done the All the configuration in ID.
But I am getting the following FATAL error. Can you please suggest me what coulbd be the problem
My Error as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- 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_Target_File_determined_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Please refer my other thread which help me to solve my problem partially.
how-to-send-user-defined-error-to-sxmbmoni
Thanks in Advance,
Points will be awarded for helpful anwsers.
Warm Regards,
Vijay
Thanks in Advance
Best Regards,
Vijay
Message was edited by:
Gangisetty Vijaya Bhaskarudu