Skip to Content

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

Internal table defined in page attributes for a page not being recognized

Hi

I have a internal table ( t_customer ) that I define in page attributes of a page . My objective is to populate this table in the onInitialization event by selecting from kna1 and then in layout - of the page - populate rows of the table by reading from t_customer into html rows ( tr )

In page attributes of the page , I define

t_customer type kna1 ( Auto check box is not checked ).

In Event OnInitialization in Event handler tab :

i have :

**********************************************************************************

  • Select list of customers

select *

from kna1 into CORRESPONDING FIELDS OF TABLE

t_customer

where ktokd = '0001'. " Only Sold-tos

************************************************************************************

I am getting a syntax error t_customer is not an internal table , occurs n is missing . I also get a syntax error related to layout section - indicating that it does not recognize t_customer ( when looping through it )

Are attributes like interface tables defined in page attributes not visible in Events and layout section.

Where am I going wrong ?

Helpful Answer

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