Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can someone please explain how peek function is working in the following example.
Unable to understand how peek function works in an internal table.
Thanks in advance.
In your example the number for the peek field represents the 2nd parameter that was used.
The number is 0-based--the first record (Record 1) is 0. So,
0 is the first record in the table.
1 is the second..
2 is the third..
and so on.
For the first record, there were no records, so all fields are null.
For the second record, there was one record, so Peek(...,0) is the first record.
Etc.
I hope this helps.