on 02-01-2011 5:04 PM
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!
Hi,
use mapwithDefault node function (after output) and check it out..
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.