2008 Feb 25 12:24 PM
Hi
Is there any alternative to using string data type in case we need to display more than
255 characters?
Thanks
Hi
Is there any alternative to using string data type in case we need to display more than
255 characters?
Thanks
2008 Feb 25 12:28 PM
YOu can declare variables with char
data v_char(400) type char.
2008 Feb 25 12:35 PM
1) make use of LCHR to store the long text in the table, it will allow up to 32000 chars.
OR
2) You need to create a table have a filed longer than 512 char, so you should use a field with a domain with type LRAW or LCHR (it can be longer than 512 char):
see the data element PC03_DSATZ for example.
When you create your table, before this field you have to insert a field type INT4 where you'll indicate the lenght of your text.
So your table should be:
MANDT key
NAME (Text Name) key
ZLENG (Type INT4)
TEXT (type LCHR)
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |