on 10-14-2009 8:00 PM
Hi,
i am working in Idoc to file....
for certain filed they mentioned the mapping rule as 'Do not Map' ...
For DO NOT MAP fields >>> If AlphaNum - blank fill
If Numeric - zero fill
For All AlphaNum fields >>> Left Justify
what it menans ...how can i achieve this....
thanks.
FLW,
For DO NOT MAP fields >>> If AlphaNum - blank fill
If Numeric - zero fill
Write a UDF which will check whether the incoming value is Numeric or Alphanumeric.
If Numeric, then pass a constant "0" to the target,
Else if AlphaNumeric, then pass a "blank" value.
This is pretty straight forward, a simple UDF will be good enough to achieve this.
Regards,
Neetesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Below is the UDF created to check whether the incoming value is Numeric or Alphanumeric.
If Numeric, then pass a constant "0" to the target,
Else if AlphaNumeric, then pass a "blank" value
UDF with one argument input.
//write your code here
try{
Integer.parseInt(input);
}
catch(NumberFormatException nfe) {
return "";
}
return"0";
Do the mapping as below
DO NOT MAP fields------>UDF----->TargetField
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.