Incrementing an integer inside loop in an ABAP program

You need to use the following:

You are missing spaces between ls_id+1. You can also use Add 1 to ls_id

In case you are using internal tables, you can directly use SY-TABIX and SY-Index depending upon whether the loop is nested or not.