cancel
Showing results for 
Search instead for 
Did you mean: 

simple mapping issue

former_member440449
Participant
0 Kudos

Hi Gurus,

I have a simple interface multiple IDOCs to FILE, and I'm having an error in the mapping.

source structure is next:

IDOC (0..n)

>struct1(1..1)

>>struct2(0..4)

>>>field1(0..1)

>>>field2(0..1)

target structure is next:

PAYMENT(0..n)

>targetField(1..1)

Logic is like this: for each IDOC, a PAYMENT must be created (no issue with this).

for the targetField, I have to take care of a condition:

if field1 = 'value' then map field2.

Mapping is as simple as that.

What I did is an if condition for that logic, and in the field1 and field2 I'm using the struct1 context, which is ok.

But the issue is generated when condition is true, and field2 is SUPRESS.

I tried everything (I use the createif, the exists) but I was not able to find a way where the mapping test didn't give me an exception for that case.

Any idea on what I can change to do a correct mapping test?

Thanks in advanced!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

use mapwithDefault node function (after output) and check it out..

HTH

Rajesh

former_member440449
Participant
0 Kudos

thanks Rajesh

issue solved

Answers (0)