cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to generate sequential number

former_member210091
Participant
0 Kudos

Hey All,

I am working with INVOIC01 IDOC and need some help in mapping.

My structure will contain multiple E1EDP05 under E1EDP01

E1EDP01

E1EDP05

E1EDP05

E1EDP01

E1EDP05

E1EDP05

E1EDP05

E1EDP05

On the receiver side, I need to generate sequential number like below:

The UDF I have written is below but it doesn't seem to work:

Can some please help me with the correct UDF

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member210091
Participant
0 Kudos

Never Mind. I fixed it.

Instead of defining "i" in the Advanced UDF, I defined it as Global variable and then updated my code to below:

Thanks