cancel
Showing results for 
Search instead for 
Did you mean: 

Seeburger mapping: Count number of segments

Former Member
0 Kudos

Hello,

For one of our process maps (idoc INVOIC01), we have a case where we have a variable number of E1EDP05 segments, of which I need to use the first and the last.

Finding the first can easily be done with a counter, but what about the last one?

I'm looking for a function which can determine the number of E1EDP05 segments before the system starts running through them, so when my counter = the number of E1EDP05 segments I know I'm at the last one.

Any ideas?

Thanks,

Nicolas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nicholas,

You can use this:

count (E1EDP05 having context at root level ) to get the number of E1EDP05 segments in the Idoc.

Use this value as an input to the UDF which you are creating and process accordinly.

Regards,

Souvik

Former Member
0 Kudos

hi,

the count() function does not exist in the mapping designer...

Former Member
0 Kudos

Hi Nicolas.

Is an inbound or Outbound ( IDoc to SeeburgerMap)?

What do you mean with counter no exits? in Message Mapping or Seeburger Mapping Designer.

Answers (0)