Skip to Content
author's profile photo Former Member
Former Member

How to Mapping these feilds

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 19, 2006 at 03:42 AM

    Hi,

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

    Regards,

    Prakash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 06:09 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.