on 08-17-2007 9:31 AM
Hi all,
I have the following requirement. I ll read a file as input. I need to check if filename equals one particular field in the source. if equals then i ve to go ahead doing mapping and the rest. Else i dont want to process anymore. please help me in a step by step procedure for doing the same.
Thank you
Sumayya T S
Access the filename using Adapter Specific Message Attributes
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Now u can compare this name with the payload value in graphical mapping itself
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I hope your scenario can be done like this.
Have a Integeration Process in ur scenario and receive the xml file in the IP.
Inside the switch u check for the condition i.e filename = source field if true then have the transformation step in one branch to do mappping and if false do nothing or raise an alert and just have a send step.
receive -
> switch(transformation/no process) -
> send
Regards
Santhosh
Message was edited by:
Santhosh Kumar V
I think you can do this by using the Context objects.
First get the Filename into your dummy element in target strcutre using UDF and create the context object between your dummy element and another element which holds the filename with equal conditon and use this context object in the receiver determination.
But I am not sure about it because i never tried this.
<b>UDF as follows:</b>
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_dirname = "/mqm/mqmprod/temp/out/ " + source.substring(14,18); */
String tar_fname =source.substring(19,20);
String tar_dirname = source.substring(14,18);
conf.put(key, tar_fname);
conf.put(key1, tar_dirname);
return tar_fname;
Warm Regards,
Vijay
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.