on 04-18-2007 3:12 AM
Hi All,
I have a source Idoc coming to XI. There one segment with occurance 1....Unbounded, and has qualifier field in it. I want to look for a particual value in that qualifier field and then map the next field to target. How do I write UDF for the above requirement??
Idoc-Segment (1---Unbounded)
-
qualifier
-
field-value
We have to loop through that segment and when ever the qualifier is AB, then we need to map the value in field-value.
Can anyone please provide sample code for the same??
Thx
Navin
why do you need udf....u ca use the if..else condition in grpahical maping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Write a UDF , the type of UDF , select queue.
qualifier -removecontext---\ -
UDF - SplitByValue-target field
field-value-removecontext--/
in UDF
for(int i=0;i<qualifier.length;i++){
if (qualifier(i).equals("value"){
result.addValue(field-value(i));
}
}
try
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.