on 09-18-2007 9:32 PM
Gurus,
need help on 2 issues i face in graphical mapping. Am doing a idoc to file(txt) scenario which work fine for single item delivery.
a) in case of multiple item delivery, i run into error "Cannot produce target element". I tested this out in debug mode in message mapping with xml file, found that mapping is working for the header & first item, but errors out when the tags are opened for the second itemline. i get "Cannot produce target element /ns0:MT_OBDEL/Item[2]/DELID"
b) the std idoc i use, has a segment which is repetitive. I want to map one of the segment occurance(say for field f1 = 'C') alone and map its value to a field on file. how to do this ?
Hi BRamchan !
a) It seems that your target message structure is not as expected. You should create a dummy structure with occurs = 0..unbounded (for example) that inside contains the structures that could appear multiple times. Then you should map the 0..unbound structure from the source to the 0..ubound of the target...and the 0..1 or 1..1 of the source with the 0..1 or 1..1 of the target... Please send target structure and I will tell you what is wrong.
b) you could use an advanced UDF that receives the complete queue for that field and only outputs the values you care. The advanced UDF could receive a list of values for the f1 source field and then by using a loop you could detect which values you want to keep and then build the output based on this criteria.
Regards,
Matias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BRamchan,
Can u give us the source and sample target structure(not the entire IDOC) . With an example.
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.