cancel
Showing results for 
Search instead for 
Did you mean: 

How to Mapping these feilds

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

former_member206604
Active Contributor
0 Kudos

Hi,

You can try using SUBSTRING function that is available in the Graphical mapping.

Regards,

Prakash