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

What is an internal table?

963


What is the use of the raising exception?

785


Can a transparent table exist in data dictionary but not in the database physically? : abap data dictionary

905


What is append structure?

777


Define abap/4 layer? : abap data dictionary

806


How many tables are there in sap?

865


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary

945


Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

1824


Explain Singleton class

1065


What is a development class? : abap data dictionary

955


What is “call mode”?

795


What does the extract statement do in extract datasets? : abap modularization

831


data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.

2113


How do you find the tables to report from when the user just tell you the transaction he uses? And all the underlying data is from SAP structures?

996


hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me

2013