on 04-20-2009 2:05 PM
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
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]);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dont know, but for one of my UDF, SUPRESS played major role;
I had similar problem
I did
IF<condition>;
then create node/value
else.
SUPRESS.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do This..
Flag--------------------\
Constant(X)------------->equalS-------->CreateIf------------->ouputnode
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
CreateIF() node function should be fine for this requrement.
Refer to this link:
http://help.sap.com/saphelp_erp2004/helpdata/EN/d9/3033f96c79674f90e3ab8d101a595b/frameset.htm
Yo ucan find many links related to this function.
Regards,
Divyesh
Hello,
Try to maintain the same context of source fields. that can solve your problem. You have to play with context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.