09-20-2007 7:01 AM
09-20-2007 7:05 AM
You cannot have a string with a particular size, but you can use the char data type
data: test(60).
or
data: test(60) type char.
09-20-2007 7:11 AM
declare the string as
Data: var type string .
there is no size for string ..
use char for specified no of char
09-20-2007 7:17 AM
Hi Pandu,
Field String resmbles the Structures that you write in C.
for eg. DATA : f1(20) type c,
Look at the following code which illustrates field string:
The MOVE Statement Treats a Field String Name without a Component Name like a Variable of Type C
report zfields.
data: fs(4) value 'ABCD',
begin of str,
c1(1),
c2(2),
c3(1),
end of str.
str = fs. "str will hold char 4 variable
write: / str, "writes ABCD all together
/ str-c1, str-c2, str-c3. "writes A BC D with gaps