on 06-21-2016 5:43 AM
Hi All,
If else condition is used for a target field at line item level, Condition checks a field at header level in source structure based on that a constant value is mapped to target.
For single line item the logic works but for multiple line items the target field is not getting populated.
I tried the node functions, remove context, split by value by nothing works.
Also tried using fixed value mapping but same issue exist.
Please suggest
Thanks
vinoth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Following my suggestion,
go to the EDIFACT segment that you use for creation of the E1EDP01 in the IDoc (my guess it is G_SSG5 (LIN).
use the UNB value as the first parameter to the useOnAsMany() (in the node functions methods) then use the G_SSG5 as the second and third inputs...from there add your existing rule.
In this way the rule will be checked for each line using the UNB single value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try and use the useOneAsMany() method in order to duplicate the header value to match the amount of item level values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth,
The if Else in message mapping needs to have equal number of items for the if, then and else statements to function correctly.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth,
Simple question - at the target side have you mapped constant to parent node or child node
If your target structure is -
<header>
<item/>
</header>
and you have mapped constant to item, then do map it to header too.
If header is not mapped to something the whole structure will not populate.. For better understanding pls post screenshots as your reqmt is bit unclear.
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth,
Once try with change context for the source field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.