Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Table problem in Smartforms

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

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

Regards

Shiva

2 REPLIES 2

Former Member
0 Kudos

Hi,

You can use this directly in the Global Data ,

ZCOMPANY TYPE Zcompanyinfo

Regards

Sudheer

Former Member
0 Kudos

Hi,

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

Regards

Shiva