I have a structure in ABAP :
id werks name1
My query is :
SELECT werks name1
INTO TABLE lt_store
FROM t001w
WHERE vlfkz EQ 'A'.
It is possible to add a field id that contains a incrementable value for example :
id werks name1
-----------------------
1 R0001 test
2 ERT3 test2 .....
and to do some SELECT like that
SELECT (value) werks name FROM...
My solution is to do a loop on lt_store
and add value manually but I think it was optimize if we do that directly into the query.