Skip to Content
avatar image
Former Member

serial numbers in smartform

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Sep 02, 2008 at 10:57 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 10:59 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 11:04 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 11:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 11:57 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 02:46 PM

    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

    Add comment
    10|10000 characters needed characters exceeded