Reputation: 1951
Is there any way to use the |
string operator across multiple lines?
Using the classic CONCATENATE
token, you can make assignments like the following:
CONCATENATE 'A rubber duck is a toy shaped like a stylized'
'duck, generally yellow with a flat base. It'
'may be made of rubber or rubber-like material'
'such as vinyl plastic.' INTO lv_variable SEPARATED BY space.
I've not found a valid way to do something like the following:
lv_variable = |A rubber duck is a toy shaped like a stylized | &
|duck, generally yellow with a flat base. It | &
|may be made of rubber or rubber-like material | &
|such as vinyl plastic.|.
Is there a way to accomplish this, or are you constrained to one line when working with the |
operator?
Upvotes: 5
Views: 6567
Reputation: 623
You can do this:
data : lv_variable type string.
lv_variable = |A rubber duck is a toy shaped like a stylized| &&
|duck, generally yellow with a flat base. It | &&
|may be made of rubber or rubber-like material | &&
|such as vinyl plastic.|.
write lv_variable.
Upvotes: 9