loop 5 times.
sy-tabix,sy-index.
endloop.
what is the output?

Answer Posted / raghuveer

By looping 5 times(if the internal table has 5 records),
sy-tabix will be 5 and sy-index = 0.

sy-index will work only in do and while loops, where as
sy-tabix will work only in loop..endloop and also sy-tabix
will be changed if we append the records into the internal
table using append statement.

If I m wrong, plz let me know

Is This Answer Correct ?    54 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello All, Requesting to all user of this site. Please post your Questions in Proper sub Category of chosen category. Some users post the questions in common category whether sub category for that is available ..like some users still post the SAP Script & ALE Related questions in common ABAP Category. Due to this it becomes very difficult to find the topic wise Questions. Please cooperate with the site & to other users. Thanks & Regards Tamseel

1791


What is the differrences between structure and table in data dictionary in abap? : abap hr

944


What are the personnel administration related infotypes? : abap hr

821


Can we display a list in a pop-up screen other than full-size stacked list?

905


What are the aggregate objects in the data dictionary? : abap data dictionary

1305


How did you transfer legacy data in the mid of the financial year (us) to the sap system? : sap abap hr

755


What are the steps in creating screen ?

1748


Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?

801


Use SET PF_STATUS which is in the FM reuse_alv_grid_display to set the button

2035


What are the different types of sapscript symbols?

816


Which database object is used for storing the system variables? : abap data dictionary

1111


What is the difference between table and template?

801


If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?

1598


Difference between stand alone CRM and back-end CRM

4011


What are conversion routines? : abap data dictionary

799