Professional Documents
Culture Documents
CD351
Advanced
ABAP Programming
Contributing Speakers
Ralph Benzinger
Developer, SAP
Thomas Jung
Product Manager, SAP
Bjrn Mielenhausen
Development Manager, SAP
Learning Objectives
Fixed Size
Variable Size
STRING
Byte
D, T, N
CSEQUENCE
Special
XSTRING
CLIKE
Strings
Fields
Strings Values
struc1 is flat
struc2 is deep
1 2 3 A B C D E F G H I J 4 5 6
a
b
c
1 2 3 string reference 4 5 6
a
b
c
string value
A B C D E F G H I J
str = 'first'.
d
s
a
n
e
v
o
c
a
ot
n
hl u
d
e
er
at
rl
u
y
main memory
String Sharing
references + headers
str1
str2
str3
str1 = 'common'.
str2 = str1.
str3 = str2.
c
m m o
Restrictions on Substrings
" OK
" would modify value
Advantages of strings
Storage allocated dynamically
DATA custname TYPE c LENGTH ??.
READ DATASET dset INTO line.
Common values are shared
DATA customers TYPE TABLE OF cust_record.
" cust_record = ( name, street, city )
Trailing blanks are significant (may increase performance)
DATA c80 TYPE c LENGTH 80 VALUE 'hello'.
CONCATENATE c80 'world' INTO c80.
SAP AG 2006, SAP TechEd 06 / CD 351 / 11
Checks 75 trailing
blanks for finding
end of text
String Diagnostics
Display list of
largest strings
Goto ->
Display condition ->
Memory use
WWW.SOFTBASIC.NET