title: Syntax error "Field "L_TABDEF–TLTYPE" is unknown" in Smart Form
body: <p>I have defined local variables in a program line in SMARTFORMS but it seems that even it is locally declared within the program line node, it does not see the variables.</p>
  
  <p>Error shown below.</p>
  
  <blockquote>
    <p>Field "L_TABDEF–TLTYPE" is unknown. It is neither in one of the
    specified tables nor defined by a "DATA" statement. "DATA" state</p>
  </blockquote>
  
  <pre><code>FIELD-SYMBOLS: &lt;f_tab&gt; TYPE tsftabdef.
  
  DATA: l_tabdef  TYPE  ssftabdef ,    " Work Area for the Table
        t_ltypes  TYPE tsfltype   ,   " Table – Line types
        l_ltypes  TYPE ssfltype   ,     " Work Area for the table
        t_colinfo TYPE tsfcolinfo ,    " Table – Columns
        l_colinfo TYPE ssfcolinfo ,   " Work area for the table
        t_border  TYPE tsfctaba   ,  " Tables – Borders
        l_border  TYPE ssfctaba   .   " Work Area for the border
  
  ASSIGN ('(SAPLSTXBC)TABDEFS') TO &lt;f_tab&gt;.
  
  * Table definition table
  LOOP AT &lt;f_tab&gt; INTO l_tabdef.
    LOOP AT l_tabdef–tltype INTO l_ltypes WHERE linetype = 'LINE'.
      LOOP AT l_ltypes–tcolinfo INTO l_colinfo.
        LOOP AT l_colinfo-borders INTO l_border.
          CLEAR l_border-intensity.
          l_border-fillcolor-red = '255'.
          l_border-fillcolor-green = '000'.
          l_border-fillcolor-blue = '000'.
          l_border-fillcolor-used = 'X'.
  
          l_border-cfillcolor-color  = 'X'.
          l_border-cfillcolor-xred = 'FF'.
          l_border-cfillcolor-xgreen = '00'.
          l_border-cfillcolor-xblue = '00'.
  
          MODIFY l_colinfo-borders FROM l_border.
        ENDLOOP.
        MODIFY l_ltypes-tcolinfo FROM l_colinfo.
      ENDLOOP.
      MODIFY l_tabdef-tltype FROM l_ltypes.
    ENDLOOP.
    MODIFY &lt;f_tab&gt; FROM l_tabdef.
  ENDLOOP.
  </code></pre>
  
  <p>What am I missing here?</p>