Skip to Content

Problem with Idoc segment maximum length

Hello Expert

I am creating the scenario File to IDOC. I am facing a issue for idoc segment field length value. let example ..

My source field name is Address and it is length is 40 character . And target field IDOC filed name TDLINE and max length 10 character.I want every after 10 character it will generate new segment TDLINE .

like Address(50 ch) ------> PI ------> TDLINE(10)

TDLINE(10)

TDLINE(10)

TDLINE(10)

.Please let me know how we can split this . Please let me if any UDF required for this requirement .

Regards

Panakj Singh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 21, 2017 at 01:37 AM

    Pankaj,

    This is usuall requirement when some one is working with inbound idoc's

    I usually do :

    • Duplicate the parent node usually 5 times, and have a create if function for every parent with condition checking with input string length.
    • Then for the respective TDLINE use substring and populate data.

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25, 2017 at 05:51 PM

    Thanks Manoj for input .

    Can you share the Mapping logic for this requirement .

    Add comment
    10|10000 characters needed characters exceeded