on 01-28-2008 5:12 PM
Hi,
I have a graphical mapping from an IDoc to an XML RecordStructure. The mapping works fine, but the target field is not filled. The last step prior to the target field is a If/Then/Else. The result of the If/Then/Else shows (in the show queue) some green SUPPRESS and one white field with the value I want to have in the target field.
Can anyone help me to remove the SUPPRESS and get the value mapped to the target?
Hi,
If none of above mentioned methods are working well for you, you could simply write a short UDF that would do what you want. The source code would look somewhat like this:
UDF parameter: output string of your if-then-else condition. Pass this parameter as context or queue.
Source:
for (int i=0; i<strInput.length; i++) //strInput is input parameter to function
{
if (!strInput<i>.equals(ResultList.SUPPRESS))
result.addValue(strInput<i>);
}
However, do check that it satisfies your requirement because by using such functions you would alter the structure of context or queue.
Thanks,
Bhavish
Reward points if comments helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you mention the Source Structure and the target structure that you are expecting !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Include a mapwithdefault in between the mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check if SplitByValue[Each value] helps...
I think while splitting it will ignore that suppressed value
Do let us know
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use removeContext API or collapseContext API to remove the supress.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.