cancel
Showing results for 
Search instead for 
Did you mean: 

How to increment value of Segment Attribute value in Target IDoc

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Frnds,

I am working on one IDoc scenario, my client has specific requirement, I want to increment Segment attribute value in every node. How can I achieve this, I tried using counter, index functions but no luck.

Thanks,

Raj

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member200962
Active Contributor
0 Kudos

Index Function should work....is the input to the Index function incrementing (even UDF will demand the same)....also check if you have maintained the properties of the Index function properly.

Regards,

Abhishek.

Former Member
0 Kudos

Hi,

You will have to write a UDF for this keeping a global container variable as a counter.

Regards,

Merrilly

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Try this.

1. Declare an INT variable in the Java Section i.e. Global Variable.

2. Write a UDF to read the INT value and return it, also increment and store the value.

Use this UDF in to map the segment.

~SaNv...