2007 Mar 26 8:43 PM
HI,
How to find current number of record in internal table which is being processed.
Srini.
2007 Mar 26 8:44 PM
HI,
How to find current number of record in internal table which is being processed.
Srini.
2007 Mar 26 8:44 PM
2007 Mar 26 8:47 PM
Hi Srinu,
Welcome to SDN...
The system field <b>SY-TABIX</b> will give the current number of record in an internal table.
If the internal table is iterated through LOOP...ENDLOOP then for each iteration the SY-TABIX will be incremented by one.
If the internal table is iterated through LOOP...ENDLOOP WHERE <COND> then for each iteration the SY-TABIX will hold the condition met record number.
READ TABLE ITAB WITH KEY F1=<VAL> . The SY-TABIX will hold the record number of success record.
Thanks,
Vinay
2007 Mar 26 8:53 PM
Hi,
If it is Loop...Endloop, then SY-TABIX will have the current row/index of the internal table.
If it is inside a Do...Enddo, or While...Endwhile, then SY-INDEX will have the current iteration number.
Regards,
Subramanian
2007 Mar 26 9:10 PM
Hi srinu ,
By using system field SY-TABIX you can find the current row number.....
Reward points if helpful.
Regards,
MD<b></b>
2007 Mar 26 9:16 PM
> Hi srinu ,
>
> By using system field SY-TABIX you can find the
> current row number.....
>
> Reward points if helpful.
>
> Regards,
> MD<b></b>
MD/Srinu
It looks like you missed the very basics of cheating 101..
Better luck next time..
~Suresh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |