hai friends
iam doing idoc to file senario in that iam geeting multiple tdline (long text) in multiple segments
iam doing first conctinating and then splitting in to 4 parts.
when concatinating to concatinate iam using remove context for concatinating at that time all the segmaents text will comming into one segment
what can i do to avoid this .
pls help me
my in put file is like this :
<root>
<seg1>
<tdname>abc</tdname>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
</seg1>
<seg1>
<tdname>urt</tdname>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
</seg1>
<seg1>
<tdname>xyz</tdname>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
<seg2>
<tdline>kdjfkdjfhkj</tdline>
</seg2>
</seg1>
</root>
target shoud like this.
<root>
<seg1>
<tdname>abc</tdname>
<seg2>
<tdline>kdjfkdjfhkjdfhdjkfhkdfjhgfj</tdline>
</seg2>
</seg1>
<seg1>
<tdname>xyz</tdname>
<seg2>
<tdline>kdjfkdjfhkjdfhdjkfhkdfjhgfj</tdline>
</seg2>
</seg1>
<seg1>
<tdname>urt</tdname>
<seg2>
<tdline>kdjfkdjfhkjdfhdjkfhkdfjhgfj</tdline>
</seg2>
</seg1>
<./root>
but iam getting
<seg1>
<tdname>abc</tdname>
<seg2>
<tdline>kdjfkdjfhkjdfhdjkfhkdfjhgfj
jghkjghkfjghkfj
fghkfjghjkf
fjghfjg</tdline>
</seg2>
</seg1>
what can idoo pls help me
iam writing one udf for this
but it is not working proparly
pls help me
with regards
srikanth vipparla
Edited by: srikanth vipparla on May 29, 2008 5:04 AM