on 08-03-2010 7:21 AM
Hi All,
I have a requirement in mapping of my File to IDOC scenario, is i need to create the segment E1EDKT2 as many times of the length of the source field. I.e if the length of the field is 5 characters then five E1EDKT2 sgments will be created.If anybody came across this kind of requirment, please let me know as soon as possible.
Regards,
Kumar
Hi hasan,
you can do it using a simple UDF.
map , Source filed ->UDF->( standard function SplitByValue(each value))->E1EDKT2
in uDF , i assume *var1* is the source field, keep the context as Queue/context
for(int i =0; i< var1.length;i++)
result.addValue(" ");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can u do it using simple java code in a mapping UDF.
Steps will b as follows :-
1. Get the length of required field
2. Loop as many times of the field length
3. inside loop generate the output for each iteration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.