cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to file: Increase sequence number for each item in a segment

Former Member
0 Kudos

Dear All,

I am having one scenario IDOC to file, where one IDoc with multiple items for an header in it will be sent.

In Destination structure, for each iitem segment I am creating multiple rows. I have a field(INC_NUM) in target structure where in I have to start line number from 1 for each item.

Also I have a condition - for item x or y I should only have the same line number.

TinAdvance

Swarna.

Edited by: Swarna on Oct 24, 2011 8:15 AM

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You can use the statistic function called index for your requirement. Can you give sample input/output so that we can visualize further?

Hope this helps,

Mark

Answers (2)

Answers (2)

Former Member
0 Kudos

solved

Former Member
0 Kudos

map segment -


>index (statisstic function) -


> field(INC_NUM).

set index value to ="do no reset index to initial value."