cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Idoc segment maximum length

pankaj_yadav3
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

pankaj_yadav3
Participant
0 Kudos

Thanks Manoj for input .

Can you share the Mapping logic for this requirement .

manoj_khavatkopp
Active Contributor
0 Kudos

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