on 11-08-2011 10:03 AM
Hi
Pls guide though the following issue in Message Mapping
I do have a segment of 0...n. where the target element is manipulated based on the three fields in source segment.
<Source>
Parent Segment (1..1)
Segment (0...n)
Field_1 = 23k
Field_2 = 01
Field_3 = (either 'X' or No field in IDOC segment)
<Target>
Segment (1...1)
t_Field = ( if ( ( Field_1 = '23K') & (Field_2 = '01')) then assign Field_3 )
How can i check or handle this Field_3 issue when its not present in IDOC segment?
Note: I am using UDF, and getting errors while retrieving Field_3 data when the field itself is not present in segment inside loop statement.
Thanks,
Vinod V
Hi,
On your field_3, before your UdF, use a mapWithDefault with default value "FieldDoesNotExist" for instance.
And then in your UdF, use this same value to do your test.
regards.
Mickael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Mickael for the reply,
I have tried the same, and its working fine with the Display Queue. But giving following error while performing the Transformation Test.
I found that in loop Field_3 returns value at first index only. It does not increment.
Field_3's context is set to Parent Context.
Please help with inputs.
regards,
Vinod V
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.