cancel
Showing results for 
Search instead for 
Did you mean: 

Count of total segments in a EDI

Former Member
0 Kudos

Hi,

We are developing a IDOC to EDI scenario in our project. We have a requirement to count the total numbers of segments in the ouput EDI file and place this count value in a field in the EDI trailer(UNT) segment.

The total number of segments in the output EDI is not constant. There is mapping logic for each segment. Each segment gets created based on a condition and few segments can occur multiple times also depending on certain input field value.

Can anyone please suggest how this can be handled in mapping.

Regards

Jagruthi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member472138
Active Contributor
0 Kudos

Hi Jagruthi,

You can acheive this with an UDF well.

Regards

Pothana

Former Member
0 Kudos

Hi all,

Count value has come automatically in the output EDI. We have not done anything in PI mapping.