field symbol with table field
here is my problem :
I have a table define like this :
matnr XXXX01 YYYY01 ZZZZ01 XXXX02 YYYY02 ZZZZ02 XXXX03 YYYY03 ZZZZ03 ... up to 12
when i read the header, i want to select the first field that is empty (for exemple XXXX02) and see if the next one (XXXX03) is filled. IF the next one is not filled i want to take the next until i found one that is filled. for exemple XXXX05 and then put the value in the first one (XXXX02).
So my probleme is that i don't know what is the name of the field. I tried something with the field symbol but i don't know how it work.
I'd like to wrote something like that :
IF itab-<fs> IS INITIAL.
<fs> would be the concatenation of XXXX and a counter (01,02,03...).
Thanks for you help !