cancel
Showing results for 
Search instead for 
Did you mean: 

Increment a field on every interface run

Former Member
0 Kudos

Hi All,

It seems like a simple requirement but im wonderign where and how to begin...

I have field Sno that has to be incremented by 1 every time the interface is executed...

ne idea on this?

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I have field Sno that has to be incremented by 1 every time the interface is executed...

Can this be handled on the sender side? I mean since they are the one executing the interface

Otherwise, if this is to be done in PI, easiest would be:

1. Create a table in SE16

2. Code a function module to retrieve and update the value of the table

3. Use RFC LookUp in your mapping to call the function module see blog below for sample code

Let us wait for the suggestion of others.

Hope this helps,

Mark