cancel
Showing results for 
Search instead for 
Did you mean: 

Reset counter in message mapping

Former Member
0 Kudos

Hi,

I'm creating several UNH segments from one IDOC and need to reset a counter, used in a subsegment, for each UNH.

I am using the standard *counter function. Is it possible to reset that counter or do I have to create an own counter? In that case can anyone please help me with that?

Thank you!

/Sten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Index function in statistic categery will help you for this.

Thanks,

RamuV

Answers (3)

Answers (3)

former_member303666
Active Participant
0 Kudos

Hi Team, Can you provide us the UDF for reset a counter values.

Have to pass 123 to first line item

Again reset the sequence and

Pass 123 to second line item

Regards, Kesava

Former Member
0 Kudos

Hi Sten,

You can use UDF. You can't reset a counter value in standard function.

Regards,

Vivek LR

Former Member
0 Kudos

HI,

there is a global variable concept in XI which u can use for your Sequence Number concept. And can be reset with the use of UDFs. I doubt if you can reset the Counter API

If you are on SP14 and above, just take a lookat this blog and the GLOBAL Variables Section

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

Thanks

Swarup