on 03-30-2009 9:40 AM
Hi all,
I need to print a CHAR16 variable using smartform in a way that there should be space between each character.
eg : 89007-01-004501-20-1 needs to be output as
8 9 0 0 7 - 0 1 - 0 0 4 5 0 1 - 2 0 - 1
Pls help how to do this??
hi.
just check this code.
REPORT ztn_test .
data: val(16),
str type string,
length type i,
var type i value 0.
val = '321-1-12-1'.
length = strlen( val ).
BREAK-POINT.
DO length TIMES.
cONCATENATE val+var(1) str into str SEPARATED BY space.
var = var + 1.
ENDDO.
write str.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure Ur target field has appropriate length to accomodate spaces while u implement above mentioned solutions.
кu03B1ятu03B9к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use program lines node before displaying the Text and write a Concatenate Statement by inserting SPACEs between all characters of variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.