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: 

Create a itab with INITIAL SIZE with a var

Former Member
0 Kudos

I need to create a itab, but i have a problem.

I have a var type n with a literal in it ( '20' fox example)

Why can't I create it like this?

DATA: VAR type n.

n = '20'.

DATA: G_T_TABLE type standart table of PERNR INITIAL SIZE n.

I need you guys.

Hope you could.

See you

2 REPLIES 2

Former Member
0 Kudos

Hi,

try this:

constants: VAR type i value 20.

DATA: G_T_TABLE type table of PERNR INITIAL SIZE var.

or this:

DATA: G_T_TABLE type table of PERNR INITIAL SIZE 20.

you cannot use with it with a variable like this:

DATA: var type n.

Regards, Dieter

Former Member
0 Kudos

hi

good

VAR itself is a standard data type ,so you cant declare a varibale with the standard data type as the name.

thanks

mrutyun^