Skip to Content
0

Problem with Idoc segment maximum length

Jan 21, 2017 at 01:06 AM

82

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Manoj K Jan 21, 2017 at 01:37 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
pankaj yadav Jan 25, 2017 at 05:51 PM
0

Thanks Manoj for input .

Can you share the Mapping logic for this requirement .

Share
10 |10000 characters needed characters left characters exceeded