Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

field symbol with table field

Hi !

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 !

Former Member

It looks like, all your ASSIGN statments are right.

Put break point after the assign statment, check the content of your original field and field-symbol. You will some better idea, what is going wrong.


Naimesh Patel

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question