Skip to Content
avatar image
Former Member

regarding system variables

what is the use of system variable sy-tabix.

it give no of rows in table r anyother value.

thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    Aug 21, 2007 at 06:36 AM

    Sy-tabix is used to find the current line in the internal table; it’s a current line index.

    Where as if you need the number of rows of table you can use the describe statement

    data N type I.

    describe table itab lines N.

    N - gives thenumber of rows of an internal table.

    Regards

    Gopi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 06:35 AM

    loop at it.

    write: / sy-tabix.

    endloop.

    just check this.

    S@meer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 06:37 AM

    Hi,

    it a table index in the internal table.

    Sy-tabix is used in case of internal table.When u want to enter or retrive data from internal table at that time it is updated.

    Reward points if is useful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 06:35 AM

    when u r looping an table then sy-tabix gives the row number of the current iteration.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 06:37 AM

    Hi

    chk this link

    sytabix

    sy-tabix is mainly used in a loop statement.

    loop at itab.

    hese sy-tabix contains the number of current record that is processing in a loop.

    endloop.

    and used in update stmt. here sy-tabix contains the number of records that r modified

    reward points to all helpful answers

    kiran.M

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2007 at 06:40 AM

    Srini,

    Some additional info:-SYST is the table which has all the system variables in SAP.

    K.Kiran.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 07:17 AM

    hi moorthy

    try this,then you wil come to know wat is tabix........

    REPORT ZTABIX.

    tables : mara.

    types : begin of ty_final,

    matnr type matnr,

    end of ty_final.

    types : tt_final type standard table of ty_final.

    data : wa_final type ty_final,

    itab_final type tt_final.

    select matnr from mara into table itab_final.

    if sy-subrc = 0.

    loop at itab_final into wa_final.

    write: / sy-tabix,

    wa_final-matnr.

    endloop.

    endif.

    reward if useful......!!!!!!!

    cheers

    asha

    Add comment
    10|10000 characters needed characters exceeded