on 10-19-2006 4:39 AM
Hi All,
I have a IDOC outbound fields like:
A1CONTENT-DATA(18)
A1CONTENT-DATA+21(18)
A1CONTENT-DATA+40
This DATA field size is String(100).
Target fields(Inbound)Like:
A char(18) With Leading Zeros
B Char(18) With Leading Zeros
C char((5)
These 3 fields A,B,C have to mappe A1CONTENT-DATA Field in IDOC.
Can any one pls let me know which functions i have to use for to get out put according to Positions in Memory?
If there is a any java userdefined function for this pls send me.
Thanks,
Govindu.
Hi Govindu,
For target C you can use substring as suggested by Prakash. For A & B you need to add leading zeros rite?? Try this UDF
DecimalFormat df=new DecimalFormat("000000000000000000");
StringBuffer sb=new StringBuffer();
df.format(a,sb,new FieldPosition(NumberFormat.INTEGER_FIELD));
return(sb.toString());
Let me know, if this solves your problem...
Regards,
Jai Shankar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try using SUBSTRING function that is available in the Graphical mapping.
Regards,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.