cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical Mapping - Get Element Value from Previous Node

Former Member
0 Kudos

Hi all,

In my IDOC-File scenario, the source IDOC COSMAS structure can have many segments E1CSKSM. One of the elements in this segment is BUKRS. I need to get all the company codes in all source segments in an element in the target structure.

For example:

Source: Target:

E1CSKSM Row

BUKRS = "A01" BUKRS = "A01"

AllBUKRS = "A01"

E1CSKSM Row

BUKRS = "A02" BUKRS = "A02"

AllBUKRS = "A01A02"

E1CSKSM Row

BUKRS = "A03" BUKRS = "A03"

AllBUKRS = "A01A02A03"

How can I get this?

Thanks for your help,

Elaine

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rodrigo,

Thanks so much for this. It works well.

My UDF has type of 'All Values of Queue':

String a="";

for(int i=0; i <= bukrsArr.length - 1; i++)

{

if(!(bukrsArr<i>.equals(ResultList.CC)))

{

a = a + bukrsArr<i>;

}

}

resultList.addValue(a);

Regards,

Elaine

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

use a udf. context=all values of the queue.

UDF

 
String a="";

for(int i=0;i<=bukrsArr.size();i++){
    if(!(bukrsArr<i>.CC)){
        a=a+bukrsArr<i>;
}
resultList.addValue(a);