‎2007 Dec 28 2:44 PM
Hello Friends,
Is it possible to create a structure with one of the field of type STRING ?
and later on can we use that structure for the Table ?
Thanks for your time.
‎2007 Dec 28 3:24 PM
Hi,
Use Data Element ALVSTLI or ALPFSTRING to create a field of type STRING in the structure - In case you want to create a structure in the Data dictionary.
For creating a Structure in a program.
Use:
TYPES:
begin of ty_struc,
field1 type string,
field2 type c,
field3 type i,
End of ty_struc.
data: itab type table of ty_struc.
data: wa type ty_struc.
Cheers!!!
Lokesh
Edited by: Lokesh Aggarwal on Dec 28, 2007 3:31 PM
‎2007 Dec 28 2:47 PM
Hi
you can use field type
field like tline-tdline.
Reward if helpful
vivekanand
‎2008 Jan 01 11:06 AM
Hi
you can use field type
field like tline-tdline.
Reward if helpful
vivekanand
‎2007 Dec 28 3:24 PM
Hi,
Use Data Element ALVSTLI or ALPFSTRING to create a field of type STRING in the structure - In case you want to create a structure in the Data dictionary.
For creating a Structure in a program.
Use:
TYPES:
begin of ty_struc,
field1 type string,
field2 type c,
field3 type i,
End of ty_struc.
data: itab type table of ty_struc.
data: wa type ty_struc.
Cheers!!!
Lokesh
Edited by: Lokesh Aggarwal on Dec 28, 2007 3:31 PM
‎2007 Dec 28 3:30 PM
‎2007 Dec 28 3:33 PM
‎2007 Dec 28 7:35 PM
Thanks all for your valuable response.
The one solution which worked for me is ALPFSTRING .