Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg SUPRESS in message mapping

Hi Guys,

i have a requirement to map the items from source based on a condition(if flag = X).if the condition is true then need to create item segment in target else donot create segment.

here iam facing a problem with SUPRESS.

if the first item is false and the second item is true and third is false and fourth is true....then, iam getting the SUPRESS for false values and not able to create the segment even for true values.

how to remove the supress... suggest me.....this is an tough requirement for me.

Thanks,

M.S

Former Member
replied

Assume if Queue have

123

234

SUPPRESS

233

SUPPRESS

100

345

SUPPRESS

Your target should have

123

234

233

100

345

If so

Please follow

Function myudf(String a[], ResultList result, Container container)

{

for(int k =0 ; k< a.length; k++)

{

if (!a[k].equalsIgnoreCase(ResultList.SUPPRESS))

result.addValues(a[k]);

}

}

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question