cancel
Showing results for 
Search instead for 
Did you mean: 

serial numbers in smartform

Former Member
0 Kudos

Hi.

I've created a smartform and I've displayed a table in

main window.

Now in that table I want to display serial no. as 1st column.

For that, I've taken a system field 'count'. But in the output

i'm getting '1' for all rows.

please help me to solve this issue.

Thanks & Regards

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

Just use the sy-tabix(number of line item of table ) in first coloumn of the table display instead system field 'count'. This system field field count is the number of copies.

Regards,

Raju.

Answers (6)

Answers (6)

0 Kudos

sir will you share the process of adding it in smart form

former_member763929
Participant
0 Kudos

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.

Please note, that your post here won't be answered.

Former Member
0 Kudos

Hi,

Do the counter related thing like count = count + 1 ( initialized with 0 ) when you are populating the internal table in your the driver program & pass it in your function module calling the form.

Regards,

Brajesh

Former Member
0 Kudos

Hi..

use one local integer say count...

Set its value to 0...

write a code line inside loop i.e.

count = count + 1.

For each iteration of loop .....

count will get generated...

assign this text value to your row number text...

..Regards

..Ashish

Former Member
0 Kudos

Hi,

Create a variable in global definitions...

under the table node... create program lines node

add 1 to <variable>

display the variable in text element of the first column

&<variable name>(C)&

regards

padma

Former Member
0 Kudos

Hi,

Declare cnt type i value 0 in global definitions

Inside the loop,

create program line

Input parameter cnt

Output parameter cnt

code

cnt = cnt + 1

Create text element drag and drop the cnt.

Regards,

Raj.

Former Member
0 Kudos

Hi rajesh,

In global defintions declare variable sno

In your table Create program lines..

SNO = SNO + 1.

In text node drag & drop the variable sno.

Regards,

Sravanthi