11-09-2007 10:24 AM
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
11-09-2007 10:36 AM
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
11-09-2007 11:04 AM
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^