cancel
Showing results for 
Search instead for 
Did you mean: 

How count number of item records in a File: Idoc to File scenario

Former Member
0 Kudos

Hi All,

I am configuring an IDOC to File scenario.

Once all the IDOC data is dumped on a File, I need to calculate the number of Item records in this file and write this number at the end of the trailer record in the file.

Is theer a way to calculate the item data records(or say number of lines in the file) in the message mapping area. Or any other simple way to do it.

Appreciate your help on same.

Thanks

Shirin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

Use the count function for ITEM node the assign this count value to the receiver field , keep the ITEM context to header!

Thanks,

Vijaya.

Answers (1)

Answers (1)

Former Member
0 Kudos

use count function from Statistic group

Item(set context to root)->count-->target field in trailer