newbie написала:
Уважаемые гуру, подскажите наиболее простой способ вставки числа в середину текстовой переменной, примерно так как это происходит в message.
To replace a string in a field with a different string, use the REPLACE statement.
REPLACE <str1> WITH <str2> INTO <c> [LENGTH <l>].
The statement searches the field <c> for the first occurrence of the first <l> positions of the pattern <str1>. If no length is specified, it searches for the pattern <str1> in its full length.
Then, the statement replaces the first occurrence of the pattern <str1> in field <c> with the string <str2>. If a length <l> was specified, only the relevant part of the pattern is replaced.
If the return code value of the system field SY-SUBRC is set to 0, this indicates that <str1> was found in <c> and replaced by <str2>. A return code value other than 0 means that nothing was replaced. <str1>, <str2>, and <len> can be variables.
_________________
Ex ipso fonte bibere
Цитата:
Abyssus abyssum invocat
Dies diem docet
Ducunt volentem fata, nolentem trahunt
Estote prudentes sicut serpentes