Internal Table problem in Smartforms
I want to use my structure in smartforms.
Global Definitions - Types
types: begin of mytype. include structure Zcompanyinfo. types: end of mytype, myint type table of mytype.
This my type. After that I am defining a Global Data variable
ZCOMPANY TYPE MYINT
When I want to display my internal table (ZCOMPANY) fields like (&ZCOMPANY-NAME1&) I give this error
"ZCOMPANY" is a table without a header line and therefore has no component called "NAME1".
But I have this field. How can I fix it?
Your ITAb is without header line. Declare one global work area and read the itab into wa
then display &wa_company-var&
this will work