cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping - Number of records

Former Member
0 Kudos

Hi,

My Flow is PC -> XI 3.0 -> R/3.

Inside the mapping, I want to know the <b>number of inbound records</b> in order to specify this figure inside an outbound field.

I haven't found a solution with graphical function and I try to create a JAVA user-function... but I'm an ex-abaper not a Javaman (not yet!)...

Anybody have a solution?

Regards

Mickael.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have done a similar computation using the "statistic function" count.

The requirement was to write the number of records in the inbound structure to a field in the target structure.

the syntax is:

<node of the inbound structure> --> COUNT --> target field

Anand

Former Member
0 Kudos

It's ok.

Thanks.

Else, I was also created a litle Java function (Advanced one) with:

Source code:

result.addValue( Integer.toString (a.length) );

Mapping:

<node of the inbound structure> --> My function --> target field

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think you will need to use BPM for this to accumulate the inbound messages and produce one outbound message.

Hope ths points you in the right direction.

Cheers

Colin.