on 05-22-2013 7:11 AM
Dear Experts,
I have a scenario like IDOC --> FIles (header file & Itemfile) , mult-mapping (1:2).
Now , if one of the target files failed, other file should also be failed on mapping . It should be created any record.
Example : if header file getting error, item file only created then user getting confusing.
Please let me know , how to handle this situation.
Deva
could you brielfy explain the issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deva,
You can solve this by using EOIO (Maintain Order at runtime checked) in the Interface determination. Place header interface first and then Item interface.
If header fails, Item will not go.
Hope it helps!
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deva,
if the mapping fails no files gonna be written -> ur requirement is fullfilled.
If messages fail at adapter level, they are under circumstances partly written (only header or only items or what ever).
Do you use content conversion? If not, if you just write xml files the risc should be nearly zero. If yes, build up your data type fields with occurences of 1 -> so no optional fields (0-1). This should guarantee always a certain target data type structure and avoid any conversion errors. Instead the errors would come up in mapping time what is actually the aim.
/Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Udo,
Yes, i am using content conversion.
Here, i am having two message mappings , one for header mapping file, second for lineitem file.
That means two mappings , two target files will be generated.
Question: If any one of the mapping failed ( file1 or file2) then i don't want to generate any target file.
Deva
Hi Deva,
Actually i dint get your message flow, may be you missed to describe it clearly. Earlier you wrote:
I have a scenario like IDOC --> FIles (header file & Itemfile) , mult-mapping (1:2).
And later you wrote:
i am having two message mappings , one for header mapping file, second for lineitem file.
That s an important difference. Multimapping would make header and item dependent, 2 mappings with target occurence = 1 would not.
So would you please explain what is right?
/Udo
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
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.