For Loop with Field Symbol

Another good thing with FOR loop. Earlier it was possible to use a data (LS_SPFLI) to iterate over the internal table but now it is possible to even use a field symbol <FS_SPFLI> to iterate.

Here this how it works-

Interesting thing is that- after FOR LOOP is over, the line LS_SPFLI still in memory and holds the last iteration data/values but with field symbol it is un-assigned once the iteration is over.

Here is another look-

Also we can change particular column values in the target adding the BASE addition- specifying the column names and values

The details-


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s