on 07-09-2007 2:40 PM
Hi All,
IDOC to File.
I got a problem while doing Mapping. I have 7 segments.
Idoc structure looks like below:
-
Seg1
Seg2
Seg3
Seg4
|____Seg5
|____Seg6
Seg7
Now i need to do Mapping for Seg 5 and Seg 6 to single Segment( BLOBE ) and these segments will repeat unbounded times.
Seg5
-
> BLOBE
Seg6
When i test this scenario.. iam getting Blobe only once and its is not repeating,
when seg5 and seg6 repeats more than once.
Please suggest me what might be the problem.
Can i acheive this or not?
Its Urgent.
Thanks in Advance.
Regards
Seema.
Seema,
How you defined the structure of BLOBE, is it like the sub elements of Seg5 & Seg6 occurs in BLOBE Sube-elements. Can u please clarify it.
Best regards,
raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
Seg5 and Seg6 are under Seg4 of my source idoc.iam concanating all the fields in seg5 and seg6 and mapping into <b>Single string</b> "BLOBE" which is at the target side
Source Target
___________________________________________________
Seg4 Seg4
_____seg5 (1:unbounded) |
|_____seg6 (1:unbounded) |___BLOBE(1:unbounded)
Pls reply me if u need any clarification.
Regards
Seema.
Seema,
Please see the below logic and results and please confirm me ,whether this is the expected outcome.
Mapping:
http://www.flickr.com/photo_zoom.gne?id=761004761&size=o
Results:
http://www.flickr.com/photo_zoom.gne?id=761004767&size=o
Best regards,
raj.
Hi Seema,
what's the Occurance of element BLOBE.. if it's 1...1 it can't occur more than once.
Make the occurance 1... unbound and try again.
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sachin,
Thanks for ur reply.
Yes BLOBE has to repeat unbounded times.Iam trying the same and its not coming.
Idoc structure looks like below:
-
Seg1
Seg2
Seg3
Seg4
|____Seg5
|____Seg6(1:unbounded)
Seg7
Now i need to do Mapping for Seg 5 and Seg 6 to single Segment( BLOBE ) and these segments will repeat unbounded times.
Seg5
-
> BLOBE (1:unbounded)
Seg6
Regards
Seema.
Hi Seema,
I think it's happening due to this reason.
the BLOBE i created unbound times, but the Root node of BLOBE is being created only once.
Try this:
Map the segment 4 of source to root node of BLOBE. So that for every occurance of Seg.4 the root node of blobe will be created first and then for seg.5 and Seg.6 BLOBE will be created.
Sachin
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.