cancel
Showing results for 
Search instead for 
Did you mean: 

Help required on Counter function

manikandan_shanmugam3
Active Participant
0 Kudos

Hi All,

Scenario: File to IDoc(Multiple)

We have multiple header and its line item in File and need to create a sperate IDoc for each Header and its line item.

We have a field "ITEM_Counter" in a XYZ segment and need to increment 1 for each time the XYZ segment repeates in an IDOc.

I have used standard counter function to increament 1 and its working fine, but i am facing problem that mapping creates 3 IDoc and in each IDoc segment XYZ repeates 4 times, I am expecting counter output should be 1,2,3,4 for IDoc 1 and 1,2,3,4 for IDoc 2 and so on, but PI Creates ,1,2,3,4 for IDoc 1 and 5,6,7,8 for IDoc 2 and so on instead..

Note:

I have exported IDoc and Created XSD to populate multiple IDocs

We are using PI7.31 SP 06

Regards,

Mani

Accepted Solutions (1)

Accepted Solutions (1)

ambrish_mishra
Active Contributor
0 Kudos

Hi Mani,

Instead of counter, use index function:

Hope it resolves your issue.

Ambrish

manikandan_shanmugam3
Active Participant
0 Kudos

Hi Ambrish,

Yes it is, thanks alot.

Regards,

mani

Answers (0)