Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Need Help on Mapping Logic

$
0
0

  Hello,

Try this:

 

1) E1MBXYI


Execution type: all values of a context

Input: var1

 

String initial = "";

for(int i=0;i<var1.length;i++)

{

if(!var1[i].equals(initial))

{

result.addValue(var1[i]);

initial = var1[i];

}

}

 

I am assuming that u will get sorted values, if not then use sort function also.

 

Mapping:

 

Ur main logic (i.e. till format by example) - UDF - E1MBXYI


2) ZXYZSEG


Mapping:

 

Ur main logic (i.e. till format by example) - SplitByValue(each value) - ZXYZSEG

 

Note - I have just provided u the hint for the segments, but for field mapping u have to play around with the context. In addition to that, test above UDF with lot of combinations because i haven't tested ur mapping condition

 

 

Thanks

Amit Srivastava



 

Message was edited by: Amit Srivastava


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>