cancel
Showing results for 
Search instead for 
Did you mean: 

Declare Internal table in smart forms

Former Member
0 Kudos

Hi All,

I am declaring Internal table in Global Definition' TYPE tab:

TYPES: BEGIN OF Ty_EKBE,

MANDT TYPE EKBE-MANDT,

EBELN TYPE EKBE-EBELN,

EBELP TYPE EKBE-EBELP,

BWART TYPE EKBE-BWART,

BUDAT TYPE EKBE-BUDAT,

MENGE TYPE EKBE-MENGE,

BPMNG TYPE EKBE-BPMNG,

DMBTR TYPE EKBE-DMBTR,

WRBTR TYPE EKBE-WRBTR,

MATNR TYPE EKBE-MATNR,

WERKS TYPE EKBE-WERKS,

KNUMV TYPE EKBE-KNUMV,

MWSKZ TYPE EKBE-MWSKZ,

END OF TY_EKBE.

types: c_ekbe type standard table of ty_ekbe," initial size 0,

w_ekbe type standard table of ty_ekbe.

and write select Query in one of the window' Program line

select * from ekbe into corresponding fields of t_ekbe

where ebeln = w_ekpo-ebeln

and ebelp = w_ekpo-ebelp.

and trying to activeta the form but it will give the error to me:

""T_EKBE" is neither specified under "TABLES" nor is it defined as an internal table."

Pleaze help me how can i declare internal table in Smartform? thet i can get data of table EKBE.

thanx,

Jahnavee

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi..

Declare the TYPE in Global Definitions ->Types.

Declare the internal Table and Work Area in Global Definitions ->Global Data using the declared types.

Regards,

Karthik

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

Instead of maintaining the types use one structure (Zstructure )of the same structure with the types

That is i shelapful when your going to pass the the same structure as form attributes (this will be helpful to avoid the same structure in the form itself )

Let me know if you have any concerns.....

Regards,

Lokesh.

Former Member
0 Kudos

Hi Lokeswara

iam also facing same problem

i have declared Structure and

i have created a internal table in form interface like below

<Internal Table > type <Structure name>

it is giving error

former_member194416
Contributor
0 Kudos

Hi,

There is an input output values screen in your code section in smartforms.You need to put your variable name (table, structure, parameter ) to this intput output values table .

Regards.

Edited by: Gungor Ozcelebi on Jul 1, 2010 2:40 PM

Former Member
0 Kudos

HI,

Declare the internal tbale and the work area in the Global Data Tab of Global Definitions.

Regards,

Runal