cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Mapping errorhandling

deva_gembali2
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

could you brielfy explain the issue

ambrish_mishra
Active Contributor
0 Kudos

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

udo_martens
Active Contributor
0 Kudos

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

deva_gembali2
Participant
0 Kudos

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

udo_martens
Active Contributor
0 Kudos

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