cancel
Showing results for 
Search instead for 
Did you mean: 

Remove SUPPRESS from Result???

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Jitendra_Jeswan
Contributor
0 Kudos

Can you mention the Source Structure and the target structure that you are expecting !!

former_member192892
Active Contributor
0 Kudos

Include a mapwithdefault in between the mapping.

Former Member
0 Kudos

Check if SplitByValue[Each value] helps...

I think while splitting it will ignore that suppressed value

Do let us know

Former Member
0 Kudos

Hi,

Use removeContext API or collapseContext API to remove the supress.

Thanks

Swarup