Skip to Content
0
Former Member
Dec 09, 2009 at 05:36 AM

Number of Target segments to be created based on source field length

48 Views

Hi Gurus,

I have a special requirement .

The number of target segments should be created based on the source field length .

To be more precise on the requirement I have the source segment S and under that I have the field S1 . On the target side I have segment T and under that I have the target field T1 . Occurence of T segment is 0 to unbounded.

If the length of S1 is < 50 then only one T segment should be created and the S1 value should be appeared in T1 .

For eg. If the length of S1 is 110 characters long then T segment should be created 3 times and first occurence of T1 should have the first 50 characters and second occurence of T1 should have the characters from 51 to 100 and the third T1 should have the characters from 101 to 110 . Also the min length of S1 is 0 and max length is 500 . Can anyone help me out .

Thanks & Regards,

Sarat