Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

current row number in sapmart forms


i am looping an internal table and i want to show the serial numbers against each records, like..


1 abc def

2 abc def

3 abc def

4 abc def

. ... ...

. ... ...

how do i output the S.NO ( which is the current row number of the interanl table ) ?

hope u have comprehended me ??


Former Member
Former Member replied


Take a variable of type I in the global data tab. Then in the CALCULATIONS tab of your TABLE do the following. Chose the OPERATION as CNT(number). Enter the above declared variable in the TARGET FIELD NAME and BEFORE LOOP in the TIME. And tick the INITIALIZATION check box. And print this variable in the position as a normal variable in the layout.

Thanks and Regards,

Bharat Kumar Reddy.V

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question