cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-incrementing index column

Former Member
0 Kudos

Hello,

I'm new to sap interactive forms and have a problem.

I have a form that contains data from EKKO and EKPO. I also need a column which would indicate the number of the item. I can't use the item number from the EKPO table cause that can go 1,2,3,5,8,15, ... When items get deleted (deletion flag set).

I need a way to add a column and have it display and auto increment for each row that the form generates from the EKPO-EKKO data.

Thanks upfront

Accepted Solutions (0)

Answers (3)

Answers (3)

OttoGold
Active Contributor
0 Kudos

Hello, did you get your answer and solve the problem? If so, please close the thread and share your solution and experience with us so the other members of the community benefits from that too. Otto

OttoGold
Active Contributor
0 Kudos

Why don´t you put these numbers in your backend programming? Use some SY-LINNO in ABAP programming. Otto

Former Member
0 Kudos

Hi,

I am assuming that Hierarchy in the form is like this:

Table

Data

Index_Col

In this case, you can write the following JavaScript in the Formready event of Data subform:

Table.data.index_col.rawvalue = this.index + 1;

Hope this helps,

Amit